# $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 $loc_arg dynamic "set <<$ARGS[3]>> = <>" set money -= ARGS[2] $message = '
You bought a <<$ARGS[1]>>.
' gt $ARGS[4], $ARGS[5] --- $buy_single_item ---------------------------------