Level Up question

Igor_Z

You can change this now in User CP.
Reaction score
61
I got a question if some 1 can answer me. I have this spell that it is channeling(Life Drain) and i want to deny the player from leveling it up while casting. After the unit has finished the casting, to enable the leveling up process again.
P.S: I want to deny leveling up only for that spell not for all!

Does some 1 know how to do that?
 

Silver

New Member
Reaction score
21
First make a trigger with the event that the unit casts the spell. Then under actions you do:

Trigger:
  • Set SkillPoints = (Unspent skill points of (Triggering Unit))
    • Hero - Modify unspent skill points of (Triggering Unit): Subtract 100 points


Then you make a trigger with the event a unit finishes casting an ability. Under actions you do:

Trigger:
  • Hero - Modify unspent skill points of (Triggering Unit): Add (SkillPoints) points


SkillPoints is an Integer Variable
 

tommerbob

Minecraft. :D
Reaction score
110
Wait...you want to turn off experience gain for the hero while he is channeling the spell? Or you want that spell to have only 1 level?

To disable experience gain for heroes, its a trigger. It looks something like this:

Events
Unit - Begins the affect of an ability
Conditions
Boolean Comparison - Ability being cast equal to (your spell)
Actions
Hero - Disable Experience Gain for (your hero)
Wait (however long your spell is channeled)
Hero - Enable Experience Gain for (your hero)

(or something like that)
 

Igor_Z

You can change this now in User CP.
Reaction score
61
@ tommerbob: Dude learn how to read... I don't need that
@ Silver: +rep for u...
 

Hadezown

TH.net Regular
Reaction score
5
You can also have 2 triggers, one to activate the ability and another to turn it off and restore experience gain. You just need a unit variable to store the unit, I personally would prefer this over a wait time if the unit can cancel channeling:

Trigger:
  • Casting
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to StopLeveling
    • Actions
      • Hero - Disable experience gain for (Target unit of ability being cast)
      • Set TargetUnit = (Target unit of ability being cast)


Trigger:
  • Stop
    • Events
      • Unit - A unit Stops casting an ability
    • Conditions
      • (Ability being cast) Equal to StopLeveling
    • Actions
      • Hero - Enable experience gain for TargetUnit
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Silver your idea doesn't work because my unit can gain a level while casting the spell. So i need another solution. Plz Hadezown and tommerbob i don't want to stop expirience gain! Anyone who knows this reply here...
 

Silver

New Member
Reaction score
21
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Triggering unit) Equal to Hero
    • Actions
      • Set SkillPoints = ((SkillPoints) + 1)
      • Hero - Modify unspent skill points of (Triggering Unit): Subtract 100 points

In the trigger with the event that the hero casts the ability, you use a variable to set that unit to the Hero variable.
Trigger:
  • Set Hero = (Triggering Unit)


Hero is a Unit Variable.

Be sure to have the above trigger be initially off, and have the trigger in which the hero casts the ability turn this trigger on. Then once the hero stops casting the ability (and gains his skill points back with the other action), you turn this trigger off again.
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Don't want that sry. This is what I want:
(Issue Order) Not equal to (What is the order of level up)?
 

Silver

New Member
Reaction score
21
So you want the hero to be able to have skill points but not be able to spend them on the Channeled Spell while casting that spell, but still able to spend them on spells that aren't said spell?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top