• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Remove Skill Point except in Multiple of 3

Status
Not open for further replies.
Level 3
Joined
Aug 17, 2008
Messages
45
I think and hope this is relatively simple solution and its just hiding behind my nose.
What I'm trying to do is to just give players one skill point every 3 levels (So level 3,6,9,12,15,etc). I'm currently using the following trigger but its incredibly clunky, hard to scale, and would probably cause too much lag if I ever scaled it up to level 99 or 300 or something.
  • Skill Manager
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Hero level of (Triggering unit)) Not equal to 3
          • (Hero level of (Triggering unit)) Not equal to 6
          • (Hero level of (Triggering unit)) Not equal to 9
          • (Hero level of (Triggering unit)) Not equal to 12
          • (Hero level of (Triggering unit)) Not equal to 15
          • (Hero level of (Triggering unit)) Not equal to 18
          • (Hero level of (Triggering unit)) Not equal to 21
          • (Hero level of (Triggering unit)) Not equal to 24
          • (Hero level of (Triggering unit)) Not equal to 27
          • (Hero level of (Triggering unit)) Not equal to 30
    • Actions
      • Hero - Modify unspent skill points of (Triggering unit): Subtract 1 points
So what I'm trying to do is either get some simple trigger or jass script that just checks whether the hero's level is a multiple of 3. Thanks in advanced. :gg:
 
Level 3
Joined
Aug 17, 2008
Messages
45
Solution successful! I send <3s and more importantly my +rep (unfortunately only 0 points, but y'know I tried.)
 
Status
Not open for further replies.
Top