Post news Report RSS Defensive building and IScript types.

For a begining I planned to add new defensive building for protoss, however I think 4th race needs it more.

Posted by on

MAIN: In header of iscript there are opcode called "Type". This contains type of object, which will use this script. I failed to found/understand all of them, but at least 6 can be found here:

  • 2 - weapon's sprite (missile, phase charge);
  • 12 - close combat unit, or unit using different air and ground weapons (not sure);
  • 13 - unit with same animation for both attacks (not sure);
  • 20 - Terran/Neutral building;
  • 21 - Protoss unit/building;
  • 26 - Burrowable zerg unit;

If you know any more, please post it in comments. I wanted to transfer Armory to 4th race, however game crashed when it's building were finished (Same as XN-CC). I've changed It's race to protoss, and changed armory's iscript from 20 to 21. Game dont crashes now, but Armory dont works. Anyway, I added defensive building for 4th race, and it only building, that requies psi. It has same fuctions as photon cannon, but twice stronger, and costs 275 ore.

Post comment Comments
KYSXD
KYSXD - - 460 comments

"The AFAIK, the Type only defines how many of the header items are used" (in order):

Init
Death
GndAttkInit
AirAttkInit
Unused1
GndAttkRpt
AirAttkRpt
CastSpell
GndAttkToIdle
AirAttkToIdle
Unused2
Walking
WalkingToIdle
SpecialState1
SpecialState2
AlmostBuilt
Built
Landing
LiftOff
IsWorking
WorkingToIdle
WarpIn
Unused3
StarEditInit
Disable
Burrow
UnBurrow
Enable

The type would use the first X... items:

0 = 2
1 = 2
2 = 4
12 = 14
13 = 14
14 = 16
15 = 16
20 = 22
21 = 22
23 = 24
24 = 26
26 = 28
27 = 28
28 = 28
29 = 28

You can take a look in:

Broodwarai.com

And also, the IceCC manual.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: