Ok, so what i did was change the gateway's flingy to warp gate. I edited the icript to give the warp gate a construction animation. Then in memgraft i made a 3 new button sets. The first has two buttons which change the button set to one of the other 2 new ones. Those two act as the gateway and stargate respectively. They also have a command to go back to the first set. So far so good. However when i click the zealot button the game just freezes, not crashes.
Please!!
Try adding a unit building script in the Unknown19 header. (the real IsWorking header, unlike the mis-labelled one)
Thnx. I fixed it while the network was down. I just kinda copied the gateway script. I'm really not sure exactly what i did, but it works!!
Freezes instead of crashes sometimes occur when the iscript is bugged. Usually it crashes, but sometimes you'll get a freeze instead. Don't ask me why, although my current theory (by no means official, confirmed or anything) is that freezes usually accompany buildings' iscripts.
The difference between freezing and crashing, Lord_Agamemnon, is in what the exact error is.
It will crash if it simply tries to do something that's not allowed, i.e. a missile sprite still moving after it hits the target and explodes.
It will freeze if it attempts to perform two or more actions with no pause inbetween them, i.e. attack with weapon, play frame 2, goto offset ( attack with weapon ) -- because it doesn't have any 'wait' opcodes, it'll attempt to attack, play frame 2, repeat infinite times in 1 tick.
Really? I never knew that. But I don't know if that's quite right--you can put 5 attack26's in a row with no waits and nothing bad happens.
Yes you can, but in EzDay's example, the iscript is
looped doing something with no wait actions. Code like this would cause a freeze:
CODE
FreezeOffset:
attack26
playfram 2
goto FreezeOffset