123456789101112131415161718 |
- # $buy_single_item
- !! This buys an item and sets the value of the underlying variable to the specific value
- !! For example, buying a plasma tv sets tv = 2
- !! ARGS 0 is the value to set the variable to
- !! ARGS 1 is the item description
- !! ARGS 2 is the price
- !! ARGS 3 is the variable name for the item
- !! ARGS 4 is the location to go back to
- !! ARGS 5 is $metka
- dynamic "set <<$ARGS[3]>> = <<ARGS[0]>>"
- set money -= ARGS[2]
- $message = '<center><font color="green">You bought a <b><<$ARGS[1]>></b>.</font></center>'
- gt $ARGS[4], $ARGS[5]
- --- $buy_single_item ---------------------------------
|