On my way to work today I thought this one up... but I need a more logical brain to look at it
I have a mission
It has a script that when you are at base you can use an action bar click to find out the over all casualties of the three armies in the mission. It is diplayed in a hint that says..
NATO casualties: 0
Air: 0
Armour: 0
Support Vehicles: 0
Russian Fed Cas: 0
Air: 0
Armour: 0
Support Vehicles: 0
Resistance FIA Cas: 0
Armour: 0
Support Vehicles: 0
The numbers of casualties are simply added up as each unit has an event-handler KILLED which adds 1 to the casualty total.
NOW the question is I need some way of starting a count during an event such as a battle or beach landing that once it reaches a certain amount of casualties will end that event.
for example: I want the event to end when a casualty count gets to 40 or above, the amount at the start of the event.
Here is what I thought it might be like...
east_casualties = E_casu_event_start
;Lets say E_casu_event_start value starts at 12
#loop
~5
east_casualties = E_casu_event_end
;when E_casu_event_end value reaches 53 in theory the script should go to event end as the value of E_casu_event_end - E_casu_event_start should equal 41.
E_casu_event_end - E_casu_event_start > 40 : goto "eventend"
goto "loop"
#eventend
"1" objstatus "DONE"
exit
What I want to know is will it work?
More specifically is the syntax correct? or will I just get errors all over the place?
Kendo