trying to figure out how i would go about checking if a player leveled up or not from game event so i can setup some bools to tell makinom a player leveled up
Uhm.. You could set up an event occurring at the end of each battle, with some variables: - storedLevel is the last level checked (after a battle/ability/item usage....) - currentLevel (or directly level of the player) is the current value - if currentLevel > storedLevel set storedLevel = currentLevel and perform what you want At this point you could set up a global machinom event called only on this check. In ORK it depends on which kind of levelling system / battle you have to call the check... I think you can achieve your result working a bit on variables get/set. :)
you would still need to know when you leveled up in ork... an its easier to just set a bool like "leveledUp" to true so i can then bring up a random a menu that would give me some item selections to choose from. your way would mean needing to know the exact level. but i dont need to know the level. just need to know when i level. so i can set my bool to bring up a menu. basically a simple system if you can do a level up check. problem is the level system is internal an i dont see a node to check for this. would be different if i made the xp system my self. Which i dont wanna do since there is no reason to reinvent the wheel if the wheel still turns :P
To know when you level in up in ORK you just make a simple check after the battle, in Battle End Event, or if it is real time i suppose you should do that check on enemy death. I don't see the problem storing the variable with float instead of bool. ^^ The only issue you have to check and store the level every fight you do, and if it is turn-based it is just in end event, if it is real time you have to check it on each combatant death... Some months ago i needed a similar thing and i used float numbers, but maybe GiL has a more effective answer. :D
Currently, you'd need to do something like Kaemalux suggested (but you could also do that using a repeating autostart event on the combatant to regularly check that).
Will look into allowing to use a game event at level up.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
- storedLevel is the last level checked (after a battle/ability/item usage....)
- currentLevel (or directly level of the player) is the current value
- if currentLevel > storedLevel set storedLevel = currentLevel and perform what you want
At this point you could set up a global machinom event called only on this check.
In ORK it depends on which kind of levelling system / battle you have to call the check...
I think you can achieve your result working a bit on variables get/set. :)
My old entry for Indie Game Making Contest 2015
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
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
I don't see the problem storing the variable with float instead of bool. ^^
The only issue you have to check and store the level every fight you do, and if it is turn-based it is just in end event, if it is real time you have to check it on each combatant death...
Some months ago i needed a similar thing and i used float numbers, but maybe GiL has a more effective answer. :D
My old entry for Indie Game Making Contest 2015
Will look into allowing to use a game event at level up.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
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