• 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 Assistance: Needed and Appreciated

Status
Not open for further replies.
Level 3
Joined
Aug 17, 2008
Messages
45
Trigger Assistance [Resolved]

I attempted to make this trigger which should show a multiboard for just one player, however no board is shown at all. Is there any reason that might happen? Or something I scripted wrong? Thank-you very much.
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Multiboard Ability
  • Actions
    • Set PlayerSelecting = (Owner of (Casting unit))
    • Custom script: if( GetLocalPlayer() == udg_PlayerSelecting ) then
    • Multiboard - Show CharacterBoard[(Player number of PlayerSelecting)]
    • Custom script: endif
 
Last edited:
Level 3
Joined
Aug 17, 2008
Messages
45
Is the multiboard ever created?

Yes the multiboard was created in another function.
I'll hide the entire function below >_>.
  • Events
    • Time - Elapsed game time is 0.25 seconds
  • Actions
    • For each (Integer A) from 1 to 8, do (Actions)
      • Loop - Actions
        • Multiboard - Create a multiboard with 2 columns and 8 rows, titled Character Informati...
        • Set CharacterBoard[(Integer A)] = (Last created multiboard)
        • Multiboard - Set the display style for CharacterBoard[(Integer A)] item in column 0, row 0 to Show text and Hide icons
        • Multiboard - Set the width for CharacterBoard[(Integer A)] item in column 1, row 0 to 6.00% of the total screen width
        • Multiboard - Set the width for CharacterBoard[(Integer A)] item in column 2, row 0 to 10.00% of the total screen width
        • Multiboard - Hide (Last created multiboard)
    • For each (Integer A) from 1 to 8, do (Actions)
      • Loop - Actions
        • Multiboard - Set the display style for CharacterBoard[(Integer A)] item in column 1, row 1 to Hide text and Show icons
        • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\WorldEditUI\Editor-Random-Unit.blp
        • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 2 to |c00CCFFCCRace|r
        • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 3 to |c00CCCCFFClass|r
        • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 4 to Agility
        • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 5 to Constitution
        • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 6 to Dexterity
        • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 7 to Strength
        • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 8 to Willpower
        • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 2, row 1 to Info
    • For each (Integer A) from 1 to 8, do (Actions)
      • Loop - Actions
        • Custom script: if( GetLocalPlayer() == ConvertedPlayer(bj_forLoopAIndex) ) then
        • Multiboard - Hide CharacterBoard[(Integer A)]
        • Custom script: endif
    • Custom script: call DestroyTrigger(GetTriggeringTrigger())
Edit: Thank-you for such a quick response by the way.
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
Maybe your multiboard set up trigger is hitting the opplimate and so not completeing properly.

Also do not bother hiding them out of sync, just loop throu them and hide them as hidding them for all players might fix this problem. Afterall you do not want them seen by other players, thus why bother hiding them for only 1?
 
