| 12-29-2002, 07:39 AM | #1 |
Guest | How would you write a trigger that changes model when certain item is given to hero. Please write in detail please. Many Thanks |
| 12-29-2002, 06:59 PM | #2 |
Event - player owned unit event: A unit owned by player 1 (red) acquires an item Condition - Item owned by hero = [whatever] Action- Unit replace [unit] with [unit] using old unit's relative life and mana Might also want a trigger to select that unit. Finally, bear in mind that any buffs on a hero are nixed when the hero is replaced, and any orders he is following will be cancelled. I haven't played around with replacing heros, so you might want to double check that all items, skills, stats and experience are retained with a replace command. If not, you'll have to manually recreate your old hero using triggers. |
