Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   RPGMaker (http://zelaron.com/forum/forumdisplay.php?f=188)
-   -   More Help ... i no i m annoying lol (http://zelaron.com/forum/showthread.php?t=30138)

NewbAtGames 2004-06-14 06:00 PM

More Help ... i no i m annoying lol
 
Aite i got another question ... say i wanted to have a guard standing in front of my castle and not allow my char. into the castle until he pays him some money ... how would i do that?

BlueCube 2004-06-14 08:16 PM

That's done via a simple switch. I'll just put this in psuedocode. (Not real code, you can figure out what goes where though).

------------------------------

Page 1:

<>Choice: "Bribe Guard with 500 Gold"/"Cancel"
...<>"Bribe Guard" choice:
......<>Branch: Check if Gold > 500
.........<>Deduct 500 Gold
.........<>Move Event: left, left, face down
.........<>Set Switch: [xxxx:BribedGuard]
.........<>
......:Else
.........<>Message: "You don't have enough!"
.........<>
......:End
...<>"Cancel" Choice:
......<>
...:End
<>

-------------------------------

Page 2:
Precondition: Switch [xxxx:BribedGuard] is ON

<>Message: "Hi"
<>Move Guard left, left, face down (ignore impossible movement, it's a checkbox below the list of moves)
<>


All times are GMT -6. The time now is 10:03 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.