Level 3
Joined
Aug 17, 2008
Messages
45
Ok after trying the things you said the multiboard still didn't display. I added a chat trigger that was supposed to show it to all players but that ended with no result either. If anyone else can find a solution, please help.


  • Creation Multiboard
    • Events
      • Time - Elapsed game time is 0.33 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Multiboard - Create a multiboard with 2 columns and 8 rows, titled Character Informati...
          • Set CharacterBoard[(Integer A)] = (Last created multiboard)
          • Multiboard - Set the display style for CharacterBoard[(Integer A)] item in column 0, row 0 to Show text and Hide icons
          • Multiboard - Set the width for CharacterBoard[(Integer A)] item in column 1, row 0 to 6.00% of the total screen width
          • Multiboard - Set the width for CharacterBoard[(Integer A)] item in column 2, row 0 to 10.00% of the total screen width
          • Multiboard - Set the display style for CharacterBoard[(Integer A)] item in column 1, row 1 to Hide text and Show icons
          • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\WorldEditUI\Editor-Random-Unit.blp
          • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 2 to |c00CCFFCCRace|r
          • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 3 to |c00CCCCFFClass|r
          • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 4 to Agility
          • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 5 to Constitution
          • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 6 to Dexterity
          • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 7 to Strength
          • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 1, row 8 to Willpower
          • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 2, row 1 to Info
          • Multiboard - Hide (Last created multiboard)
      • Multiboard - Hide all multiboards



  • Choose Elf Male
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Elf (Male)
    • Actions
      • Set PlayerSelecting = (Owner of (Casting unit))
      • -------- The Showing Portion of the Trigger START --------
      • -------- xxxxxxxxxxxxxx --------
      • Custom script: if( GetLocalPlayer() == udg_PlayerSelecting ) the
      • Multiboard - Show CharacterBoard[(Player number of PlayerSelecting)]
      • Custom script: endif
      • -------- xxxxxxxxxxxxxx --------
      • -------- The Showing Portion of the Trigger END --------
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Casting unit)) Equal to (Player((Integer A)))
            • Then - Actions
              • Set PlayerRace[(Integer A)] = Elf Male
              • Game - Display to (Player group((Player((Integer A))))) the text: You have chosen Elf...
              • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 2, row 2 to Elf (Male)
              • Multiboard - Set the icon for CharacterBoard[(Integer A)] item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNSpellBreaker.blp
              • Set RaceBaseAgility[(Integer A)] = 10
              • Set RaceBaseConstitution[(Integer A)] = 10
              • Set RaceBaseDexterity[(Integer A)] = 10
              • Set RaceBaseStrength[(Integer A)] = 10
              • Set RaceBaseWillpower[(Integer A)] = 4
              • Unit - Set level of Choose Class for (Casting unit) to 1
              • Unit - Remove CreationUnit[(Integer A)] from the game
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PlayerClass[(Integer A)] Not equal to None
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • PlayerClass[(Integer A)] Equal to Warrior
                    • Then - Actions
                      • Unit - Create 1 Elf Warrior for Neutral Passive at (Center of CreationRegion[(Integer A)]) facing Default building facing degrees
                      • Set CreationUnit[(Integer A)] = (Last created unit)
                    • Else - Actions
                      • Do nothing
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • PlayerClass[(Integer A)] Equal to Mage
                    • Then - Actions
                      • Unit - Create 1 Elf Mage for Neutral Passive at (Center of CreationRegion[(Integer A)]) facing Default building facing degrees
                      • Set CreationUnit[(Integer A)] = (Last created unit)
                    • Else - Actions
                      • Do nothing
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • PlayerClass[(Integer A)] Equal to Hunter
                    • Then - Actions
                      • Unit - Create 1 Elf Hunter for Neutral Passive at (Center of CreationRegion[(Integer A)]) facing Default building facing degrees
                      • Set CreationUnit[(Integer A)] = (Last created unit)
                    • Else - Actions
                      • Do nothing
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • PlayerClass[(Integer A)] Equal to Special
                    • Then - Actions
                      • Unit - Create 1 Elf Shapeshifter for Neutral Passive at (Center of CreationRegion[(Integer A)]) facing Default building facing degrees
                      • Set CreationUnit[(Integer A)] = (Last created unit)
                      • Set ClassBaseConstituion[(Integer A)] = -4
                      • Set ClassBaseConstituion[(Integer A)] = -4
                      • Set ClassBaseWillpower[(Integer A)] = 12
                      • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 2, row 3 to Shapeshifter
                    • Else - Actions
                      • Do nothing
                • Else - Actions
                  • Player - Enable Choose Class for (Player((Integer A)))
                  • Unit - Create 1 Spell Breaker for Neutral Passive at (Center of CreationRegion[(Integer A)]) facing Default building facing degrees
                  • Set CreationUnit[(Integer A)] = (Last created unit)
              • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 2, row 4 to ((|c00CCFFCC + ((String(RaceBaseAgility[(Integer A)])) + |r)) + ( + + (|c00CCCCFF + ((String(ClassBaseAgility[(Integer A)])) + (|r + ( = + (String((RaceBaseAgility[(Integer A)] + ClassBaseAgility[(Integer A)])))))))))
              • Multiboard - Set the text for CharacterBoard[(Integer A)] item in column 2, row 5 to ((|c00CCFFCC + ((String(RaceBaseConstitution[(Integer A)])) + |r)) + ( + + (|c00CCCCFF + ((String(ClassBaseConstituion[(Integer A)])) + (|r + ( = + (String((RaceBaseConstitution[(Integer A)] + ClassBaseConstituion[(Integer A)])))))))))
            • Else - Actions
              • Do nothing



  • TT Show Multi
    • Events
      • Player - Player 1 (Red) types a chat message containing -show as A substring
    • Conditions
    • Actions
      • Multiboard - Show CharacterBoard[(Integer((Substring((Entered chat string), 7, 7))))]
>_> I appreciate it... again....
 
Status
Not open for further replies.
Top