Hey, so my brother is trying to help me with the high templar energy detection. When he did the triggering on the map, I watched him do the calculations as well.
This is what the calculations came to be.
I moved the 1st high templar to the very top to give him the index 0
y = 161865 - 84(0)
y = 161865 - 0
y = 161865
This brings my memory condition to:
Memory at + 161865 is X Y
Then because i want it to follow an action only if the energy is less than 50 i did
16777216(49) + 16777215 = 838860799
So my final condition would be:
Memory at + 161865 is at most 838860799
This brings my trigger to be:
Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Command("Current Player", "Protoss High Templar", At least, 1);
Memory(161865, At most, 838860799);
Actions:
Modify Unit Energy("Current Player", "Protoss High Templar", 22, 1, "Area");
Preserve Trigger();
I am having an issue though. This trigger is just setting the high templar's energy to 55 constantly. It never gains energy. Im guessing that i did something wrong
Nevermind. Found what I as doing wrong. This should be the correct trigger for what im looking for. It works perfectly in my map. Thanks Sam and everyone else for the help.
Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Command("Current Player", "Protoss High Templar", At least, 1);
Memory(19065, At most, 838860800);
Actions:
Modify Unit Energy("Current Player", "Protoss High Templar", 22, 1, "Area");
Preserve Trigger();
Post has been edited 2 time(s), last time on Aug 17 2011, 8:27 am by IAGG.
None.