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

[Trigger] Noob GUI problem!

Status
Not open for further replies.
Level 6
Joined
Apr 29, 2008
Messages
94
I got one trigger that somewhy does not do what I wanted... why is that?

  • wtf
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
              • ((Picked player) slot status) Equal to Is playing
            • Then - Actions
              • Set PickedPlayer = (Picked player)
              • -------- Attack Power --------
              • Set Count_Integer = ((Stat_Strength[(Team number of PickedPlayer)] x 2) + ((Stat_Strength[(Team number of PickedPlayer)] x 2) / 3))
              • Set Count_Integer = (Count_Integer + (Integer(((Real((Count_Integer x Statpower_AttackPowerPercent[(Team number of PickedPlayer)]))) / 100.00))))
              • Set Statpower_AttackPower[(Team number of PickedPlayer)] = Count_Integer
              • Set Count_Integer = 0
            • Else - Actions
The trigger supposed to increase the Statpower_AttackPower for each player but somewhy it do nothing... why?:confused:
 
Last edited:
Level 18
Joined
Aug 23, 2008
Messages
2,319
I believe the trigger only activates when all players are User and playing.

I suggest you make If/Then/Else triggers like:
  • Check players
    • Events
      • Time - Every 3 seconds of game time
    • Conditions
    • Actions
      • If (All conditions are true) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Player 1 (Red) slot status equal to Is playing
          • Player 1 (Red) controller is equal to User
        • Then - Actions
          • YOUR ACTIONS
Make that If/Then/Else command for each player, and it should be alright.
 
Level 5
Joined
Dec 18, 2007
Messages
205
I think there's a problem with the team number or s.th. because the conditions should work. make DisplayText actions to detect how far your code is working or to display values like team number. And you don't need to set pickedplayer to a variable since it works with picked player, too.
 
Level 6
Joined
Apr 29, 2008
Messages
94
Tried everything, not working...

Well... I think that trigger is correct too so the the problem is not here, I will have to enter deeper into the entire triggers and look if somthing disabling that :slp:
 
Status
Not open for further replies.
Top