PARTY SYSTEM
Posts
Pages:
1
For the game I am working on you will be able to craft monsters and use them in battle. I am having an issue when it comes to duplicate monsters. When the player crafts a new monster it does not go to the next open party member slot but instead it just writes over the party slot that has the same exact monster. For example like the Pokemon party system and how you can have multiple of the same Pokemon. Does anyone have any recommendations on how to go about doing this?
How are you currently implementing said craft system?
You'd probably be better off doing it via script. I would write one for you but I'm a bit busy with other projects at the moment.
If you're having trouble with the event-based system figuring out the first open slot to use, try giving all of your open slots for monsters the default name "RESERVED". Then, set a variable for monster index to 1, create a loop which does a conditional branch checking if hero index in that variable has the name "RESERVED", if so run your code for creating the monster, and if not increment the variable by 1. Make sure you have a branch at the end for the variable's value exceeding the number of open slots in case you don't have any left.
If you're having trouble with the event-based system figuring out the first open slot to use, try giving all of your open slots for monsters the default name "RESERVED". Then, set a variable for monster index to 1, create a loop which does a conditional branch checking if hero index in that variable has the name "RESERVED", if so run your code for creating the monster, and if not increment the variable by 1. Make sure you have a branch at the end for the variable's value exceeding the number of open slots in case you don't have any left.
Pages:
1














