• 🏆 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!

exp based on level

Status
Not open for further replies.
Level 3
Joined
Aug 20, 2008
Messages
40
can somebody help me make xp system based on difference hero lvl and mob lvl...
if hero lvl higher then mob lvl on 3 or lower that 2 there is no exp gain from killing them - something like that
 
Level 2
Joined
Oct 9, 2006
Messages
17
  • exp
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Killing unit)) Greater than or equal to ((Level of (Dying unit)) + 3)
        • Then - Actions
          • Do nothing
        • Else - Actions
 
Level 13
Joined
Nov 4, 2006
Messages
1,239
Bloopers, sry but your trigger does absolutely nothing.

@ topic: you will have to disable experience gaining for all units, and then add experience with triggers
  • exp
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Killing unit)) Greater than or equal to ((Level of (Dying unit)) + 3)
          • Then - Actions
          • Else - Actions
            • add experience to killing unit
use conditions to determine how much experience is gained by checking the level of the dying unit, or the difference of levels of the 2 units
 
Status
Not open for further replies.
Top