hey all me again
could u please check these triggers if there are some mistakes im not that good with triggers started making map about week ago still learing and if there are some mistakes could u help me to fix them or smth.
Here we go
Map Start
Some more
Please.
I feel bad for this but i havent got no1 ealse to ask help from
Thats all if u got free time i would really like the help
could u please check these triggers if there are some mistakes im not that good with triggers started making map about week ago still learing and if there are some mistakes could u help me to fix them or smth.
Here we go
Map Start
Code:
Events
Map initialization
Conditions
Actions
Advanced - Initialize advanced triggers
-------- Adjust some map variable settings --------
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for (Picked player))
Game - Set game speed to Fastest
Game - Lock the game speed
Game - Set the time of day to 12.00
Game - Turn the day/night cycle false
Set KickOn = False
Player Group - Pick every player in (All allies of Player 12 (Brown)) and do (Actions)
Loop - Actions
Player - Turn Gives bounty On for (Picked player)
Player - Turn Gives bounty On for (Picked player)
Set PlayerBoat[(Player number of (Picked player))] = (Random unit from (Units owned by (Picked player) of type ))
Set PlayerLumber[(Player number of (Picked player))] = 0
Set VotingPlayersTotal = 9
For each (Integer B) from 3 to 11, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer B))) slot status) Not equal to Is playing
Then - Actions
Unit - Remove (Random unit from (Units owned by (Player((Integer B))))) from the game
Set VotingPlayersTotal = (VotingPlayersTotal - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer B))) is an ally of Player 1 (Red)) Equal to True
Then - Actions
Set SecondGoldPeopleSouth = (SecondGoldPeopleSouth + 1)
Else - Actions
Set SecondGoldPeopleNorth = (SecondGoldPeopleNorth + 1)
Else - Actions
Game - Set the time of day to 12.00
Wait 0.10 seconds
Unit Group - Pick every unit in (Units in (Entire map)(((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Unit - Pause (Picked unit)
Set VoteDoneBool = False
Set AVoteNumberNH = 0
Set AVoteNumberRH = 0
Game - Set ally color filtering to 0
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Game - Display to (Player group((Picked player))) the text: (Welcome Hero |cffffcc00 + ((Name of (Picked player)) + |r to the war of "Hold The Line"))
Set Kills[(Player number of (Picked player))] = 0
Set Deaths[(Player number of (Picked player))] = 5
-------- Vote-Board --------
Wait 0.10 seconds
Multiboard - Create a multiboard with 2 columns and 5 rows, titled Vote-Board
Set VoteBoard = (Last created multiboard)
For each (Integer A) from 1 to 9, do (Actions)
Loop - Actions
Multiboard - Set the display style for VoteBoard item in column 1, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for VoteBoard item in column 2, row (Integer A) to Show text and Hide icons
Multiboard - Set the width for VoteBoard item in column 1, row (Integer A) to 14.00% of the total screen width
Multiboard - Set the width for VoteBoard item in column 2, row (Integer A) to 4.50% of the total screen width
Multiboard - Set the text for VoteBoard item in column 1, row 1 to |cffFF1111Random He...
Multiboard - Set the text for VoteBoard item in column 2, row 1 to |cffffcc000|r
Multiboard - Set the text for VoteBoard item in column 1, row 2 to |cffFF2222Normal He...
Multiboard - Set the text for VoteBoard item in column 2, row 2 to |cffffcc000|r
Multiboard - Set the display style for VoteBoard item in column 1, row 3 to Show text and Show icons
Multiboard - Set the icon for VoteBoard item in column 1, row 3 to ReplaceableTextures\PassiveButtons\PASBTNStatUp.blp
Multiboard - Set the text for VoteBoard item in column 1, row 3 to |cffFFFFFFPlayers:|...
Multiboard - Set the text for VoteBoard item in column 2, row 3 to (|cffffcc00 + ((String(VotingPlayersTotal)) + |r))
Multiboard - Set the display style for VoteBoard item in column 1, row 4 to Show text and Show icons
Multiboard - Set the icon for VoteBoard item in column 1, row 4 to ReplaceableTextures\PassiveButtons\PASBTNStatUp.blp
Multiboard - Set the text for VoteBoard item in column 1, row 4 to |cffFFFFFFVotes:|r
Multiboard - Set the text for VoteBoard item in column 2, row 4 to |cffffcc000|r
Multiboard - Set the text for VoteBoard item in column 1, row 5 to <Empty String>
Multiboard - Set the text for VoteBoard item in column 2, row 5 to <Empty String>
Multiboard - Show VoteBoard
Dialog - Change the title of KickDialogHelp to |cffFF6666You are k...
Dialog - Create a dialog button for KickDialogHelp labelled Ok
-------- Vote --------
Dialog - Change the title of VoteDialog to Vote Menu
Dialog - Create a dialog button for VoteDialog labelled |cff66FF66Normal He...
Set AVoteNormalHeroes = (Last created dialog Button)
Dialog - Create a dialog button for VoteDialog labelled |cffFFFF55Random He...
Set AVoteRandomHeroes = (Last created dialog Button)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Dialog - Show VoteDialog for (Picked player)
Wait 1.50 seconds
Set VoteTimer = 15
Multiboard - Change the number of rows for VoteBoard to 11
Multiboard - Set the display style for VoteBoard item in column 1, row 11 to Show text and Hide icons
Multiboard - Set the display style for VoteBoard item in column 2, row 11 to Show text and Hide icons
Multiboard - Set the width for VoteBoard item in column 1, row 11 to 14.00% of the total screen width
Multiboard - Set the width for VoteBoard item in column 2, row 11 to 4.50% of the total screen width
Multiboard - Set the text for VoteBoard item in column 1, row 11 to |cff33BBBBVote-Time...
Multiboard - Set the text for VoteBoard item in column 2, row 11 to (String(VoteTimer))
For each (Integer A) from 1 to 15, do (Actions)
Loop - Actions
Wait 0.90 seconds
Set VoteTimer = (VoteTimer - 1)
Multiboard - Set the text for VoteBoard item in column 2, row 11 to (String(VoteTimer))
Wait 1.00 seconds
Multiboard - Change the number of rows for VoteBoard to 10
Set VoteDoneBool = True
Trigger - Run Mode Vote Done Check <gen> (checking conditions)
Wait 10.00 seconds
Set KickOn = True
Some more
Code:
A Player Leaves
Events
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerIsKicked[(Player number of (Triggering player))] Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 1 (Red)) Equal to True
Then - Actions
Set SecondGoldPeopleSouth = (SecondGoldPeopleSouth + 1)
Else - Actions
Set SecondGoldPeopleNorth = (SecondGoldPeopleNorth + 1)
Set VotingPlayersTotal = (VotingPlayersTotal - 1)
Multiboard - Set the text for VoteBoard item in column 2, row 8 to (|cffffcc00 + ((String(VotingPlayersTotal)) + |r))
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game.)
Player - Add ((Point-value of PlayerBoat[(Player number of (Triggering player))]) / 2) to (Triggering player) Current gold
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Player - Add ((Integer((Current life of (Item carried by PlayerBoat[(Player number of (Triggering player))] in slot (Integer A))))) / 2) to (Triggering player) Current gold
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Countdown Timer - Destroy DeadTimerWindow[(Player number of (Triggering player))]
Multiboard - Set the text for Multiboard item in column 2, row ((Player number of (Triggering player)) - 1) to Quit
-------- Pengar --------
Set TempMoney = ((Number of players in (All players matching ((((Matching player) is an ally of (Triggering player)) Equal to True) and (((Matching player) slot status) Equal to Is playing)))) - 1)
Player Group - Pick every player in (All players matching ((((Matching player) is an ally of (Triggering player)) Equal to True) and ((Matching player) Not equal to (Triggering player)))) and do (Actions)
Loop - Actions
Player - Add (((Triggering player) Current gold) / TempMoney) to (Picked player) Current gold
Game - Display to (All allies of (Triggering player)) the text: (Your got |cffffcc00 + ((String((((Triggering player) Current gold) / TempMoney))) + (|r from |cffffcc00 + ((Name of (Triggering player)) + |r.))))
Player - Set (Triggering player) Current gold to 0
Set PlayerIsKicked[(Player number of (Triggering player))] = True
Else - Actions
Code:
Mode Vote Cast
Events
Dialog - A dialog button is clicked for VoteDialog
Conditions
NoMoreVoting Equal to False
Actions
Camera - Reset camera for (Triggering player) to standard game-view over 3.00 seconds
Set VotingPlayersDone = (VotingPlayersDone + 1)
Multiboard - Set the text for VoteBoard item in column 2, row 9 to (|cffffcc00 + ((String(VotingPlayersDone)) + |r))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to AVoteRandomHeroes
Then - Actions
Set AVoteNumberRH = (AVoteNumberRH + 1)
Multiboard - Set the text for VoteBoard item in column 2, row 1 to (|cffffcc00 + ((String(AVoteNumberRH)) + |r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to AVoteNormalHeroes
Then - Actions
Set AVoteNumberNH = (AVoteNumberNH + 1)
Multiboard - Set the text for VoteBoard item in column 2, row 2 to (|cffffcc00 + ((String(AVoteNumberNH)) + |r))
Else - Actions
Trigger - Run Mode Vote Done Check <gen> (checking conditions)
Please.
Code:
Mode Vote Done Check
Events
Conditions
NoMoreVoting Equal to False
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
VotingPlayersTotal Equal to VotingPlayersDone
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Dialog - Hide VoteDialog for (Picked player)
Camera - Reset camera for (Picked player) to standard game-view over 3.00 seconds
Set VoteDoneBool = True
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
VoteDoneBool Equal to True
Then - Actions
-------- Random Heroes --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AVoteNumberRH Greater than AVoteNumberNH
Then - Actions
Set ModeRH = True
Game - Display to (All players) the text: Mode: |cffFF1111Ran...
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Trigger - Run Random Hero10 <gen> (checking conditions)
Trigger - Run Random Hero3 <gen> (checking conditions)
Trigger - Run Random Hero11 <gen> (checking conditions)
Trigger - Run Random Hero5 <gen> (checking conditions)
Trigger - Run Random Hero6 <gen> (checking conditions)
Trigger - Run Random Hero7 <gen> (checking conditions)
Trigger - Run Random Hero8 <gen> (checking conditions)
Trigger - Run Random Hero9 <gen> (checking conditions)
Else - Actions
-------- Normal Heroes --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AVoteNumberNH Greater than AVoteNumberRH
Then - Actions
Set ModeNH = True
Game - Display to (All players) the text: Mode: |cffFF3333Nor...
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Trigger - Run REMOVE FOG <gen> (checking conditions)
Trigger - Turn on HeroPicked10 <gen>
Trigger - Turn on HeroPicked11 <gen>
Trigger - Turn on HeroPicked3 <gen>
Trigger - Turn on HeroPicked4 <gen>
Trigger - Turn on HeroPicked5 <gen>
Trigger - Turn on HeroPicked6 <gen>
Trigger - Turn on HeroPicked7 <gen>
Trigger - Turn on HeroPicked8 <gen>
Trigger - Turn on HeroPicked9 <gen>
Else - Actions
-------- - --------
-------- Begin Playing --------
-------- - --------
-------- MultiBoard Fixing --------
Set NoMoreVoting = True
Wait 4.00 seconds
Multiboard - Destroy VoteBoard
Multiboard - Clear VoteBoard
Wait 1.00 seconds
Multiboard - Create a multiboard with 4 columns and 11 rows, titled Hold The Line - |cf...
Set Multiboard = (Last created multiboard)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ModeRH Equal to True
Then - Actions
Multiboard - Change the title of Multiboard to Hold The Line - |cf...
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ModeNH Equal to True
Then - Actions
Multiboard - Change the title of Multiboard to Hold The Line - |cf...
Else - Actions
Multiboard - Set the text for Multiboard item in column 1, row 1 to Name
Multiboard - Set the text for Multiboard item in column 2, row 1 to Status
Multiboard - Set the text for Multiboard item in column 3, row 1 to Kills
Multiboard - Set the text for Multiboard item in column 4, row 1 to Lives
Multiboard - Set the display style for Multiboard item in column 1, row 1 to Show text and Hide icons
Multiboard - Set the display style for Multiboard item in column 2, row 1 to Show text and Hide icons
Multiboard - Set the display style for Multiboard item in column 3, row 1 to Show text and Hide icons
Multiboard - Set the display style for Multiboard item in column 4, row 1 to Show text and Hide icons
Multiboard - Set the width for Multiboard item in column 1, row 1 to 10.00% of the total screen width
Multiboard - Set the width for Multiboard item in column 2, row 1 to 4.50% of the total screen width
Multiboard - Set the width for Multiboard item in column 3, row 1 to 2.80% of the total screen width
Multiboard - Set the width for Multiboard item in column 4, row 1 to 3.70% of the total screen width
For each (Integer A) from 2 to 11, do (Actions)
Loop - Actions
Multiboard - Set the text for Multiboard item in column 1, row (Integer A) to (|cffFF6666 + ((Name of (Player(((Integer A) + 1)))) + |r))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(((Integer A) + 1))) slot status) Equal to Is playing
Then - Actions
Multiboard - Set the text for Multiboard item in column 2, row (Integer A) to |cff66FF66Alive|r
Else - Actions
Multiboard - Set the text for Multiboard item in column 2, row (Integer A) to Quit
Multiboard - Set the text for Multiboard item in column 3, row (Integer A) to (|cffffcc00 + ((String(Kills[(Player number of (Player(((Integer A) + 1))))])) + |r))
Multiboard - Set the text for Multiboard item in column 3, row (Integer A) to (|cffffcc00 + 0)
Multiboard - Set the text for Multiboard item in column 4, row (Integer A) to (|cffffcc00 + 0)
Multiboard - Set the width for Multiboard item in column 1, row (Integer A) to 10.00% of the total screen width
Multiboard - Set the width for Multiboard item in column 2, row (Integer A) to 5.50% of the total screen width
Multiboard - Set the width for Multiboard item in column 4, row (Integer A) to 3.70% of the total screen width
Multiboard - Set the width for Multiboard item in column 3, row (Integer A) to 3.30% of the total screen width
Multiboard - Set the display style for Multiboard item in column 1, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for Multiboard item in column 2, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for Multiboard item in column 3, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for Multiboard item in column 4, row (Integer A) to Show text and Hide icons
Multiboard - Hide Multiboard
Multiboard - Show Multiboard
Else - Actions
I feel bad for this but i havent got no1 ealse to ask help from
Code:
Kills Respawn
Events
Unit - A unit Dies
Conditions
Actions
Set Deaths[(Player number of (Owner of (Triggering unit)))] = (Deaths[(Player number of (Owner of (Triggering unit)))] - 1)
Multiboard - Set the text for Multiboard item in column 4, row ((Player number of (Owner of (Triggering unit))) - 1) to (|cffffcc00 + ((String(Deaths[(Player number of (Owner of (Triggering unit)))])) + |r))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to False
((Owner of (Killing unit)) is an ally of Player 2 (Blue)) Equal to False
And - All (Conditions) are true
Conditions
((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to False
((Owner of (Triggering unit)) is an ally of Player 2 (Blue)) Equal to False
Then - Actions
Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
(Owner of (Killing unit)) Equal to Player 2 (Blue)
Then - Actions
Multiboard - Set the text for Multiboard item in column 3, row ((Player number of (Owner of (Killing unit))) - 1) to (|cffffcc00 + ((String(Kills[(Player number of (Player((Player number of (Owner of (Killing unit))))))])) + |r))
Else - Actions
Set DeathTimerNumber[(Player number of (Owner of (Triggering unit)))] = (((Hero level of (Triggering unit)) x 2) + (5 + (Random integer number between 0 and 3)))
Countdown Timer - Start DeadTimer[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in (Real(DeathTimerNumber[(Player number of (Owner of (Triggering unit)))])) seconds
Set DeadTimer[(Player number of (Owner of (Triggering unit)))] = (Last started timer)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
Then - Actions
Countdown Timer - Create a timer window for DeadTimer[(Player number of (Owner of (Triggering unit)))] with title (|cffFF6666 + ((Name of (Owner of (Triggering unit))) + |r))
Set DeadTimerWindow[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
Countdown Timer - Show DeadTimerWindow[(Player number of (Owner of (Triggering unit)))] for (Owner of (Triggering unit))
Multiboard - Set the text for Multiboard item in column 2, row ((Player number of (Owner of (Triggering unit))) - 1) to |cffFF6666Dead|r
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is an ally of Player 2 (Blue)) Equal to True
Then - Actions
Countdown Timer - Create a timer window for DeadTimer[(Player number of (Owner of (Triggering unit)))] with title (|cff6666FF + ((Name of (Owner of (Triggering unit))) + |r))
Set DeadTimerWindow[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
Countdown Timer - Show DeadTimerWindow[(Player number of (Owner of (Triggering unit)))] for (Owner of (Triggering unit))
Multiboard - Set the text for Multiboard item in column 2, row ((Player number of (Owner of (Triggering unit))) - 1) to |cff6666FFDead|r
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is an ally of Player 12 (Brown)) Equal to True
((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to True
Then - Actions
Game - Display to (All players matching ((Matching player) Not equal to (Owner of (Triggering unit)))) the text: (|cff6666FF + ((Name of (Owner of (Killing unit))) + (|r has sunk |cffFF6666 + ((Name of (Owner of (Triggering unit))) + |r.))))
Game - Display to (Player group((Owner of (Triggering unit)))) the text: (|cff6666FF + ((Name of (Owner of (Killing unit))) + (|r sunk you! Your ship will be rebuilt in |cffffcc00 + ((String(DeathTimerNumber[(Player number of (Owner of (Triggering unit)))])) + |r seconds.))))
Else - Actions
Multiboard - Set the text for Multiboard item in column 1, row 1 to Name
Multiboard - Set the text for Multiboard item in column 2, row 1 to Status
Multiboard - Set the text for Multiboard item in column 3, row 1 to Kills
Wait (Real(DeathTimerNumber[(Player number of (Owner of (Triggering unit)))])) seconds
Unit - Make (Triggering unit) Invulnerable
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\DivineShield\DivineShieldTarget.mdl
Set RespawnEffect[(Player number of (Owner of (Triggering unit)))] = (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) slot status) Equal to Is playing
Then - Actions
Multiboard - Set the text for Multiboard item in column 2, row ((Player number of (Owner of (Triggering unit))) - 1) to |cff66FF66Alive|r
Countdown Timer - Destroy DeadTimerWindow[(Player number of (Owner of (Triggering unit)))]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is an ally of Player 12 (Brown)) Equal to True
Then - Actions
Hero - Instantly revive (Triggering unit) at (Center of Hero Revive Place <gen>), Show revival graphics
Else - Actions
Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Triggering unit)) over 0.80 seconds
Else - Actions
Multiboard - Set the text for Multiboard item in column 1, row 1 to Name
Multiboard - Set the text for Multiboard item in column 2, row 1 to Status
Multiboard - Set the text for Multiboard item in column 3, row 1 to Kills
Wait 5.00 seconds
Special Effect - Destroy RespawnEffect[(Player number of (Owner of (Triggering unit)))]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerHandyMan[(Player number of (Owner of (Triggering unit)))] Not equal to No unit
Then - Actions
Else - Actions
Unit - Make (Triggering unit) Vulnerable
Thats all if u got free time i would really like the help