Ok these are from the et manual, I’ve read it it over and over and somethings still just dont fit in for me.
(global)accum <buffer_index> <command> <<paramater...>
(global)accum <n> inc <m>
(global)accum <n> abort_if_less_than <m>
(global)accum <n> abort_if_greater_than <m>
(global)accum <n> abort_if_not_equal <m>
(global)accum <n> abort_if_equal <m>
(global)accum <n> set <m>
(global)accum <n> random <m>
(global)accum <n> bitset <m>
(global)accum <n> bitreset <m>
(global)accum <n> abort_if_bitset <m>
(global)accum <n> abort_if_not_bitset <m>
(global)accum <n> trigger_if_equal <m> <s> <t>
(global)accum <n> wait_while_equal <m>
cvar <cvarName> <operation> <value>
Operation can be any of:
inc
abort_if_less_than
abort_if_greater_than
abort_if_not_equal
abort_if_not_equals
abort_if_equal
abort_if_equals
bitset
bitreset
abort_if_bitset
abort_if_not_bitset
set
random
trigger_if_equal
wait_while_equal
What is it used for? Is it just a counter for keeping track of multiple objectives?
ie oasis with the guns & pumps…
accum 1 set 0 // State of objective number one
accum 5 set 0 // Corrent number of Pak 75mm guns destroyed
accum 6 set 0 // Current number of water pumps built
accum 7 set 0 // Value used in checking whether or not to announce "Axis have damaged both water pumps!"
So do I just bind accum 1 to a selection of entities that I want it to control? and so on 2, 3, etc… for different counters?
Also whats the “set” part of the command?
Im very confused here, coz most map scripts are huge, 1000+ lines of code, I can track where abouts they are in the rest of the script, but with that ammount of data going on I get very confused as to how it really works.
Is this a ET only style set of scripting language or is it a child of some other language?
Sorry for the mass of questions in 1 hit, but this seams to be a crucial part of the scripting process. I can create scripts, ie making dynamitable objectives etc… and linking them up with the .objdata and stuff to get the tick & cross through the objective status on the limbo menu but I just need help here…
Thx in advance…
Axedup
[p.s it just seams as if you are just supposed to know what accum and global accum are from birth, as if it was written into your DNA or something… coz I havent found any tutorials and such explaining them!] :eek: