Author Topic: Scripting, basics and more?  (Read 2916 times)

Mysterio

  • Crewmate
  • *
  • Posts: 13
  • Privacy is fantasy.
    • View Profile
Scripting, basics and more?
« on: December 14, 2014, 04:05:38 am »
So, I have a general idea of how to script on VVVVVV, but alas; I haven't really found a good useful "guide" to the basics of scripting on VVVVVV. So, can someone either link me to a helpful video or whatever; or just tell me? I want to start making levels 'up to par' with the main story of VVVVVV, bu there's some things I don't get. Like: How to make a cutscene, how to teleport my guy, or others for that matter (via script), how to make certain tiles disappear/reappear by using a terminal. I just wanna know the basic "codings" for how to make certain events occur, because I have already made some pretty cool levels, but they REALLY need some scripting and a story, otherwise it's too bland.
Thanks a bunch!  :viridian:
- Mysterio  8)

Epicperson456

  • Crewmate
  • **
  • Posts: 36
  • http://tolp2.nl/forum/index.php?topic=1050.0
    • View Profile
Re: Scripting, basics and more?
« Reply #1 on: December 14, 2014, 04:27:05 pm »
Ok, some of that(cutscenes, and teleporting without warptokens) is only available via the INTERNAL SCRIPTING exploit. More on that here.That url will solve most of your problems. With the tiles thing, do destroy(warptokens/gravitylines)Don't actually use a /. Gravitylines is for the bouncy lines, warptokens is for the teleporters the warp zone.To make a conversation, do this:
Say((here, you want the number of lines that the crewmate says),(here, you put the color of the crewmate or the name of the crewmate you want to talk).
In the end, I will look something like this:
Say(2,violet)
Blah blAh blah.
This is two lines of speech.

To make viridian talk, do this
Reply
(Text)

To make a terminal talk, do this
Say
Text

To make a flash
Type flash
Usually, these are used in combination with destroy commands.

To make a script not repeat,
Put a script that says this somewhere
Flag(1,on)
You can use flags 0-100 but can't use 67
67 let's you teleport to the ship, but it isn't there, and it destroys your telesave too.

To use the flags
Make your script (let's say it's called me)
Make another
Make the second one say ifflag(number,me)
And at the end of me, put flag(same number you used before,off)

To need trinkets
Do this:
Iftrinkets(number of trinkets you want them to need,scriptname)

How to use internal scripting.
Use it like this
Make a script(say it's called z)
Make another(we will call it internal)
In z, put iftrinkets(0,internal)
Then internal, do this
For one internal script use
A)say ( yes you need the a-)-say parenthese)
(Script)
You need one blank line after the internal scripts to make them work.
For more than one
Say(-1)
Text(1,0,0,4)
Say(number of lines in the scripts u are using,let's say 3)
Script
Script
Loadscript(stop)

To change the music,use music(musicnumber) the numbers are 1, pushing onwards 2, tower music
3, lab music 4, ship music 5,menu music 6, the music that plays In The first intermission 7, the ending music(with cccccaptain and credits)7a, the Game completed music,8, the(will edit, can't remember right now,), 9, the warp zone music 10, some more music, 11 piercing the sky 12 onward plays music 9
Number 15(secret)
Remixed intermission music.

Hope this helps!



Bruce Michez

  • Captain
  • *****
  • Posts: 228
  • Creator of [\] [II] [X] and Dimension SpiritLens
    • View Profile
Re: Scripting, basics and more?
« Reply #2 on: December 15, 2014, 11:21:31 am »
To change the music,use music(musicnumber) the numbers are 1, pushing onwards 2, tower music
3, lab music 4, ship music 5,menu music 6, the music that plays In The first intermission 7, the ending music(with cccccaptain and credits)7a, the Game completed music,8, the(will edit, can't remember right now,), 9, the warp zone music 10, some more music, 11 piercing the sky 12 onward plays music 9
Number 15(secret)
Remixed intermission music.

Also: music(0) gives you silence
music(5a) gives you the cutscene music
music(9a) is the backwards tower music
music(16) plays the "level complete" fanfare.

TmanDaCool1

  • Guest
Re: Scripting, basics and more?
« Reply #3 on: December 15, 2014, 01:39:59 pm »
Use 0a for the level complete fanfare instead, it's more stable than 16

8 plays Pipe Dream, the song that plays in the Secret Lab

i'm not petrikov

  • Doctor
  • ***
  • Posts: 41
  • avatar by infoteddy!
    • View Profile
it will be completed one day
« Reply #4 on: December 16, 2014, 01:28:58 am »

shiny

  • Captain
  • *****
  • Posts: 1559
  • Welcome to the MOTHER3 world
    • View Profile
    • my msuic
Re: Scripting, basics and more?
« Reply #5 on: December 16, 2014, 02:18:06 pm »
To change the music,use music(musicnumber) the numbers are 1, pushing onwards 2, tower music
3, lab music 4, ship music 5,menu music 6, the music that plays In The first intermission 7, the ending music(with cccccaptain and credits)7a, the Game completed music,8, the(will edit, can't remember right now,), 9, the warp zone music 10, some more music, 11 piercing the sky 12 onward plays music 9
Number 15(secret)
Remixed intermission music.

Also: music(0) gives you silence
music(5a) gives you the cutscene music
music(9a) is the backwards tower music
music(16) plays the "level complete" fanfare.
I'm pretty sure that music(16) plays the predestined fate remix if you use 2.2.

i'm not petrikov

  • Doctor
  • ***
  • Posts: 41
  • avatar by infoteddy!
    • View Profile
at least in 2.1 it doesn't
« Reply #6 on: December 17, 2014, 12:15:51 am »
I'm pretty sure that music(16) plays the predestined fate remix if you use 2.2.
so you haven't tested that it plays the predestined fate remix?

shiny

  • Captain
  • *****
  • Posts: 1559
  • Welcome to the MOTHER3 world
    • View Profile
    • my msuic
Re: at least in 2.1 it doesn't
« Reply #7 on: December 17, 2014, 12:22:15 am »
I'm pretty sure that music(16) plays the predestined fate remix if you use 2.2.
so you haven't tested that it plays the predestined fate remix?
I have. I put it in my level... I'm just not sure, because it might be music(15)

Mysterio

  • Crewmate
  • *
  • Posts: 13
  • Privacy is fantasy.
    • View Profile
Thanks
« Reply #8 on: December 17, 2014, 12:34:57 am »
Thanks a lot, I'll mess around with it a little, then go on to working on a super awesome level. I don't have much time so don't expect an awesome level anytime soon. But I'll put all this stuff to good use for sure and make an awesome level.
Thanks again!
~ Mysterio  8)