Wednesday, April 18, 2012

Making units not able to buy other units?

hello. Is there any way I can disable units from buying units from mercenary camps without giving the mercenary camps "select hero" instead of "select unit" ? thanks in advance|||Why cant you just not but in the Select Hero?

Or then a trigger that remove the Select Unit Ability, when the unit come close to the Shop.. And give the ability back when the unit is out of range?

Or here is an exsample how you might can do it:


Quote:




Enters

Events

Unit - A unit enters cant buy <gen>

Unit - A unit leaves cant buy <gen>

Conditions

(Owner of (Triggering unit)) Equal to Player 1 (Red)

Actions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions

(Triggering unit) Equal to (Entering unit)

Then - Actions

Unit - Remove Select Hero from (Random unit from (Units in cant buy <gen> owned by Neutral Passive))

Unit - Remove Select Unit from (Random unit from (Units in cant buy <gen> owned by Neutral Passive))

Else - Actions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions

(Triggering unit) Equal to (Leaving unit)

Then - Actions

Unit - Add Select Hero to (Random unit from (Units in cant buy <gen> owned by Neutral Passive))

Unit - Add Select Unit to (Random unit from (Units in cant buy <gen> owned by Neutral Passive))

Else - Actions




You can also do do a: A Unit Comes within 300 of Shop

- But that wont work with the Condition: (Triggering unit) Equal to (Leaving unit)|||thanks, that's really clever :)


Quote:




Why cant you just not but in the Select Hero?




cause i dont want heroes in my map :P|||well.. Does the trigger above work?|||yea, it works well :) ty

No comments:

Post a Comment