Hello, many of you know me as Spartin115. Recently, I have been making a map called Flood-zombies. I asked this qustion in the [WIP] Flood-zombies thread, but have receved no responce.
As I can not progress without an ansere, I will repost it here and hope for a good responce
Quote: Me from ages ago
(global long points 05)
(global long 5buy 5)
(global long points1 00)
(script startup stuff
(hud_set_timer_position 0 0 bottom_right )
(hud_set_timer_time points points1 )
(pause_hud_timer true )
(show_hud_timer true )
(object_destroy plazp)
(unit_doesnt_drop_items friend1)
(unit_doesnt_drop_items friend2)
(ai_attach friend1 friends)
(ai_attach friend2 friends)
)
(script startup point
(sleep 200)
(ai_place round1)
(sleep_until (= (ai_living_count round1) 0) 15)
(set points (+ points 1))
)
(script continuous buypp
(sleep_until (= (device_group_get plazp) 1.0) 15)
(if (= points 5buy ) (object_create_anew plazp)(set points (- points 5))
)))
(script continuous stufff
(hud_set_timer_time 00 points )
(pause_hud_timer true)
)
The main problem is the faked that when (if (>= points 5buy ) (object_create_anew plazp)(set points (- points 5)) happens, the number of points do not subtracked. Any help would be grately apprechated and would increse progres drmaticly.