Hi
i try to start another battle in same level but battle cant start.
in first time i can do it with no problem , but when i try to start another in same or other level no battle start.
in my case , i create battle object by ork scene wizard and add game starter in same scene to test.
- i try game starter in main scene but also not work !
- i try to use scene id in battle component but also not work !!
my code to start battle is :
BattleComponent battle = GameObject.Find("Arena").GetComponent(); --> Arena is a battle component
// battle.sceneID=Random.Range(1,400); --> i try to change it but also not work :(
battle.StartGroup(egroup, null); // Work in first time , but not when restart same level.
----------------------------------
i most restart the game to play same battle :( please help .
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
but not work :(
when i replay it give me tow player,insted of one and battle cant start :(
If the battle doesn't start, make sure the enemy group is of an enemy faction.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
i try new test project
- i put battle object with sample player and enemy prefab without sence ID
- i start battle automaticly.
- i put button with this script : Application.LoadLevel(0);
- in battle , when i press that button it cant play battle again.
its play again just if i escape from battle only !!
how can i start battle again every time i press that button ?
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
this is my case:
this is setting of game starter
this is my battle object setting:
this is my battle system setting :
and this is my prefab setting :
and this is the runtime ork game handler :
i think there is way to tell handler that the battle is interrupt, and i need to start again.
something like garbage collector.
sorry for heavy thread
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
- escape
- victory
- defeat or die
in my big project i must restart the ( game ) to fight again !!!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
Could try to add an "End Battle" step event somehow? I don't know if there is an ORK related issue (with custom scene loading through script), but i never had problem in restarting battles... Try to end it before scene loading and see if it replies. :)
My old entry for Indie Game Making Contest 2015
You can either do this with the event system or calling this function from your script:
ORK.Battle.EndBattle(BattleOutcome outcome);
BattleOutcome is an enum that holds the different possible outcomes of a battle (e.g. defeat, victory, etc.).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Not work brothers :(
i think it's a bug.
i can start battle , but can't play same battle again in same place .