I was trying to make some sort of heroize trigger today. And I was wondering:
* I assume the trigger selection system is seperated from the actual game selecting system, so how can 2 such commands interact? E.g.:
* I noticed that nottud uses trUnitSelect() instead of ByID, this somehow does not work for me. And I think it should not, because the SrcObject returns the unit ID. I also noticed in the debugger (looking at triggertemp) that my ID was always 0.
So what am I doing wrong here?
If we knew what it was we were doing, it would not be called research, would it? - Einstein, A.
Master XS - AoM Code Reference - Trigger Loader - Trigger Requests - Chess
Wow, I never thought that I would actually know something before nottud did... it's actually not all that satisfying ~ Steak
* I assume the trigger selection system is seperated from the actual game selecting system, so how can 2 such commands interact? E.g.:
<Effect name="Heroize2">
<Param name="SrcObject" dispName="$$22421$$Unit" varType="unit">default</Param>
<command>trUnitSelectClear();</command>
<command>trUnitSelectByID(%SrcObject%);</command>
<command>uiTransformSelectedUnit("Swordsman Hero");</command>
</Effect>
(Note that this is the cut down version for testing, the other 1 will first find out what the selected unit type is.)* I noticed that nottud uses trUnitSelect(
So what am I doing wrong here?
Master XS - AoM Code Reference - Trigger Loader - Trigger Requests - Chess
Wow, I never thought that I would actually know something before nottud did... it's actually not all that satisfying ~ Steak