Staredit Network

Staredit Network -> UMS Assistance -> About EUD trigger...
Report, edit, etc...Posted by DeF_ on 2005-08-05 at 08:37:49
Okay i wanted make zealot(unit - 065) cost no food... (food cost - 6b64a0)
QUOTE
You need to modify the 1 byte value starting on byte 2 of deaths of -29801 for player 8 .

You need to modify the highlighted bytes:

DEATHS OF -29801 FOR PLAYER 8 :
00 00 00 00

I don't know/understand what i should change in teh highlighted, for determinate number of death (of -29801 player 8 ) "00 00 00 00"
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-05 at 13:46:58
You want to end up setting that byte value to 0. I suggest doing this:

1. Find out the zealot's default food cost.

2. Go to the Starforge trigger generator. Enter "I want to change the 1 byte value starting on byte 2". Then enter in -29801 for unit ID, 8 for player, and 65 for Object ID.

3. Say "I want to subtract from this value...", and then type in the Zealot's default food cost. Use the generated trigger.
Report, edit, etc...Posted by l)ark_13 on 2005-08-05 at 14:38:08
This may not help, but it helps understanding the whole byte thing.
there are 4 bytes: 00 00 00 00
Byte 1 (00) goes from 0(00) to 255(FF).
Byte 2 (00) goes from 256(00) to 65535(FF).
Byte 3 (00) goes from 65536(00) to 16777215(FF).
Byte 4 (00) goes from 16777216(00) to 4294967295(FF). (although I dont think you can input a number that high into SF).
Now, you wanted to give a zealot zero food costs on byte 2 (00) so, you would set the number of deaths to 256, which is zero for byte two. If you wanted to make the long to look like this (01 01 01 00) you would add 1(00)+257(00) +65537(00) = 65795 for the amount of deaths.
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-05 at 14:49:41
If you use SetTo and set deaths to 256, the whole long looks like this:

00
01 00 00

Which would make the Zealot food cost 1, and zero the food cost of units near the Zealot in UIDs.
Next Page (1)