# $buy_item !! call this to actually buy an item from a store !! 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 count = ARGS[0] $item = $ARGS[1] price = ARGS[2] $variable_name = $ARGS[3] dynamic "set <<$variable_name>> += <>" set money -= price $message = '
You bought <> <<$item>>.
' gt $ARGS[4], $ARGS[5] --- $buy_item ---------------------------------