• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Changing some things via trigger possible?

Status
Not open for further replies.
Level 25
Joined
May 11, 2007
Messages
4,650
  • adsadsasda
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Knight
      • ((Killing unit) is A Hero) Equal to True
    • Actions
      • Hero - Add 1000 experience to (Killing unit), Hide level-up graphics
You can give units that you don't want to be doomed, the resistant skin ability. It makes the game treat them like heroes.
 
Level 25
Joined
May 11, 2007
Messages
4,650
"Via HeroAddXp(unit) (or AddHeroXp, I can't remember the name) native? I tested this earlier and it doesn't work."
The trigger shows that you can add xp to heroes. :)

"And what If I set the Doom Targets Allowed to include Hero?"
Well, it causes some weird gameplay to allow heroes to be targeted by the spell but not units of a certain level, heroes are after all supposed to be "stronger" than normal units.
So yeah, you can do that but I just feel like you're complicating things for yourself just because.. .. I don't know. Sometimes you've got to code around the problem as there are a few things not possible to do in Warcraft.
 
Level 23
Joined
Feb 6, 2014
Messages
2,466
You wanted to change the level of a unit and I thought that was what you wanted it to do, give more xp to heroes.

"And what If I set the Doom Targets Allowed to include Hero?"
Well, it causes some weird gameplay to allow heroes to be targeted by the spell but not units of a certain level, heroes are after all supposed to be "stronger" than normal units.
So yeah, you can do that but I just feel like you're complicating things for yourself just because.. .. I don't know. Sometimes you've got to code around the problem as there are a few things not possible to do in Warcraft.

I want to level units for the reason of it cannot be targetted by Doom anymore.

Yeah that makes sense, I guess I will stick with Resistant Skin. Thanks!
Edit: Can't rep, must spread it first.
 
Status
Not open for further replies.
Top