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

Attribute system. Pls help...

Status
Not open for further replies.
Level 3
Joined
Jul 27, 2007
Messages
21
I nid a system some sort of like dis, when a hero (Blademaster) gains a level, u r given 1 lumber a.k.a (attribute points).
To add ur stat, press -stat den a dialog button appears (+str, +agi, +int). When u click on +str it ll add the hero's str by 1 and the attribute points will minus 1...

This system is just like in the map of Master Crafters Final Conquest. The diff is jz tat u hav to press esc to add the stats... Pls help me.. :cute:
 
Last edited:
Level 14
Joined
Nov 4, 2006
Messages
1,241
  • Events
    • A Unit gains a level (don't know the exact event, shouldnt be hard to find)
  • Conditions
  • Actions
    • Player - add 1 to owner of triggering unit current lumber
  • Events
    • Player 1 types -stats as an exact match
    • Player 2 types -stats as an exact match
    • Player 3 types -stats as an exact match
  • .....
  • Conditions
    • triggering player current lumber is greater then 0
  • Actions
    • show statsdialog to triggering player
  • Events
    • a dialogbutton is clicked
  • Conditions
  • Actions
    • if clicked dialogbutton equal to intbutton
      • then Actions
        • pick every unit in units owned by triggering player of type blademaster and do add 1 intelligence to picked unit
    • add -1 lumber to triggering players current lumber
those are the basic ideas, you need a dialog for it, there are lots of tutorials here, check them out
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
  • Attributes
    • Events
      • Player - Player 1 (Red) types a chat message containing -stat +str as An exact match
      • Player - Player 1 (Red) types a chat message containing -stat +agi as An exact match
      • Player - Player 1 (Red) types a chat message containing -stat +int as An exact match
    • Conditions
    • Actions
      • Set LUMBER = (Player 1 (Red) Current lumber)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -stat +str
        • Then - Actions
          • Hero - Modify Strength of BLADEMASTER: Add LUMBER
          • Player - Set Player 1 (Red) Current lumber to 0
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -stat +agi
        • Then - Actions
          • Hero - Modify Agility of BLADEMASTER: Add LUMBER
          • Player - Set Player 1 (Red) Current lumber to 0
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -stat +int
        • Then - Actions
          • Hero - Modify Intelligence of BLADEMASTER: Add LUMBER
          • Player - Set Player 1 (Red) Current lumber to 0
        • Else - Actions
          • Do nothing
LUMBER = A Integer variable
BLADEMASTER = The unit you want this to have effect on.

You have to make 1 for each player. Just copy this trigger, and change all 'Player 1 (Red)' to the player you want. Also change the unit it effects, or the player will give attribute to the hero of someone else.
 
Level 3
Joined
Jul 27, 2007
Messages
21
the trigger tat i wan is when i type in -stat, a dialog will pop out and hav 3 choices (+str +agi and +int) So when click on +str it will add 1 str to the hero.

If using your type of triggers wud b quite annoying bcoz it will b hard to add the stat when you have alot of attribute points and u wanted to add some agi , some str and some int...
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
  • Attributes
  • Events
    • Player - Player 1 (Red) types a chat message containing -stat as An exact match
  • Conditions
  • Actions
    • Set LUMBER = (Player 1 (Red) Current lumber)
    • Dialog - Show Dialog for Player 1 (Red)
    • Dialog - Change the title of Dialog to Select Attribute
    • Dialog - Create a dialog button for Dialog labelled +Str
    • Set Str = (Last created dialog Button)
    • Dialog - Create a dialog button for Dialog labelled +Agi
    • Set Agi = (Last created dialog Button)
    • Dialog - Create a dialog button for Dialog labelled +Int
    • Set Int = (Last created dialog Button)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Clicked dialog button) Equal to Str
      • Then - Actions
        • Hero - Modify Strength of BLADEMASTER: Add LUMBER
        • Player - Set Player 1 (Red) Current lumber to 0
      • Else - Actions
        • Do nothing
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Clicked dialog button) Equal to Agi
      • Then - Actions
        • Hero - Modify Agility of BLADEMASTER: Add LUMBER
        • Player - Set Player 1 (Red) Current lumber to 0
      • Else - Actions
        • Do nothing
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Clicked dialog button) Equal to Int
      • Then - Actions
        • Hero - Modify Intelligence of BLADEMASTER: Add LUMBER
        • Player - Set Player 1 (Red) Current lumber to 0
      • Else - Actions
        • Do nothing
 
Status
Not open for further replies.
Top