Author Topic: Scripting help  (Read 819 times)

XnossisX

  • Crewmate
  • *
  • Posts: 7
    • View Profile
Scripting help
« on: June 24, 2018, 10:18:57 pm »
I was attempting to figure out how to make a script that you could not activate again, and I made the following three scripts:
Set Flags:
flag(1,off)

What:
ifflag(1,What1)
say(1,cyan)
What
flag(1,on)

What1:
(empty)

Unfortunately, not only did this not work, my player was suddenly stuck in place (or moving in whatever way he was if moving).
Does anyone have suggestions for what is happening here?

Ally 🌠

  • Captain
  • *****
  • Posts: 1411
  • <3
    • View Profile
    • Ally 🌠
Re: Scripting help
« Reply #1 on: June 25, 2018, 10:56:40 pm »
thats a bug with the editor
if you press esc to exit playtesting while a script is loaded, controls lock

to get around this
press alt + enter to enter full screen, which should also flip viridian
press escape to get out of playtesting
place a trinket
enter playtesting
and collect the trinket
press z twice, not the normal once
you can delete the trinetk after

also
scripts cannot have capitals in them
or spaces if you needed to know
but this should work fine

SteveGamer68

  • Professor
  • ****
  • Posts: 182
  • Locked and Loaded.
    • View Profile
    • The open level project 2 forum
Re: Scripting help
« Reply #2 on: August 06, 2018, 12:00:51 pm »
Set Flags:
flag(1,off)

btw, if you plan on making an one-time trigger that only activates only once across the entire level, why bother making a script that set flag 1 off? Unless it's a developer script, there should be no reason why flag 1 need to be turned off. Setting flag 1 off will, basiclly reactivate the one-time trigger if you trigger it again.