|
|
|
 |
Posted 2005-02-13, 09:33 PM
in reply to boginziliac's post "Event Help"
|
 |
 |
 |
Everytime this question comes up, I throw out the old treasure chest example. You only want it activated once, and every other time you try it, it'll say "Empty". In that case, it's easy - it's simply a two-page event.
=============================
I'll do this in pseudocode.
Page 1 (activated on button press, graphic is a closed treasure chest, no preconditions):
<> Message "You got 300 Gold!"
<> Add 300 Gold to stash
<> Turn switch [xxxx:Treasure0001 Opened] ON
<>
Page 2 (activated on button press, graphic is an open treasure chest, precondition of Switch [xxxx:Treasure0001 Opened] is ON.)
<> Message "Empty!"
<>
===============================
Very, very simple. The switch ensures that the event will not run the first page again.
If you already knew all about switches/preconditions, I'm going to guess that you used a local switch (RMXP only) incorrectly. Doing them in the following order is incorrect:
<> Teleport to Map 2
<> Turn Local Switch A to ON
<>
Because that will actually set map 2's "Local Switch A" to ON and not for the current map.
---
If none of this applies, I'm going to guess that it's an error involving your switches. Make sure you're setting the correct switch at the end of the event, and also make sure the precondition switch is correct. Also check to make sure that no other events are messing around with that switch - overlapping switches are tough to detect sometimes.
|
 |
 |
 |
|
|
|
|
|
|
|