Welcome, Guest. Please login or register.

Author Topic: Internal commands  (Read 66693 times)

nicholashin

  • tOLP Contributor
  • Captain
  • *****
  • Posts: 248
  • (Best?) VVVVVV Player level Critic
    • View Profile
Re: Internal commands
« Reply #20 on: 26 Jul 2013, 19:35 (10 years and 4 months ago) »
gotoroom() is also vital for emulating background scripts without the feature actually existing, by warping to the same room you are in. ;)
What's the point of emulating background scripts, just wondering?
Several things, actually:
* Dialog which doesn't hinder gameplay (think Portal style, or the various help texts at the beginning of VVVVVV, achievement texts in the secret lab). One of the simpler, yet very useful, uses
* If you have way too much free time - a random number generator
* Background-altering rooms (think The Final Level)
* A counter that ticks to something
* User interfaces use them in a sense (think Level Select Menu in my level)

And much more, only your imagination (and VVVVVV's 500 scripts limit) can stop you :P
I actually made a sample level of changing backgrounds yesterday. I guess this is what you means by background-altering rooms :D
But how to use dialog not hindering gameplay? Don't say() and reply() commands themselves stop gameplay? I thought those were just well-positioned background texts  :beg:

Faces3210

  • tOLP2 Tester
  • Professor
  • ****
  • Posts: 109
  • I change this sometimes...
    • View Profile
    • My Level
Re: Internal commands
« Reply #21 on: 27 Jul 2013, 05:33 (10 years and 4 months ago) »
gotoroom() is also vital for emulating background scripts without the feature actually existing, by warping to the same room you are in. ;)
What's the point of emulating background scripts, just wondering?
Several things, actually:
* Dialog which doesn't hinder gameplay (think Portal style, or the various help texts at the beginning of VVVVVV, achievement texts in the secret lab). One of the simpler, yet very useful, uses
* If you have way too much free time - a random number generator
* Background-altering rooms (think The Final Level)
* A counter that ticks to something
* User interfaces use them in a sense (think Level Select Menu in my level)

And much more, only your imagination (and VVVVVV's 500 scripts limit) can stop you :P
* Removing the wraparound in rooms

FIQ

  • Global Moderator
  • Professor
  • *
  • Posts: 132
    • View Profile
    • GitHub profile
Re: Internal commands
« Reply #22 on: 29 Jul 2013, 09:19 (10 years and 4 months ago) »
gotoroom() is also vital for emulating background scripts without the feature actually existing, by warping to the same room you are in. ;)
What's the point of emulating background scripts, just wondering?
Several things, actually:
* Dialog which doesn't hinder gameplay (think Portal style, or the various help texts at the beginning of VVVVVV, achievement texts in the secret lab). One of the simpler, yet very useful, uses
* If you have way too much free time - a random number generator
* Background-altering rooms (think The Final Level)
* A counter that ticks to something
* User interfaces use them in a sense (think Level Select Menu in my level)

