• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Trigger help 2

Status
Not open for further replies.
Level 3
Joined
Oct 18, 2008
Messages
13
Hi

I need another help for my campaign, I would like to know how do you stop your player to gain level after level 8 because when I use the trigger:

Event
A unit gain a level
Condition
Triggering unit is Orange
Level of levelling hero is greater than or equal to 8
action
Disable expérience gain for triggering unit

It doesn't work, my heroes stop gaining experience right after the first level up.

Please help ^^
 
Level 3
Joined
Oct 18, 2008
Messages
13
No, that's not what I want
I've got 3 heroes, one is level 10 and the two others are level 4. The level 10 won't gain XP anymore but I want the two others to stop levelling at level 8
That's why It don't work.
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
  • Events
    • Unit - A unit gains a Level
  • Conditions
    • (Level of (Leveling Hero)) greater than or equal to 2
    • (Leveling Hero) Equal to Paladin 0000 <gen>
  • Actions
    • Hero - Disable experiance gain for (Leveling Hero)
 
Level 3
Joined
Oct 18, 2008
Messages
13
when I use the trigger:

Event
A unit gain a level
Condition
Triggering unit is Orange
Level of levelling hero is greater than or equal to 8
action
Disable expérience gain for triggering unit

It doesn't work, my heroes stop gaining experience right after the first level up.

It doesn't work, they just go to level 5 and stop
 
Level 11
Joined
Oct 20, 2007
Messages
342
go to Advance -> gameplay constant -> hero Xp gained -> Creep Reduction Table
delete the 0 value

what is that?
that is a creep exp modifier
there got many integer there, 1st integetr for level 1 unit;2nd for level 2 unit and so on.
the calculation something like:
Experience gained = "Previous value" * "Previous value factor" + "Level" * "Level factor" + "Constant factor" for more detail visit this
so the fifth value = 0
so ur hero get no exp if ur hero level higher than 5
 

Attachments

  • exp.jpg
    exp.jpg
    15.2 KB · Views: 82
Status
Not open for further replies.
Top