• 🏆 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 rate for the quest is screwed up

Status
Not open for further replies.
  • ((Triggering unit) is A Hero) Equal to True
Should be (Picked unit)
The thing is, you pick every unit and up to the heroes in the map, you multiply the experience given. Do you want to add it on every hero on the map? If so,
Use (Owner of (Picked unit)) for the gold and (Picked unit) for the xp. If you want to xp boost the triggering unit only, don't use the Unit Group action.
 
Level 4
Joined
Jun 17, 2011
Messages
64
So it should be like this?
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Picked unit) is A Hero) Equal to True
    • Then - Actions
      • Player - Add 50 to (Owner of (Picked unit)) Current gold
      • Hero - Add 100 experience to (Picked unit), Show level-up graphics
    • Else - Actions
Right now its not giving exp.
 
Last edited by a moderator:
Level 15
Joined
Sep 27, 2009
Messages
669
So it should be like this?
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Player - Add 50 to (Owner of (Picked unit)) Current gold
Hero - Add 100 experience to (Picked unit), Show level-up graphics
Else - Actions
Right now its not giving exp.

You must first pick the unit then set (Picked unit) !
 
Level 17
Joined
Apr 3, 2010
Messages
1,101
Event: Unit dies
Condition: And all conditions are true
Owner of dying unit = Enemy of player 1
Owner of killing unit = ally of player one
Action:
Add property-Gold (Arithmatic)15xunit level of Dying unit (Real to integer then unit leve)
Add Exp to Killing hero/unit (Arithmatic)100xunitlevelofdyingunit(real to integer etc

:p

Alternatly Just set Event = Unit dies owned by Neutral hostile
OR whoever the enemy is
Then remove conditions and that also works
 
Level 4
Joined
Jun 17, 2011
Messages
64
Event: Unit dies
Condition: And all conditions are true
Owner of dying unit = Enemy of player 1
Owner of killing unit = ally of player one
Action:
Add property-Gold (Arithmatic)15xunit level of Dying unit (Real to integer then unit leve)
Add Exp to Killing hero/unit (Arithmatic)100xunitlevelofdyingunit(real to integer etc

:p

Alternatly Just set Event = Unit dies owned by Neutral hostile
OR whoever the enemy is
Then remove conditions and that also works

i dont know how to get those conditions
 
Level 4
Joined
Jun 17, 2011
Messages
64
its not working here is the trigger
  • Gold
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
      • (Owner of (Dying unit)) Equal to (Owner of (Killing unit))
    • Actions
      • Player - Add (15 x (Hero level of (Dying unit))) to Player Current gold
i dont know how to get the exp action one too
 
Level 17
Joined
Apr 3, 2010
Messages
1,101
Copy Paste the Player add ---
Then double click 15 change to 100
Then doule click to player gold and instead go to Hero-Hero Exp-Add exp
 
Level 4
Joined
Jun 17, 2011
Messages
64
ok its like this now but its still not working
  • Gold and Exp
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
      • (Owner of (Dying unit)) Equal to (Owner of (Killing unit))
    • Actions
      • Player - Add (15 + (Level of (Dying unit))) to Player Current gold
      • Hero - Add (25 x (Level of (Triggering unit))) experience to (Triggering unit), Hide level-up graphics
 
Level 17
Joined
Apr 3, 2010
Messages
1,101
Its Killing unit not triggering unit....Also it should be Add 25x Level of Dying unit--
So
Hero-Add (25 x (level of(Dying unit))) Experiance to Killing unit, hide level up graphics
Also the condition is wrong
it should be
Owner of Dying unit not = To ally of owner of killing unit

Boleean- for the To ally of
 
Level 4
Joined
Jun 17, 2011
Messages
64
Its Killing unit not triggering unit....Also it should be Add 25x Level of Dying unit--
So
Hero-Add (25 x (level of(Dying unit))) Experiance to Killing unit, hide level up graphics
Also the condition is wrong
it should be
Owner of Dying unit not = To ally of owner of killing unit

Boleean- for the To ally of

so like this?
  • Gold and Exp
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
      • (Owner of (Dying unit)) Not equal to (Owner of (Killing unit))
    • Actions
      • Player - Add (15 + (Level of (Dying unit))) to Player Current gold
      • Hero - Add (25 x (Level of (Dying unit))) experience to (Killing unit), Hide level-up graphics
but it is still not giving gold
and it gives 90 exp for a lvl 2 which should be 50 exp
 
Level 17
Joined
Apr 3, 2010
Messages
1,101
It shoudlnt be player current player ...

It should be

Add (+15+(level of (dying unit))) to owner of killing unit gold

And have you set it so that the XP gain rate is 0%?
 
Status
Not open for further replies.
Top