A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »did i break halo script? it wont add or subtract right...

Author Topic: did i break halo script? it wont add or subtract right... (1 messages, Page 1 of 1)
Moderators: Dennis

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

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 7:11 AM 140 ms.
A Halo Maps Website