Tome of Power problem

Omnizohar

New Member
Reaction score
0
I made a trigger that my heroes have a level cap and if it reaches X level, it cannot gain further xp until on a different map. Well yeah thats what I wanted and I also wanted that my heroes gain a level from collecting a tome of power. But with the xp lock, my heroes doesn't gain a level from the tome of power. So um I am asking for help on making a trigger that would resolve this problem. Thanks and appreciated.
 

Faust

You can change this now in User CP.
Reaction score
123
How is your level cap system works?
Does it reduces the xp by the same amount the hero gained? Or the hero can simply not gain more whatsoever
 

Omnizohar

New Member
Reaction score
0
-Event
-Unit - A unit owned by Player 1 (Red) Gains a level
-Condition
-(Leveling Hero) Equal to (My Hero)
-(Hero Level of (Leveling Hero)) Greater than or equal to X
-Action
-Hero - Disable experience gain for (My Hero)

Thats my Level Cap trigger.
 
R

Rotterdam_dj

Guest
check if this works..

make a dummy item called tomb of experience with no exp gain (remove tomb of experience ability) and then add this trigger..

Code:
Events
    Unit - A unit owned by Player 1 (Red) Acquires an item
Conditions
    (Item carried by Mountain King 0000 <gen> in slot 1) Equal to (Item carried by Mountain King 0000 <gen> of type Tome of Experience)
Actions
    Hero - Add 1000 experience to (Triggering unit), Hide level-up graphics
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Hero - Add 1000 experience

To a Hero with disabled experience gain?


> (Item carried by Mountain King 0000 <gen> in slot 1) Equal to (Item carried by Mountain King 0000 <gen> of type Tome of Experience)

What are the chances of that condition actually working?
Item-type of (Item being manipulated) equal to ...
 
R

Rotterdam_dj

Guest
worked for me..you could add somewhat of a trigger that enables hero experience gain when it gets the item but after .50 seconds or somthing re enables experience gain..i was jsut slaping things together to see if it would do anything
 

vypur85

Hibernate
Reaction score
803
> worked for me

He was implying that if the item isn't acquired in slot 1, then the trigger won't fire. The chance would be 1/6.

That's why use this:
Code:
Item-type of (Item being manipulated) equal to ...
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
try enabling the experience when gained item for 1 sec then disable it

or another way is using the XP Gain at the Gameplay Constants - u can make it gain 0% exp from monsters so the only think to work for you is the Tomes and any other Item giving exp u use
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top