Boxply
Decently Experienced Ruby Coder
- 21
- Posts
- 3
- Years
- He
- Seen Aug 27, 2021
Made a script that can be used for locally battling people that are obviously... in your house. This makes it so that, even in random battles, 2 players can play on the same computer! You can maker an entire different section of trainers to do so! You could make a local trainer, you'll have to use the same rules to set up a trainer...
1. adding it to trainertypes.txt
2. giving it it's pokemon and defining it in trainers.txt [Because the other local player, (2nd player) will be using the trainer as their trainer making it a 2 player game on 1 device!]
== If you add this to your game please credit me ==
Some video footage:
https://www.youtube.com/watch?v=H1ZHYbyFzVA
1. adding it to trainertypes.txt
2. giving it it's pokemon and defining it in trainers.txt [Because the other local player, (2nd player) will be using the trainer as their trainer making it a 2 player game on 1 device!]
== If you add this to your game please credit me ==
Spoiler:
This will only be active if you set the game switch 69 [Set the game swicth 69 for the trainer you wanna local battle with]
To do this simply find the PokeBattle_Battle script and jump to line 265. Or CTRL-F and find "def pbIsOwner?"
Then go into 'Battler_UseMove_SuccessCheck' and replace the function that is in the pastebin with the pastebin's version [Down Below]
Once you find that, select the two functions from "def pbIsOwner?" to def "pbOwnedByPlayer?" and replace them with this script!
And there you have it, Local play!
https://pastebin.com/ExrQnP4t
To do this simply find the PokeBattle_Battle script and jump to line 265. Or CTRL-F and find "def pbIsOwner?"
Then go into 'Battler_UseMove_SuccessCheck' and replace the function that is in the pastebin with the pastebin's version [Down Below]
Once you find that, select the two functions from "def pbIsOwner?" to def "pbOwnedByPlayer?" and replace them with this script!
And there you have it, Local play!
https://pastebin.com/ExrQnP4t
Some video footage:
https://www.youtube.com/watch?v=H1ZHYbyFzVA
Last edited: