So, I've checked the collection for these script calls I want but either haven't found anything for them, or need further guidance on. I've tried google-fu-ing my way through, but I'm not really sure where else to turn. I'm pretty scripting illiterate, but I'm still trying! I apologize in advance if someone else has asked this and I'm just a total air head and missed it completely. Anywho...
1: Checking party for a state.
One of the enemies you face has a skill that takes advantage of a state for added effect. I have a few skills setup to deal bonus damage when a certain state is applied, and receives a damage penalty when the state is not applied. This is more for the player, so they can make mistakes with the skill, and find out how it works. Some enemies also have this skill. Since the enemies should be familiar with their own capabilities, I don't want them using the skill unless said state has been applied to a party member, and having a very high chance of using it when someone IS afflicted with the state. Now, I could just brute force my way through troop conditions with conditional branches. If switch: Skill On is on, then the skill may be used at a high chance, then have it check at the end of every turn if actor 1 has state, if yes, switch: skill on, else, if actor two has state, switch, skill on, else, if actor 3 has state, and so on and so forth... ... The problem is, my game has 30 character (slots). I don't want to have to brute force it through THAT MANY conditional branches.
So, my question is, could I use a simple script call to obtain the same thing? If I did contitional branch > script, could I do a call of something like, "Party.state?(52)? s[16] == 1 : s[16] == 0"? Or a variable instead of a switch? Seems like it'd be much easier. (Also I'm using one of Yanfly's script to bump my party size to five, up from four.)
2. Custom Encounter system -- Using scripting to test for movement.
Something a friend and I talked about was dynamic difficulty systems. We tossed around some ideas regarding enemies using certain attacks when the party's overall health is at a certain level, vs full health. We also discussed encounter formations being based off of the party status at the end of a previous encounter. The more beat up a player is at the end, the easier their next encounter will be. This way, skilled players are always offered a challenge, while players who are struggling will be given a bit easier time progressing. However, in order to even start approaching this, I need to figure out how to make a custom encounter system!
Initially what I was thinking, was to have the game check for player movement, and to subtract from a variable every step of the way. This kind of worked, using conditional branches, but the variable decreased too quickly. I added a "wait" to it to decrease the variable by 1 every 15/8 frames depending on if shift was held or not. This worked! ... But it also decreased the variable if the player was "moving" into a wall. I saw all of the movement commands in the script call collection... But I'm not really sure what to do with them! I assume it'd be easiest to make an event, put it on parallell process, and just have a script running to check for movement vs. standing still, and subtract from the variable accordingly.
3. Enemy attack conditions based off of current party status.
As I previously mentioned, my friend and I discussed dynamic difficulty systems, enemies using certain attacks depending on the party's overall health. Would there be any way to do this? What I initially thought was to make a script call to check for each party members current HP and set it to a value A. Continue to script call to gather the total HP of each party member and store it in another value B. Divide value A by value B, multiply by 100, voila, overall health percentage, store to value (or, value A x100, divide by value B, whichever). Depending on the variable and the percentage, a switch could be set -- Current HP value = 75-100 = switch Good Health, 50-75 = Switch OK health, etc. Depending which switch is active, I can change skill weight accordingly. Anyways, you get the idea.
Anywho, any good way to go about this? I guess I could just use a condition on the troops page to check at the end of every turn for a script call...
So yes! Those are my questions! I apologize for the giant wall of text, and I hope my questions were clear enough. I appreciate any guidance anyone can give me, and again I apologize if I just blatently missed similar posts! I swear I looked through pages for this stuff
1: Checking party for a state.
One of the enemies you face has a skill that takes advantage of a state for added effect. I have a few skills setup to deal bonus damage when a certain state is applied, and receives a damage penalty when the state is not applied. This is more for the player, so they can make mistakes with the skill, and find out how it works. Some enemies also have this skill. Since the enemies should be familiar with their own capabilities, I don't want them using the skill unless said state has been applied to a party member, and having a very high chance of using it when someone IS afflicted with the state. Now, I could just brute force my way through troop conditions with conditional branches. If switch: Skill On is on, then the skill may be used at a high chance, then have it check at the end of every turn if actor 1 has state, if yes, switch: skill on, else, if actor two has state, switch, skill on, else, if actor 3 has state, and so on and so forth... ... The problem is, my game has 30 character (slots). I don't want to have to brute force it through THAT MANY conditional branches.
So, my question is, could I use a simple script call to obtain the same thing? If I did contitional branch > script, could I do a call of something like, "Party.state?(52)? s[16] == 1 : s[16] == 0"? Or a variable instead of a switch? Seems like it'd be much easier. (Also I'm using one of Yanfly's script to bump my party size to five, up from four.)
2. Custom Encounter system -- Using scripting to test for movement.
Something a friend and I talked about was dynamic difficulty systems. We tossed around some ideas regarding enemies using certain attacks when the party's overall health is at a certain level, vs full health. We also discussed encounter formations being based off of the party status at the end of a previous encounter. The more beat up a player is at the end, the easier their next encounter will be. This way, skilled players are always offered a challenge, while players who are struggling will be given a bit easier time progressing. However, in order to even start approaching this, I need to figure out how to make a custom encounter system!
Initially what I was thinking, was to have the game check for player movement, and to subtract from a variable every step of the way. This kind of worked, using conditional branches, but the variable decreased too quickly. I added a "wait" to it to decrease the variable by 1 every 15/8 frames depending on if shift was held or not. This worked! ... But it also decreased the variable if the player was "moving" into a wall. I saw all of the movement commands in the script call collection... But I'm not really sure what to do with them! I assume it'd be easiest to make an event, put it on parallell process, and just have a script running to check for movement vs. standing still, and subtract from the variable accordingly.
3. Enemy attack conditions based off of current party status.
As I previously mentioned, my friend and I discussed dynamic difficulty systems, enemies using certain attacks depending on the party's overall health. Would there be any way to do this? What I initially thought was to make a script call to check for each party members current HP and set it to a value A. Continue to script call to gather the total HP of each party member and store it in another value B. Divide value A by value B, multiply by 100, voila, overall health percentage, store to value (or, value A x100, divide by value B, whichever). Depending on the variable and the percentage, a switch could be set -- Current HP value = 75-100 = switch Good Health, 50-75 = Switch OK health, etc. Depending which switch is active, I can change skill weight accordingly. Anyways, you get the idea.
Anywho, any good way to go about this? I guess I could just use a condition on the troops page to check at the end of every turn for a script call...
So yes! Those are my questions! I apologize for the giant wall of text, and I hope my questions were clear enough. I appreciate any guidance anyone can give me, and again I apologize if I just blatently missed similar posts! I swear I looked through pages for this stuff
