
casual mods
Joined: May 2, 2013
I be chillin
|
Posted: Dec 29, 2013 05:07 PM
Msg. 1 of 1
heres one of my scripts as an example: if i have 30 points and i use the device instead of having 5 $ left it gives me -5. any ideas?
edit: it should have been (set $ (- $ 25))
(script continuous buy_health (sleep_until (>= $ 25)) (device_set_power health 1) (sleep_until (= (device_get_position health) 1)) (effect_new_on_object_marker "effects\buy\buy health" health "") (set $ (- 25 $)) (sleep 30) (inspect $) (device_set_power health 0) ) Edited by casual mods on Dec 29, 2013 at 05:20 PM
|