Accum operations


(FrostyChilli) #1

Hi!

Does anyone know a good ACCUM tutorial?

Or can anyone explain accum operations for me?

I know what means “set”, “not equal” and so on.

But operation like “inc” , “random”, “wait”.

Any help is much appreciated!

Frosty!


(acQu) #2

There is only a reference as far as i know, and a bunch of threads here at the forum.

http://games.chruker.dk/enemy_territory/scripting_reference.php#accum_registers
http://games.chruker.dk/enemy_territory/scripting_reference.php#control_structures

If you want to do something specific, then just ask and maybe someone knows.


(stealth6) #3

inc is increase value for example:
accum 0 inc 1
Means increase accum 0 by 1.

accum 0 inc -1
Means increase accum 0 by -1 (so actually decrease by 1)

I don’t think wait has anything to do with accums, it just tells the script to wait for a certain period of time for example:
wait 15000
Means wait 15 seconds. Sometimes you want to trigger an event, wait a certain amount of time and then trigger another event.

I found this topic: http://forums.warchest.com/archive/index.php/t-2611.html
which might contains some interesting info. For example SCDS_reyalP said: “random puts in a random value, up to (probably including) the specified number.”

Good Luck!


(FrostyChilli) #4

Thank you bot for anwering and for these links!

I am just trying to understand Tank scripting and some accum operations were unclear for me.

Thanks again!
Cheers, Frosty!