Zerox
Ultra Cool Member
- Reaction score
- 28
Hello everyone I've run into a snag recently. I'm trying to design a battle system for my teams project but I can't seem to be able to figure out the exact thing to do to make it work. I've wrote out an idea of how to do it but I can't seem to find everything to make it work correctly. Can anyone help me find what the actual triggers would be like? The idea is that the player comes within a range of a specific unit (which will just be locusted peasants using a grass model) that it will select a random variable interger between 1-4. 1 being the chance that the battle trigger will run and 2-4 being the chance that nothing will happen. I would really really appreciate anyone who helped me with this. And of course I would give anyone who helps rep.
Here are my written out ideas for the triggers to make this work:
Thank you for taking time to look and I hope you can help me. I would be really greatful. <3
Zerox
Here are my written out ideas for the triggers to make this work:
Code:
Name - Battle Intiate
Events - A unit comes within range X of a unit of unit type
Conditions - None
Actions - Select a random interger of variable1
Code:
Name - Integer 1
Events - Variable Interger 1 is selected
Conditions - None
Actions - Set temporary point
-Set triggering unit to variable_player
-Move variable_player to center of region battle player
-create 1 variable_monster or a random interger 1-4 at center of region battle computer
-set last created unit as variable_current_monster
Code:
Name - Integer 2-4
Events - Variable Interger 2-4 is selected
Conditions - None
Actions - Do Nothing
Code:
Name - Win Battle
Events - variable_current_monster dies
Conditions- None
Actions - Move variable player to temporary point
Code:
Name - Lose Battle
Events- variable_player dies
Conditions - None
Actions- Revive variable_player at center of region hero revive
-remove temporary point
Thank you for taking time to look and I hope you can help me. I would be really greatful. <3
Zerox