Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
Reply
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.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 04:01 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.