PDA

View Full Version : More Help ... i no i m annoying lol


NewbAtGames
2004-06-14, 06:00 PM
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)
<>