Flag Scripts

Started by echolite, March 15, 2018, 07:28:47 PM

Previous topic - Next topic

echolite

A short little level showing you some basic flag commands to destroy locks (or warp tokens).   :viridian:
Download my level at http://www.mediafire.com/file/1djaie6c6lck8y5/flagscripts.vvvvvv

Here are some basic flag commands:

ifflag(#, script)
flag(#,on,off)

Thank you! Hope you learned some new scripts that would be good to use!

Pro Tip: Use VED because of easier navigation for scripts

Thanks again!!!  :viridian:  :viridian:  :viridian:
Get Ved at https://tolp.nl/ved/?p=download

SteveGamer68

#1
Adding more to echolite's post.
You can also make a 1-time trigger:
Code (onlyonce) Select
ifflag(flag,stop)
flag(flag,on)
[insert the dialogue/command for the one time trigger]

Warnings:
The "flag" argument in ifflag and flag must be the same! (i.e if you enter ifflag(0,stop) then you need to enter flag(0,on).)
The "stop" script (or any other script) must be nonexistent! (or with nothing inside) so that the next time you trigger it, it will redirect to script stop but it have nothing so it justs resumes play. (i.e you can enter ifflag(flag,a) and it will still works as long as script a don't exist or don't have anything insde.)
(And sure, basic flag commands can be used to make keycards or you can make a complex number pad)

edit: you can make a keypad by simply using gotoroom (easier) or use flags (harder, but cost less rooms)
I made a test about keypad.
edit 2: here's the file.

echolite


SteveGamer68

btw, make a fix for my keypad test, adding dialogue when you already use the code.