• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 9
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