Ok look....I am working on a RPG but i want the battle system to be random
More Thoroughly: Player walks around and about every 5 seconds get sent into a Battle Arena to fight, kills the enemy then gos back to the location where it was
I already set the trigger to follow the players unit wherever it gos, but the rest of it, i cant really get to work
Here are The Triggers
| Trigger |
| Description: |
| Safe Switch |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
| ¤ Always |
| Actions: |
| ¤ Set "Safe Switch - P1" |
This is the Safe switch
| Trigger |
| Description: |
| Set Random Battles |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
¤ "Safe Switch - P1" is Set
|
¤ Player 1 brings atleast 1 any unit to "Location Follow - P1"
|
| ¤ Player 1 brings atmost 0 any unit to "Battle Arena" |
| Actions: |
¤ Wait 5000 miliseconds
|
¤ Randomize " Battle Enemy Type 1"
|
| ¤ Preserve Trigger |
The switch battle enemy type 1 is called type 1 because I want to set this switch a couple times so the enemy will be different everytime they engage in a battle, so its not just, battle zerglings - win....battle zerglings - win....battle zerglings - win
| Trigger |
| Description: |
| Random Battle Start |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
¤ "Battle Enemy Type 1" is Set
|
¤ Player 1 Brings atleast 1 any unit to "Location Follow - P1"
|
| ¤ Player 1 Brings atmost 0 any unit to "Battle Arena" |
| Actions: |
¤ Clear Switch "Safe Switch - P1"
|
¤ Play WAV. - Battle Music
|
¤ Teleport all any unit owned by Player 1 at "Location Follow - P1" to "Battle Arena - Player"
|
¤ Center view at "Battle Arena Player
|
¤ Create 2 Zerglings at Battle Arena Enemy
|
¤ Create 2 Broodlings at Battle Arena Enemy
|
¤ Clear Switch "Battle Enemy Type 1"
|
| ¤ Preserve Trigger |
These are all the triggers that happen when you are suppose to have the battle
| Trigger |
| Description: |
| End Battle |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
¤ Switch"Battle Enemy Type 1" is Cleared
|
¤ Player 1 Brings atleast 1 any unit to "Battle Arena"
|
| ¤ Player 8 Brings atleast 0 any unit to "Battle Arena" |
| Actions: |
¤ modify deaths counts for Player 8 to 0 for unit "Zergling"
|
¤ modify deaths counts for Player 8 to 0 for unit "Broodling"
|
¤ Teleport all any unit owned by Player 1 at "Battle Arena" to "Location Follow - P1"
|
¤ Play WAV.- Victory
|
| ¤ Preserve Trigger |
But it doesnt work exactly right....?
I got these trigger from the example map from the site, and i just copied the triggers...so why dont they work?