How do you make a chest reappear using a leaver when the chest display is turned off? I turned the chest display off using an invisible event, then in the chest event code section I put event display on, then follow by modify mode. I made it so the only way to active this code is to pull a leaver, but when I tried it, nothing happens. It seem like since the chest event display is off, it seem to treat the chest event like it isn't there. How do I get around this?
Announcement
Collapse
No announcement yet.
Some help with treasure chests, please?
Collapse
X
-
Re: Some help with treasure chests, please?
When you turn an event off it also turns off the events ability to run the scripts within it.
How to get around it? Not sure, In the chest event before you turn it off change Variable ## to 1, then when the lever is pressed do a val-condition branch(in the lever coding) that if Variable ##=1 it makes the chest reappear and the variable ##=0 againLast edited by JPS; 07-02-2008, 01:07 AM.
Comment
-
Re: Some help with treasure chests, please?
I cant really remember the exact syntaxes for the scripts...
Chest coding:
:all of your coding here
:Modify Shared Variable 01 = "1"
:Chest Event Display: Off
Lever coding
:all of your coding here
:Val-Conditional Branch -> Shared Variable 01( = 0, 1)
--:<Option 1/Start> -> Shared Variable 01 = 0
----
isplay -> "Nothing Happened"
--:<Option 1/End>
--:<Option 2/Start> -> Shared Variable 01 = 1
----:Chest Event Display: On
----:Modify Shared Variable -> "0"
--:<Option 2/End>Last edited by JPS; 07-03-2008, 07:19 AM.
Comment



Comment