View previous topic :: View next topic |
Author |
Message |
AppleStem I Like Apples and Stems

Joined: 03 Sep 2009 Posts: 9 Location: Castle of Paradox
|
Posted: Tue Sep 22, 2009 5:48 pm Post subject: checking money |
|
|
im making a thing where when you pay 100$ then you can go on the boat, but I don't know how to make you lose that amount of money, or check if you have enough, help please? |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Tue Sep 22, 2009 6:24 pm Post subject: |
|
|
Here's two ways.
Easy way: Make a shop that sells a Ticket for $100. Edit the ticket so that it sets a tag. You can check for that tag entering the boat.
Less easy way: Make a plotscript something like this:
Code: | plotscript, boat check, begin
if (pay money(100)) then (
use door(1) # this door goes to the boat
) else (
show text box(10) # "You don't have enough money!"
)
end |
Link to the plotscript from a text box. _________________
|
|
Back to top |
|
 |
AppleStem I Like Apples and Stems

Joined: 03 Sep 2009 Posts: 9 Location: Castle of Paradox
|
Posted: Fri Sep 25, 2009 4:29 pm Post subject: |
|
|
ty |
|
Back to top |
|
 |
|