Hi,
I'm trying to implement the solution I found in this thread:
forums.rpgmakerweb.com
However my understanding of javascript isn't very strong and when OP said he added the following to the Action Speed formula Yanfly Battle System STB:
Where exactly do I make these edits? Somewhere in this section of the code was my best guess - but I really have no clue ;-;
If anyone has any ideas pls lmk!! Thankyou 🙂
I'm trying to implement the solution I found in this thread:
Script for D&D style combat initiative
Hi all, I’m looking for something pretty simple. I’m going to be using it along with some Yanfly Plugin functionality to have the battlers “roll initiative” like in D&D to set their action order at the beginning of each round in battle. I’m pretty sure I can make it happen once I have a few...
forums.rpgmakerweb.com
However my understanding of javascript isn't very strong and when OP said he added the following to the Action Speed formula Yanfly Battle System STB:
Code:
if (user === $gameParty.battleMembers()[0]) { $gameVariables.value(11); } else if (user === $gameParty.battleMembers()[1]) { $gameVariables.value(12); } else if (user === $gameParty.battleMembers()[2]) { $gameVariables.value(13); } else if (user === $gameParty.battleMembers()[3]) { $gameVariables.value(14); } else if (user === $gameParty.battleMembers()[4]) { $gameVariables.value(15); } else if (user === $gameParty.battleMembers()[5]) { $gameVariables.value(16); } else if (user === $gameTroop.members()[0]) { $gameVariables.value(19); } else if (user === $gameTroop.members()[1]) { $gameVariables.value(20); } else if (user === $gameTroop.members()[2]) { $gameVariables.value(21); } else if (user === $gameTroop.members()[3]) { $gameVariables.value(22); } else if (user === $gameTroop.members()[4]) { $gameVariables.value(23); } else if (user === $gameTroop.members()[5]) { $gameVariables.value(24); } else if (user === $gameTroop.members()[6]) { $gameVariables.value(25); } else if (user === $gameTroop.members()[7]) { $gameVariables.value(26); } else {10 + ((def-10)/2); }
Where exactly do I make these edits? Somewhere in this section of the code was my best guess - but I really have no clue ;-;
If anyone has any ideas pls lmk!! Thankyou 🙂