- Joined
- Nov 19, 2010
- Messages
- 54
Hello,
I need some help with some triggers with Legion TD 3.42 unprotected.
I have edited the Legion TD 3.42 unprotected map that I have downloaded (great map as most knows !) but my brother and i and a few friends play this map almost every week on lan and i found the unprotected one and we want to edit it for us to play since we mostly play together to add a few more levels and for the king's attack, hitpoints etc. as well.
I have previous experience with maps and triggers and variables and such ( made several TD's and also arena battles in the past ) but i recently started again with WC3 reforged and it has been a while but i am able to edit most things so far except this "bounty" issue, I have looked over 3 times already and i really cannot seem to find it and i think i have everything correct
I have added like 10 extra levels to play after the "original" 30 levels that are in Legion TD so far.
This is the Creep properties:
The above trigger is found under Setup Constants -> Setup Creep Properties
I see it displays 2x The variableset in the trigger above of "Levelbountylist" & "Levelwavecountlist" but 2 of those that was already disabled (diaabled function) when i opened the map!
They do spawn ( i have defined how many get spawned ) and information is displayed correctly except when the creep is killed i do not get any bounty.
The variable set of the units being spawned by "levelwavecountlist" do work but the variable set for "levelbounty list" after level 30 ( levelbounty count gold = 123 ) i have added 10 levels in total with 175 gold for the last boss but i do not get any bounty, i have copied the lvl 29 unit for my level 31 and higher units so the bounty is defined as the rest of the creeps being send.
All the units at the object editor at "Stats - Gold Bounty Award - Base" is set to 1 as with the rest of the units that are being send (number and slice per dice = 0 like the rest as well )
I have defined that level 41 is the max level ( the units spawn so that part works )
I have checked every trigger there is but all i could find was something defining the regions of "No bounty" for units when they enter in the "Middle" of Legion TD ( those who played know what i mean ) you will not get any bounty after a certain spot on the map ( it was defined until level 30 ) but that is not part of my issue what i am having.
I have also found a bounty array that is generated in the Generate Creep Properties trigger
The above trigger is found under Setup Constants -> Generate Creep Properties
I hope some one is able to help me out with this because i really tried looking well and good at triggers in which i thought maybe something is not defined yet for it but all i can find is that "Levelbountylist" that sets how much bounty you get per killed creep and nothing else i could find about it next to the max level variable and how many are being spawned that is in the same trigger and i see the "levelbountylist" is correct for the gold that gets awarded when we kill the creeps.
I have added the legion TD mega 3.41 unprotected map if any want wants to help and check it out.
Thanks in advance!
I need some help with some triggers with Legion TD 3.42 unprotected.
I have edited the Legion TD 3.42 unprotected map that I have downloaded (great map as most knows !) but my brother and i and a few friends play this map almost every week on lan and i found the unprotected one and we want to edit it for us to play since we mostly play together to add a few more levels and for the king's attack, hitpoints etc. as well.
I have previous experience with maps and triggers and variables and such ( made several TD's and also arena battles in the past ) but i recently started again with WC3 reforged and it has been a while but i am able to edit most things so far except this "bounty" issue, I have looked over 3 times already and i really cannot seem to find it and i think i have everything correct
I have added like 10 extra levels to play after the "original" 30 levels that are in Legion TD so far.
This is the Creep properties:
-
Setup Creep Properties
- Events
- Conditions
-
Actions
- -------- =================== Misc =================== --------
- Set VariableSet MaxLevel_Integer = 41
- -------- =================== Armor Types =================== --------
- Set VariableSet LevelArmor_String[1] = |cffEEBC86Light|r armor
- Set VariableSet LevelArmor_String[2] = |cffFF8000Medium|r armor
- Set VariableSet LevelArmor_String[3] = |cff408040Heavy|r armor
- Set VariableSet LevelArmor_String[4] = |cff773C00Fortified|r armor
- Set VariableSet LevelArmor_String[5] = |cffCCCCCCUnarmored|r armor
- -------- =================== Attack Types =================== --------
- Set VariableSet LevelAttack_String[1] = |cffFFFF48Piercing|r attack
- Set VariableSet LevelAttack_String[2] = |cff8080FFNormal|r attack
- Set VariableSet LevelAttack_String[3] = |cffFF80FFMagic|r attack
- Set VariableSet LevelAttack_String[4] = |cffA0A0A0Siege|r attack
- Set VariableSet LevelAttack_String[5] = |cff970000Chaos|r attack
- -------- =================== Attack Type Lists =================== --------
- Set VariableSet ATKPierceList = ,01,04,7,12,19,21,25,33,37
- Set VariableSet ATKNormalList = ,02,03,09,14,15,23,26,27,31,32,38
- Set VariableSet ATKMagicList = ,05,08,13,16,18,24,29,39
- Set VariableSet ATKSiegeList = ,06,11,17,22,28,35
- Set VariableSet ATKChaosList = ,10,20,30,31,34,36,41
- -------- ===================Defense Type Lists =================== --------
- Set VariableSet DEFLightList = ,05,07,10,13,16,19,21,25,31,33
- Set VariableSet DEFMediumList = ,03,08,12,14,18,24,27,32,35
- Set VariableSet DEFHeavyList = ,04,09,15,20,23,26,29,34,36
- Set VariableSet DEFFortifiedList = ,06,11,17,22,28,30,37,38,39
- Set VariableSet DEFUnarmoredList = ,01,02
- Set VariableSet AirList = ,05,13,21,29,35
- Set VariableSet BossList = ,10,20,30,40
- Set VariableSet RangeList = ,04,08,12,16,20,24,28,29,33,37
- Set VariableSet LevelBountyList = ,3,3,4,5,5,5,6,6,5,51,5,6,7,12,9,8,10,8,10,86,10,9,11,11,9,12,12,23,14,123,14,14,14,16,20,16,14,16,20,175
- Set VariableSet LevelBountyList = ,3,3,4,5,5,5,6,6,5,51,5,6,7,12,9,8,10,8,10,86,10,9,11,11,9,12,12,23,14,123,14,14,14,16,20,16,14,16,20,175
- -------- x1 spawn --------
- Set VariableSet LevelWaveCountList = ,12,15,12,12,12,12,10,12,15,01,18,15,15,08,12,15,12,15,12,01,12,16,12,12,18,12,12,06,10,01,05
- -------- X3 spawn --------
- Set VariableSet LevelWaveCountList = ,36,45,36,36,36,36,30,36,45,03,54,45,45,24,36,45,36,45,36,03,36,48,36,36,45,36,36,18,30,03,15
- Set VariableSet LevelWaveCountList = ,36,45,40,36,36,36,30,36,45,03,54,45,45,26,36,45,35,45,36,03,36,48,36,35,45,36,36,18,30,03,48,40,44,40,30,40,36,40,36,03,40
- -------- =================== Time To Prepare, End Round Gold =================== --------
-
For each (Integer A) from 1 to MaxLevel_Integer, do (Actions)
-
Loop - Actions
- -------- x1 spawn --------
- Set VariableSet Level_TimeToPrepare[(Integer A)] = (35 + (Integer A))
- Set VariableSet Level_EndRoundGold[(Integer A)] = (((5 x (Integer A)) / 3) + 12)
- -------- Time to Prepare --------
- Set VariableSet Level_TimeToPrepare[(Integer A)] = (40 + ((Integer A) / 2))
- -------- Bonus Gold.... See Set UP Recommend Value --------
- Set VariableSet Temp_Real = (Real((Integer A)))
- Custom script: set udg_Temp_Real2 = ((((((udg_Temp_Real*udg_Temp_Real)*udg_Temp_Real)*0.01)+((udg_Temp_Real*udg_Temp_Real)*0.04))+udg_Temp_Real)+10)
- Set VariableSet Level_EndRoundGold[(Integer A)] = (Integer(Temp_Real2))
-
Loop - Actions
-
For each (Integer A) from 1 to MaxLevel_Integer, do (Actions)
-
Loop - Actions
- -------- Income Cap --------
- Set VariableSet Temp_Real = (Real((Integer A)))
- Custom script: set udg_Temp_Real2 = ((((((udg_Temp_Real*udg_Temp_Real)*udg_Temp_Real)*0.025)+((udg_Temp_Real*udg_Temp_Real)*0.05))+(udg_Temp_Real*4))+20)
- Set VariableSet Level_Income_Cap[(Integer A)] = (Integer(Temp_Real2))
-
Loop - Actions
I see it displays 2x The variableset in the trigger above of "Levelbountylist" & "Levelwavecountlist" but 2 of those that was already disabled (diaabled function) when i opened the map!
They do spawn ( i have defined how many get spawned ) and information is displayed correctly except when the creep is killed i do not get any bounty.
The variable set of the units being spawned by "levelwavecountlist" do work but the variable set for "levelbounty list" after level 30 ( levelbounty count gold = 123 ) i have added 10 levels in total with 175 gold for the last boss but i do not get any bounty, i have copied the lvl 29 unit for my level 31 and higher units so the bounty is defined as the rest of the creeps being send.
All the units at the object editor at "Stats - Gold Bounty Award - Base" is set to 1 as with the rest of the units that are being send (number and slice per dice = 0 like the rest as well )
I have defined that level 41 is the max level ( the units spawn so that part works )
I have checked every trigger there is but all i could find was something defining the regions of "No bounty" for units when they enter in the "Middle" of Legion TD ( those who played know what i mean ) you will not get any bounty after a certain spot on the map ( it was defined until level 30 ) but that is not part of my issue what i am having.
I have also found a bounty array that is generated in the Generate Creep Properties trigger
-
Generate Creep Properties
- Events
- Conditions
-
Actions
- -------- Generate Attack Type Arrays --------
- Set VariableSet Temp_Integer = 0
-
For each (Integer A) from 1 to ((MaxLevel_Integer x 3) + 3), do (Actions)
-
Loop - Actions
- Set VariableSet Temp_Integer = (Temp_Integer + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(ATKPierceList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(ATKPierceList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelATKType_String[Temp_Integer2] = LevelAttack_String[1]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(ATKNormalList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(ATKNormalList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelATKType_String[Temp_Integer2] = LevelAttack_String[2]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(ATKMagicList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(ATKMagicList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelATKType_String[Temp_Integer2] = LevelAttack_String[3]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(ATKSiegeList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(ATKSiegeList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelATKType_String[Temp_Integer2] = LevelAttack_String[4]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(ATKChaosList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(ATKChaosList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelATKType_String[Temp_Integer2] = LevelAttack_String[5]
- Else - Actions
-
If - Conditions
-
Loop - Actions
- -------- Generate Defense Type Arrays --------
- Set VariableSet Temp_Integer = 0
-
For each (Integer A) from 1 to ((MaxLevel_Integer x 3) + 3), do (Actions)
-
Loop - Actions
- Set VariableSet Temp_Integer = (Temp_Integer + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(DEFLightList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(DEFLightList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelDEFType_String[Temp_Integer2] = LevelArmor_String[1]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(DEFMediumList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(DEFMediumList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelDEFType_String[Temp_Integer2] = LevelArmor_String[2]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(DEFHeavyList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(DEFHeavyList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelDEFType_String[Temp_Integer2] = LevelArmor_String[3]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(DEFFortifiedList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(DEFFortifiedList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelDEFType_String[Temp_Integer2] = LevelArmor_String[4]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(DEFUnarmoredList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer((Substring(DEFUnarmoredList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelDEFType_String[Temp_Integer2] = LevelArmor_String[5]
- Else - Actions
-
If - Conditions
-
Loop - Actions
- -------- Generate Wave Count Array --------
- Set VariableSet Temp_Integer = 0
- Set VariableSet Temp_Integer3 = 0
-
For each (Integer A) from 1 to ((MaxLevel_Integer x 3) + 3), do (Actions)
-
Loop - Actions
- Set VariableSet Temp_Integer = (Temp_Integer + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(LevelWaveCountList, Temp_Integer, Temp_Integer)) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer3 = (Temp_Integer3 + 1)
- Set VariableSet Temp_Integer2 = (Integer((Substring(LevelWaveCountList, (Temp_Integer + 1), (Temp_Integer + 2)))))
- Set VariableSet LevelWaveCount_Integer[Temp_Integer3] = Temp_Integer2
- Else - Actions
-
If - Conditions
-
Loop - Actions
- -------- Generate Bounty Array --------
- Set VariableSet Temp_Integer = 0
- Set VariableSet Temp_Integer4 = 0
-
For each (Integer A) from 1 to (Length of LevelBountyList), do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(LevelBountyList, (Integer A), (Integer A))) Equal to ,
-
Then - Actions
- Set VariableSet Temp_Integer4 = (Temp_Integer4 + 1)
- Set VariableSet Temp_Integer = (Integer A)
- Set VariableSet Temp_Integer2 = 0
-
For each (Integer B) from ((Integer A) + 1) to (Length of LevelBountyList), do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring(LevelBountyList, (Integer B), (Integer B))) Equal to ,
- Temp_Integer2 Equal to 0
-
Then - Actions
- Set VariableSet Temp_Integer2 = (Integer B)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Set VariableSet Temp_Integer3 = (Integer((Substring(LevelBountyList, (Temp_Integer + 1), (Temp_Integer2 - 1)))))
- Set VariableSet LevelBounty_Integer[Temp_Integer4] = Temp_Integer3
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- -------- Generate Descriptions --------
-
For each (Integer A) from 1 to (MaxLevel_Integer + 1), do (Actions)
-
Loop - Actions
- Custom script: set udg_Temp_String = GetObjectName(udg_Level_UnitType[GetForLoopIndexA()])
- Set VariableSet Temp_String2 = (|cffC0C0C0 (Value: |r|cffFFcc00 + (RecommendValue[(Integer A)] + |r|cffC0C0C0)|r))
- Set VariableSet LevelDescript_String[(Integer A)] = ((((((|cffC0C0C0[|r |cffFFcc00L + (String((Integer A)))) + |r |cffC0C0C0]|r) + ) + Temp_String) + s) + ((|cffC0C0C0 --- (|r + LevelATKType_String[(Integer A)]) + (|cffC0C0C0, |r + (LevelDEFType_String[(Integer A)] + (|cffC0C0C0) --- |r + ((String(LevelWaveCo
- Set VariableSet LevelDescript_String[(Integer A)] = ((((((|cffC0C0C0[|r |cffFFcc00L + (String((Integer A)))) + |r |cffC0C0C0]|r) + ) + Temp_String) + (s + Temp_String2)) + ((|cffC0C0C0 --- (|r + LevelATKType_String[(Integer A)]) + (|cffC0C0C0, |r + (LevelDEFType_String[(Integer A)] + (|cffC0C0C0) --- |r + ((S
-
Loop - Actions
I hope some one is able to help me out with this because i really tried looking well and good at triggers in which i thought maybe something is not defined yet for it but all i can find is that "Levelbountylist" that sets how much bounty you get per killed creep and nothing else i could find about it next to the max level variable and how many are being spawned that is in the same trigger and i see the "levelbountylist" is correct for the gold that gets awarded when we kill the creeps.
I have added the legion TD mega 3.41 unprotected map if any want wants to help and check it out.
Thanks in advance!
Attachments
Last edited: