VVVVVV Level Editor Tutorial - Part 2: Entities and Room Settings

Started by Terry, July 29, 2011, 11:09:58 PM

Previous topic - Next topic

Chillius

Quote from: ToasterApocalypse on May 13, 2012, 02:12:44 PM
Quote from: SaltyBarcode on January 01, 2012, 12:36:38 PM
Eagerly awaiting scripting tutorial... My entire level depends on scripts and I've no idea how to use them :|

Brief tutorial.

say= terminal
reply= Viridian

say(1)
Hello.

reply(1)
This is an example.

That is simple "say and reply" commands.

delay(X)
Replace X with a number, preferably above 10. Paused for a second or so.

music(X)
Changes the music. Replace X with a number between 1-11 (0 for silence.)

sad and happy commands change Viridian's face.

Happy(X) Replace the (X) with a colour like Pink or You can type Violet or whatever. then go to your crewmate and it will be happy
same thing with sad(X)

Chyulix

Wow.  :o I thought VVVVVV's level editor had a glitch. I learned something new. Instead if doing: say(1) test. I'm supposed to do:
say(1)
Test.

weee50

Quote from: I am Ry on July 30, 2011, 12:45:54 AM
Nice and detailed! I like this tutorial :) Can't wait for part three. I wanted to wait till scripting was thoroughly covered to start messing with it. I'm having fun with this level editor so far :viridian:
If you see something in underline, it means that it only works with 2.1.

X is a number, c is a color (giving arguments: cyan (:viridian:), purple and pink (:violet:), blue (:victoria:), red (:vermillion:), yellow (:vitellary:) and green (:verdigris:) (There is none for gray) and s is a script name.
say(x) - Create a text box with x lines. Text below the command will be the text.
say(x,c) - Create a text box over crewmate c with x lines, and color c. Text below the command will be the text.
say - Create a text box with 1 line. Text below the command will be the text.
reply(x) - Create a text box over :viridian: with x lines. This acts in the same way as say(x), only with the player's text box.
reply - Create a text box over :viridian: with x lines. This acts in the same way as say(x), only with the player's text box.

In 2.0, with say(x), say(x,c) and reply(x), you can have up to 5 lines. In 2.1 you can have 11.

music(x) - Play song x. The numbers are the same as in the main menu, and 0 for silence.
flash - Make the screen flash
happy - Makes :viridian: happy
sad - Makes :viridian: sad
happy(c) - Makes crewmate c happy
sad(c) - Makes crewmate c sad
destroy(warptokens) - Destroy all warp tokens on the screen.
destroy(gravitylines) - Destroy all gravity lines on the screen. (It won't always work)
flag(x,on) Turns flag x on. There are flags 0-66 and 68-99.
flag(x,off) Turns flag x off.
ifflag(x,s) If flag x is on, go to script s.
iftrinkets(x,s) If you have at least x trinkets, go to script s.
map(on) - Turns the map on
map(off) - Turns the map off
squeak(c) - Makes a crewmate squeak
squeak(on) - Turns crewmate squeaking on
squeak(off) - Turns crewmate squeaking off

That's all I know for now! Hope that helped! :)

P.S. There is no flag 67.

allison


TheJonyMyster

Quote from: Terry on July 29, 2011, 11:09:58 PM
5 - Checkpoints: Checkpoints have two orientations - on the floor, or on the celling. Click on them when they're placed to switch between them. When testing a map, you can press ENTER to spawn at the closest checkpoint.

False. You spawn at the earliest placed one.

Info Teddy

Quote from: TheJonyMyster on July 02, 2013, 05:05:59 AM
Quote from: Terry on July 29, 2011, 11:09:58 PM5 - Checkpoints: Checkpoints have two orientations - on the floor, or on the celling. Click on them when they're placed to switch between them. When testing a map, you can press ENTER to spawn at the closest checkpoint.
False. You spawn at the earliest placed one.
/'m not even sure what the game wou\d def/ne as "c\osest". The checkpo/nt c\osest to your cursor?

christian2004

Quote from: TheJonyMyster on July 02, 2013, 05:05:59 AM

False. You spawn at the earliest placed one.
[/quote]

You spawn at the checkpoint in the room  :-X

moth ✨

Quote from: christian2004 on May 26, 2014, 10:45:33 AM
Quote from: TheJonyMyster on July 02, 2013, 05:05:59 AM
False. You spawn at the earliest placed one.

You spawn at the checkpoint in the room  :-X

IF  there is, perchance, TWO checkpoints, then
Quote from: IF there is, perchance, TWO checkpoints, then
You spawn at the earliest placed one.
(It's true)

Ally 🌠


Mega Mayo

Would there be any way in the future to change terminals into speaking crewmates?

allison

Quote from: Mega Mayo on May 23, 2016, 08:44:09 PM
Would there be any way in the future to change terminals into speaking crewmates?
There's a scripting exploit to do that.

Lollipop

Quote from: Mega Mayo on May 23, 2016, 08:44:09 PM
Would there be any way in the future to change terminals into speaking crewmates?



you already can

Ally 🌠

Quote from: crazya02 on May 23, 2016, 08:55:34 PM
Quote from: Mega Mayo on May 23, 2016, 08:44:09 PM
Would there be any way in the future to change terminals into speaking crewmates?
There's a scripting exploit to do that.
What do you mean

QwertymanO07

I'm guessing they mean like "Press ENTER to talk to Vitellary", because anything else would be stupid.

allison

Quote from: QwertymanO07 on May 24, 2016, 12:33:43 AM
I'm guessing they mean like "Press ENTER to talk to Vitellary", because anything else would be stupid.
Jesus christ they're a new member you can't expect them to know about internal scripting right off the bat