• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Help with Stat System

Status
Not open for further replies.
Level 4
Joined
Jul 1, 2010
Messages
60
I'm making an RPG and I made a custom stat system for it, I'm trying to figure out why with this trigger it adds +1 to all stats (Sometimes only adds to Agility), not just the stat I want. Please help!

  • Increase Stats
    • Events
      • Unit - Stat Manager 0022 <gen> Begins casting an ability
    • Conditions
    • Actions
      • Unit - Set mana of Stat Manager 0022 <gen> to ((Mana of Stat Manager 0022 <gen>) - 1.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Increase Agility
        • Then - Actions
          • Set Agility = (Agility + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Increase Speed
        • Then - Actions
          • Set Speed = (Speed + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Increase Intelligence
        • Then - Actions
          • Set Intelligence = (Intelligence + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Increase Strength
        • Then - Actions
          • Set Strength = (Strength + 1)
        • Else - Actions
 
Last edited:
Level 16
Joined
May 1, 2008
Messages
1,605
Moin moin =)

  • Increase Stats
    • Events
      • Unit - Stat Manager 0022 <gen> Begins casting an ability
    • Conditions
    • Actions
      • Unit - Set mana of Stat Manager 0022 <gen> to ((Mana of Stat Manager 0022 <gen>) - 1.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Increase Agility
        • Then - Actions
          • Set Agility = (Agility + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Increase Speed
        • Then - Actions
          • Set Speed = (Speed + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Increase Intelligence
        • Then - Actions
          • Set Intelligence = (Intelligence + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Increase Strength
        • Then - Actions
          • Set Strength = (Strength + 1)
        • Else - Actions
It increase all stats? The trigger looks ok, so I have another question: What abilities you use there? If they have all the same code, it can be bugged.

Greetings
~ The Bomb King > Dr. Boom
 
I don't think they work. Must be something to do with the internal stuff of WC3.

@Dr. Boom: Hey!
You wrote "If they have all the same code, it can be bugged".
He wrote "how".
I wrote "Change the base ability. For instance, instead of four different Thunder Clap bases, you can have Thunder Clap as Strength, War Stomp as Agility, Fan of Knives as Intelligence, and Roar as Speed. Remember to remove all the abilities' effects".
I rest my case. Peace 'n love(k, that time I copied you).
 
Status
Not open for further replies.
Top