• 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.

Skillpoints

Status
Not open for further replies.

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Here, this trigger is fairly easy.

  • Ultimatus
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ([I]your conditions[/I])
    • Actions
      • Hero - Modify unspent skill points of (Leveling unit): Subtract 1 points
You can find the Action in Hero - Modify Hero Skill Points.
 
Level 4
Joined
Apr 30, 2007
Messages
62
yes it works correct but i have now an other problem with the skillpoints. sometimes the hero get 11 or 12 points but it should only give 10. this are my triggers:

  • Ereignisse
    • Einheit - A unit gain a level
      • Aktion
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • 'IF'-Bedingungen
      • (Owner of (Leveling Hero)) equal Player 1 (Red)
    • 'THEN'-Aktionen
      • Set Heldenlvl[1] = (Heldenlvl[1] + 1)
    • 'ELSE'-Aktionen
  • skillpoints
    • Ereignisse
      • Einheit - A unit gain a level
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • And - All (Conditions) are true
            • Bedingungen
              • (Owner of (Triggering unit)) Gleich Spieler 1 (Rot)
              • Or - Any (Conditions) are true
                • Bedingungen
                  • Heldenlvl[1] Gleich 2
                  • Heldenlvl[1] Gleich 4
                  • Heldenlvl[1] Gleich 6
                  • Heldenlvl[1] Gleich 8
                  • Heldenlvl[1] Gleich 10
                  • Heldenlvl[1] Gleich 12
                  • Heldenlvl[1] Gleich 14
                  • Heldenlvl[1] Gleich 16
                  • Heldenlvl[1] Gleich 18
                  • Heldenlvl[1] Gleich 20
        • 'THEN'-Aktionen
          • Held - Modify unspent skill points of (Leveling Hero): Entfernen 1 points
        • 'ELSE'-Aktionen
/edit: maybe i should post this in an other section now?
 
Ha now I know that "aktionen" means "Actions" =D

By the way... The way you did the trigger, the hero (held =D) will gain one skill point each 2 levels, right?

Try placing both If/Then/Else in the same trigger, as they have the same Event (or 'Ereignisse')... Maybe this don't solve the problem, but it saves space =D

(hope that 'entfernen' means 'substract')
 
Level 4
Joined
Apr 30, 2007
Messages
62
mhh my WE is in german ... i explan the trigger...
a hero gain a level then if the hero owner is red heldenlvl(1) get +1
(heldenlvl is the lvl of a hero the (x) means the player so 1 = red 2 = blue ....)

second trigger: a hero gain a lvl then if hero owner is red and heldenlvl(1) is for example 6 then the hero get a skillpoint substract whne he reach lvl 6. at lvl 2 4 6 8 10 12 14 16 18 20 the hero get 1 skillpoint substract.so that the hero has all in all 10 skillpoints.
 
Status
Not open for further replies.
Top