I registered just one day ago and now I have already the first question: I found this great program made by Roy, the EUD Generator. I wanted a trigger which checks if a certain hero unit is in lockdown. So first I killed all start locations - just to be sure I have the right index number for the unit - then filled the start locations back in. Then I used the index id (56), player number 1 (owner of the unit), and unit status "lockdown" to create the trigger. I got the following out of the Generator:
Quote
Trigger("Player 1"){
Conditions:
Memory(157190, At least, 16777216);
Memory(157190, At most, -1);
Actions:
Comment("Unit #56 has status Lockdown");
}
//-----------------------------------------------------------------//
Conditions:
Memory(157190, At least, 16777216);
Memory(157190, At most, -1);
Actions:
Comment("Unit #56 has status Lockdown");
}
//-----------------------------------------------------------------//
Then I pasted that into scmdraft (the trigger editor) and edited a second action in. The final version of the trigger looks like this:
Quote
Trigger("Player 1"){
Conditions:
Memory(157190, At least, 16777216);
Memory(157190, At most, -1);
Actions:
Comment("Unit #56 has status Lockdown");
Give Units to Player("Player 1", "Player 5", "Alan Schezar (Goliath)", 1, "Überall");
}
//-----------------------------------------------------------------//
Conditions:
Memory(157190, At least, 16777216);
Memory(157190, At most, -1);
Actions:
Comment("Unit #56 has status Lockdown");
Give Units to Player("Player 1", "Player 5", "Alan Schezar (Goliath)", 1, "Überall");
}
//-----------------------------------------------------------------//
Then I clicked on debug, since otherwise scmdraft would not save my new trigger (had to search a little bit until I found a solution to that problem).
I got the following error message:
Quote
Error at line 1315: Started
Error at line 1315: done!
Error at line 1315: done!
I have no idea why or even where that line is. There is a message in status bar under the trig edit window which says always Current line: 1306, regardless of where y place the cursor.
Now after I saved the trigger, closed the window and saved the map, in the game nothing happened, after I used lockdown on that unit. Then I reopened the trigger in the scmdraft and the third number has changed! Now the trigger looks like this:
Quote
Trigger("Player 1"){
Conditions:
Memory(157190, At least, 16777216);
Memory(157190, At most, 4294967295);
Actions:
Comment("Unit #56 has status Lockdown");
Give Units to Player("Player 1", "Player 5", "Alan Schezar (Goliath)", 1, "Überall");
}
//-----------------------------------------------------------------//
Conditions:
Memory(157190, At least, 16777216);
Memory(157190, At most, 4294967295);
Actions:
Comment("Unit #56 has status Lockdown");
Give Units to Player("Player 1", "Player 5", "Alan Schezar (Goliath)", 1, "Überall");
}
//-----------------------------------------------------------------//
It tried a bit around, and it seems to do this after I close the trigger window. I have no idea why. For example if I make a trigger checking if the unit used a stimpack it does not do that.
Now my question what is going wrong? Is it a problem with EUD Generator using a wrong number (-1) or is it a problem with trigedit/scmdraft? What can I do?
Thanks in advance - all advice is greatly appreciated!
Kind regards,
DG
Post has been edited 1 time(s), last time on Apr 10 2012, 6:20 pm by DerGreif.
None.