Staredit Network

Staredit Network -> UMS Assistance -> extended trigger question
Report, edit, etc...Posted by l)ark_13 on 2005-08-04 at 23:13:10
I was wondering, because if you SetTo in the extended triggers it messes up other triggers (I dont exactly know why, could someone also explain this?), could you subtract 4294967296 (I believe thats as high as the numbers go) even though you only have lets say 1300 for a specific amount of deaths? Would the deaths go negative?
What I mean: 1300 - 4294967296 = -4294965996 -OR- 0 ?
Because It would make some triggers much more easy if you could "reset" the deaths to 0 by subtracting the maximum amount of deaths then doing w/e.
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-05 at 00:28:33
SetTo does not "mess up" other triggers. It simply affects the whole long.

Max allowed death count to set/add in one action without overflow is 2147483647.

1300 - 2147483647 = -2147482167 MOD 4294967296 = 2147485129

I don't think I made a typo. Death counts wrap around. Pretty sure.
Report, edit, etc...Posted by l)ark_13 on 2005-08-05 at 00:38:33
So, by affecting the whole long, you mean (lets say) all of the weapons?
JUST AN EXAMPLE:
so, i have changed weapons for marines on byte 00 B3 00 00
and weapons for for tanks on 00 00 07 00
When is use the SETTO and set weapons for ghosts on byte 16 00 00 00
then the whole long is set to 16 00 00 00 and the marine's and tank's weapons are reset?
(fictional numbers and stats)
QUOTE
SetTo does not "mess up"

Yeah, I didn't mean it as in "mess up". I meant it as in doings things that are unintended, mostly because I didn't know what it did. ya know... : >< : w/e tongue.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-05 at 00:47:20
A long is a 4-byte variable. Using Setto in your case would work for both in your example, but would set the weapons of units 0,2,3,...

Oh wait, if the units were positioned there, then yes.
Report, edit, etc...Posted by l)ark_13 on 2005-08-05 at 01:55:49
One last question. This is about giving weapons to specific players.
Can you change weapons for specific players? Or do you have to change the weapon for all of that unit for all players?
(This might be answered in one of the 49 pages of TRIGGERS OF GOD. I dkn, I dont want to find out. tongue.gif )
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-05 at 03:38:06
Like hypertriggers, all EUD effects are global*.

*Some effects, such as unit graphic, only affect unit created after the trigger was run.
Next Page (1)