Hello everyone. I have a bounty system, that, depending on difficulty, the reward decreases. Also, I have a code that, when input at the start of the game, increases these rewards by 13%. The following trigger is a part of the "Normal Mode" initialization. The variable used is "Bounty_Handicap", a real variable:
Am I misunderstanding something, or forgot to insert any line on it? The variable Set is an arithmetic, because players can input the code before choosing a difficulty, so, doesn't matter whose value was set first. It was supposed to add either 0.13 to the variable value, or the value defined by each difficulty.
Also, I tried to set a definitive value when choosing a difficulty, and then, liberate the code to be inserted. Also, it didn't work.
-
Normal Difficulty
-
Events
-
Unit - A unit enters Normal Mode <gen>
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Soul (Difficulty Picker)
-
-
Actions
-
Set VariableSet Secret_Code = |cffffff00-nmphcgm|r
-
Set VariableSet Secret_Code_Description = With this code, every bounty you receive is increased by 13%!
-
Set VariableSet Difficulty_Choosen = |cffffff00Normal Mode|r
-
Set VariableSet Player_Lives = (Player_Lives + 2)
-
Set VariableSet Bounty_Handicap = (Bounty_Handicap + 0.72)
-
-------- - --------
-
Unit - Kill (Triggering unit)
-
Unit - Kill Circle of Power 0112 <gen>
-
Unit - Kill Circle of Power 0109 <gen>
-
Unit - Kill Circle of Power 0040 <gen>
-
Unit - Kill Circle of Power 0030 <gen>
-
Unit - Kill Circle of Power 0019 <gen>
-
-------- - --------
-
Game - Display to (All players) the text: <Empty String>
-
Game - Display to (All players) the text: |cffffff00Normal Mo...
-
-------- - --------
-
Camera - Pan camera for Player 1 (Red) to (Center of Players Souls <gen>) over 0.00 seconds
-
-------- - --------
-
Trigger - Turn off Easy Difficulty <gen>
-
Trigger - Turn off Hard Difficulty <gen>
-
Trigger - Turn off Epic Difficulty <gen>
-
Trigger - Turn off True Difficulty <gen>
-
Trigger - Run Arena Normal Mode Tier 1 <gen> (ignoring conditions)
-
Trigger - Run Arena Normal Mode Tier 2 <gen> (ignoring conditions)
-
Trigger - Run Arena Normal Mode Tier 3 <gen> (ignoring conditions)
-
Trigger - Run Arena Normal Mode Tier Final <gen> (ignoring conditions)
-
Trigger - Turn off (This trigger)
-
-
-
Normal Mode Code
-
Events
-
Player - Player 1 (Red) types a chat message containing -nmphcgmm as An exact match
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: <Empty String>
-
Game - Display to (All players) the text: |cff00ff00Code acce...
-
Set VariableSet Bounty_Handicap = (Bounty_Handicap + 0.13)
-
-
-
Arena Normal Mode Tier 1
-
Events
-
Conditions
-
Actions
-
-------- [ HUMAN ] --------
-
-------- --------
-
Set VariableSet Arena_Wave_Description = |cff00ffffHuman Army|r: Considered the weakest army of all races, humans are very versatile. When they obtain power through other sources, their combinations can become extremely lethal.
-
Set VariableSet Arena_Wave_Features = |cff00ffffFeatures|r: |cff00ff00Light|r Buff; |cffffff00Medium|r Magic Damage; |cffff0000High|r Physical Resistance; |cffff00ffMini-stun|r
-
Set VariableSet Graveyard_Corpse = Human Soldier (Tier 1)
-
-------- --------
-
-------- Tier 1 Normal --------
-
Set VariableSet Arena_Enemy_Type[1] = Human Slave (Tier 1)
-
Set VariableSet Arena_Enemy_Type[2] = Human Soldier (Tier 1)
-
Set VariableSet Arena_Enemy_Type[3] = Dwarf Shooter (Tier 1)
-
Set VariableSet Arena_Enemy_Type[4] = Mounted Mage (Tier 1)
-
Set VariableSet Arena_Enemy_Type[5] = Human Shepherd (Tier 1)
-
-------- Tier 1 Elites --------
-
Set VariableSet Arena_Enemy_Type[6] = Human Captain - |cffffff00Elite|r (Elite - Tier 1)
-
Set VariableSet Arena_Enemy_Type[7] = Dwarf Mortar - |cffffff00Elite|r (Elite - Tier 1)
-
Set VariableSet Arena_Enemy_Type[8] = Wise Wizard - |cffffff00Elite|r (Elite - Tier 1)
-
Set VariableSet Arena_Enemy_Type[9] = Secret Cultist - |cffffff00Elite|r (Elite - Tier 1)
-
-------- Tier 1 Bosses --------
-
Set VariableSet Arena_Enemy_Type[10] = Royal Guard - |cffff0000Boss|r (Boss - Tier 1)
-
Set VariableSet Arena_Enemy_Type[11] = Pirate Captain - |cffff0000Boss|r (Boss - Tier 1)
-
Set VariableSet Arena_Enemy_Type[12] = Mounted Ghost - |cffff0000Boss|r (Boss - Tier 1)
-
Set VariableSet Arena_Enemy_Type[13] = Petrified Hero - |cffff8080Outerworld|r (Unique - Tier 1)
-
-------- --------
-
-------- WAVE 1: --------
-
Set VariableSet Arena_Current_Wave = 1
-
Set VariableSet Arena_Win_Reward = (300.00 x Bounty_Handicap)
-
Set VariableSet Bounty_Win_Reward = (Integer(Arena_Win_Reward))
-
Set VariableSet Arena_Lose_Reward = (Arena_Win_Reward / 6.00)
-
Set VariableSet Bounty_Lose_Reward = (Integer(Arena_Lose_Reward))
-
-------- Wave Variables: --------
-
Set VariableSet Arena_Enemy_Amount[1] = 100
-
Set VariableSet Music_Waves = HumanArmyTheme <gen>
-
Trigger - Run Arena Add Wave To Hashtable <gen> (ignoring conditions)
-
-
Am I misunderstanding something, or forgot to insert any line on it? The variable Set is an arithmetic, because players can input the code before choosing a difficulty, so, doesn't matter whose value was set first. It was supposed to add either 0.13 to the variable value, or the value defined by each difficulty.
Also, I tried to set a definitive value when choosing a difficulty, and then, liberate the code to be inserted. Also, it didn't work.
Last edited: