• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Hero only get exp from some creeps?

Status
Not open for further replies.
Level 19
Joined
Feb 25, 2009
Messages
2,004
  • Exp
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Killing unit) is A Hero) Equal to True
      • (Owner of (Triggering unit)) Not equal to (Owner of (Killing unit))
      • And - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Footman
          • (Unit-type of (Triggering unit)) Equal to Rifleman
    • Actions
      • Set Exp = (Random integer number between 30 and 140)
      • Game - Display to (Player group((Owner of (Killing unit)))) for 3.00 seconds the text: (You gained |cffffcc00 + ((String(Exp)) + |r for killing this unit.))
      • Hero - Add Exp experience to (Killing unit), Show level-up graphics
Otherwise, create multiple IF/THEN/ELSE handles for every unit, or multiple trigger for every unit.
 
Level 10
Joined
Oct 22, 2006
Messages
599
- Hmm, that's a tricky one. You could add with triggers the XP every time a unit dies, but I don't recommend that!

- You can also play with the levels, meaning set the knight (and every other unit you don't want to gain XP from) to level 1. Then modify the Gamplay Constants > Hero XP - Table, or something like that. - Someone fill this.
 
Status
Not open for further replies.
Top