Page 1 of 1

Script that only run after the address been generated?

Posted: Sat Mar 18, 2017 3:35 pm
by ColonelRVH
I got a problem. There's an instruction that changes the health value, the problem is its group different is seem to be generated AFTER the health.

Which mean, if I put a comparison script for it, the game will crash when it allocates the new addresses for new units.

Been stuck with this for a while. Any suggestion?

Re: Script that only run after the address been generated?

Posted: Sat Mar 18, 2017 3:57 pm
by ++METHOS
Can you elaborate? I do not understand. Thanks.

Re: Script that only run after the address been generated?

Posted: Sat Mar 18, 2017 5:31 pm
by ColonelRVH
Simply say, my script work fine for units that are already generated (already on the field). But when another unit is created, game crash instantly.

Problem is there's no other proper instruction for it than this one. Game generates code at run time also.