And much more, only your imagination (and VVVVVV's 500 scripts limit) can stop you :P
I actually made a sample level of changing backgrounds yesterday. I guess this is what you means by background-altering rooms :D
But how to use dialog not hindering gameplay? Don't say() and reply() commands themselves stop gameplay? I thought those were just well-positioned background texts  :beg:
They do stop gameplay yes, unless backgroundtext is used before the "speak" command. This will not halt gameplay. By utilizing backgrounded scripts, you can make a timer to chose when these dialogs should disappear. Of course you don't *need* backgrounded scripts for this - but if you want them to disappear after a certain time instead of when moving forward a little, you do need background scripts.

IMG_4346.jpeg

  • Captain
  • *****
  • Posts: 350
    • View Profile
Re: Internal commands
« Reply #23 on: 2 Aug 2013, 07:32 (10 years and 4 months ago) »
How does one use gotoposition? The coordinates are tripping me up  :victoria:

Dav999Topic starter

  • Administrator
  • Hyper Captain
  • *
  • Posts: 1606
    • View Profile
Re: Internal commands
« Reply #24 on: 2 Aug 2013, 08:33 (10 years and 4 months ago) »
How does one use gotoposition? The coordinates are tripping me up  :victoria:

gotoposition is mostly trial and error, but you can get the exact values by placing a checkpoint (or the starting point, temporarily) at the point you want to teleport to, and then play the level and save at that point. You can then open the save file (the .vvvvvv.vvv file in the Saves folder) of the level and look at the values for savex and savey. Those are the values you have to fill in. So if savex is 50 and savey is 112, you need to use gotoposition(50,112,0).

Woliken

  • Crewmate
  • *
  • Posts: 15
  • Metagross is easily my favourite pokemon.
    • View Profile
Re: Internal commands
« Reply #25 on: 2 Aug 2013, 10:30 (10 years and 4 months ago) »
I use this thread as a reference guide for when I use the internal code. Mind posting the full list of gamestates, playefs and plays?

Probably Arvis

  • Captain
  • *****
  • Posts: 229
  • oh look i actually changed my avatar
    • View Profile
Re: Internal commands
« Reply #26 on: 2 Aug 2013, 10:40 (10 years and 4 months ago) »
I use this thread as a reference guide for when I use the internal code. Mind posting the full list of gamestates, playefs and plays?
Gamestates

Dav999Topic starter

  • Administrator
  • Hyper Captain
  • *
  • Posts: 1606
    • View Profile
Re: Internal commands
« Reply #27 on: 2 Aug 2013, 10:42 (10 years and 4 months ago) »
I use this thread as a reference guide for when I use the internal code. Mind posting the full list of gamestates, playefs and plays?

Playefs and plays can be found in reply #3:
Quote from: FIQ
Internal playlist
0 - Path Complete
1 - Pushing Onwards
2 - Positive Force
3 - Potential For Anything
4 - Passion For Exploring
5 - Pause
6 - Presenting VVVVVV
7 - Plenary
8 - Predestined Fate
9 - ecroF evitisoP
10 - Popular Potpurri
11 - Pipe Dream
12 - Pressure Cooker
13 - Paced Energy
14 - Piercing The Sky
Quote from: FIQ
The effect list
Code: [Select]
0 - Flip to ceiling
1 - Flip back to floor
2 - Cry
3 - Trinket collected
4 - Coin collected
5 - Checkpoint touched
6 - Quicker quicksand block touched
7 - Normal quicksand block touched
8 - Gravity line touched
9 - Flash
10 - Warp
11 - Viridian squeak
12 - Verdigris squeak
13 - Victoria squeak
14 - Vitellary squeak
15 - Violet squeak
16 - Vermilion squeak
17 - Terminal touched
18 - Teleporter touched
19 - Alarm
20 - Terminal squeak
21 - Time trial countdown "3", "2", "1"
22 - Time trial countdown "Go!"
23 - VVVVVV Man breaking walls
24 - Crewmates (de)combining into VVVVVV Man
25 - New record in Super Gravitron
26 - New trophy in Super Gravitron
27 - Rescued crewmate (in custom levels)

28+ segfaults

Arvis ninja'd me about the gamestates.

TheJonyMyster

  • tOLP Contributor
  • Captain
  • *****
  • Posts: 338
  • Points: 912
    • View Profile
    • My tumblr
Re: Internal commands
« Reply #28 on: 2 Aug 2013, 10:51 (10 years and 4 months ago) »
Well it should all be in the first post to have a monopoly on all scripting I mean so people can just look here.
Maybe this should be stickyd.

allison

  • tOLP Contributor
  • Hyper Captain
  • *******
  • Posts: 1207
  • monolithic since 2012???
    • View Profile
    • Allison Fleischer
Re: Internal commands
« Reply #29 on: 2 Aug 2013, 16:52 (10 years and 4 months ago) »
Well it should all be in the first post to have a monopoly on all scripting I mean so people can just look here.

Yeah, it'll be super annoying to have to comb through the thread

IMG_4346.jpeg

  • Captain
  • *****
  • Posts: 350
    • View Profile
Re: Internal commands
« Reply #30 on: 17 Aug 2013, 07:47 (10 years and 3 months ago) »
Createentity is acting up. Gravitron squares and enemies are refusing to show up. Using 2.1.  :victoria:
EDIT:Fixed!
« Last Edit: 19 Aug 2013, 12:14 by Lord Ghetsis »

nicholashin

  • tOLP Contributor
  • Captain
  • *****
  • Posts: 248
  • (Best?) VVVVVV Player level Critic
    • View Profile
Re: Internal commands
« Reply #31 on: 13 Sep 2013, 06:18 (10 years and 2 months ago) »
How does a timer with gotoroom() work? I thought it was just use do() to loop, but it seems to make the time for executing each command extremely short. (No longer 30 times is about 1 s.) And the script will repeat again and again due to gotoroom() and I can't use a terminal for it too....
I even thought of use of flags or loadscript(stop), but they don't work....

nicholashin

  • tOLP Contributor
  • Captain
  • *****
  • Posts: 248
  • (Best?) VVVVVV Player level Critic
    • View Profile
Re: Internal commands
« Reply #32 on: 17 Sep 2013, 02:07 (10 years and 2 months ago) »
How does a timer with gotoroom() work? I thought it was just use do() to loop, but it seems to make the time for executing each command extremely short. (No longer 30 times is about 1 s.) And the script will repeat again and again due to gotoroom() and I can't use a terminal for it too....
I even thought of use of flags or loadscript(stop), but they don't work....
BUMP

IMG_4346.jpeg

  • Captain
  • *****
  • Posts: 350
    • View Profile
Re: Internal commands
« Reply #33 on: 18 Sep 2013, 04:18 (10 years and 2 months ago) »
How does a timer with gotoroom() work? I thought it was just use do() to loop, but it seems to make the time for executing each command extremely short. (No longer 30 times is about 1 s.) And the script will repeat again and again due to gotoroom() and I can't use a terminal for it too....
I even thought of use of flags or loadscript(stop), but they don't work....
BUMP
Don't think you can...ask Dav or someone.

FIQ

  • Global Moderator
  • Professor
  • *
  • Posts: 132
    • View Profile
    • GitHub profile
Re: Internal commands
« Reply #34 on: 27 Sep 2013, 16:35 (10 years and 2 months ago) »
I made an example in that old thread in the distractionware forums. Let me copy/paste it here, sec...

...

ffffffff...

Dav999Topic starter

  • Administrator
  • Hyper Captain
  • *
  • Posts: 1606
    • View Profile
Re: Internal commands
« Reply #35 on: 27 Sep 2013, 22:11 (10 years and 2 months ago) »
I have a 'print' of that entire topic saved to my computer, will upload it in a few hours...

EDIT: http://tolp2.tk/misc/Internal%20commands.html
« Last Edit: 28 Sep 2013, 00:53 by Dav999 »

nicholashin

  • tOLP Contributor
  • Captain
  • *****
  • Posts: 248
  • (Best?) VVVVVV Player level Critic
    • View Profile
Re: Internal commands
« Reply #36 on: 28 Sep 2013, 08:51 (10 years and 2 months ago) »
I made an example in that old thread in the distractionware forums. Let me copy/paste it here, sec...

...

ffffffff...
I have a 'print' of that entire topic saved to my computer, will upload it in a few hours...

EDIT: http://tolp2.tk/misc/Internal%20commands.html
WOW Thanks for your help, but I assume FIQ made it in form of a level?

FIQ

  • Global Moderator
  • Professor
  • *
  • Posts: 132
    • View Profile
    • GitHub profile
Re: Internal commands
« Reply #37 on: 28 Sep 2013, 09:13 (10 years and 2 months ago) »
I have a 'print' of that entire topic saved to my computer, will upload it in a few hours...

EDIT: http://tolp2.tk/misc/Internal%20commands.html
That print is too old for my script I think, as I posted it pretty much right before the forums closed.

nicholashin

  • tOLP Contributor
  • Captain
  • *****
  • Posts: 248
  • (Best?) VVVVVV Player level Critic
    • View Profile
Re: Internal commands
« Reply #38 on: 30 Sep 2013, 21:45 (10 years and 2 months ago) »
I have a 'print' of that entire topic saved to my computer, will upload it in a few hours...

EDIT: http://tolp2.tk/misc/Internal%20commands.html
That print is too old for my script I think, as I posted it pretty much right before the forums closed.
Oh I see......I guess I just have to wait for Terry to miraculously realise that better security question should be used and reopen the forums.

Dav999Topic starter

  • Administrator
  • Hyper Captain
  • *
  • Posts: 1606
    • View Profile
Re: Internal commands
« Reply #39 on: 30 Sep 2013, 23:08 (10 years and 2 months ago) »
Oh I see......I guess I just have to wait for Terry to miraculously realise that better security question should be used and reopen the forums.

It may reopen any moment now, but I'm not sure because I don't know when the billing month ends...
« Last Edit: 30 Sep 2013, 23:09 by Dav999 »