Resource icon

Resource NPC Battles (NPC vs. NPC) 1.01

Hollow_Ego

Trainer
Member
Posts
76
#1
Hollow_Ego submitted a new resource:

NPC Battles (NPC vs. NPC) - Set up battles between 2 NPCs that th player can watch

NPC BATTLE SCRIPT

This script allows you to let two NPCs battle each other in an actual battle enviroment, so that the player can watch it. The outcome can not be modified.

Features:
- let any two NPCs battle that are defined in the trainer pbs
- allows double battles
- player can control the NPCs action if wanted
- doesn't level NPCs Pokemon
- doesn't effect players money
- by default each battle can be lost, so the player won't black out
- the party that is...
Read more about this resource...
 

ArchyArc

Lead Developer of Pokemon Sacred Johto
Member
Posts
16
#3
Super interesting script, something i thought would be cool ages ago, glad to see someone technical did it!

works mostly okay, in a single 1v1 battle however i get like the trainers VS animation with the BW protagonists with the weird long message (can provide a screenshot) but not in double battles (might be the existing trainer classes)

and also crashes after ending. (calls to pbafterbattle, changed to to pbendbattle as of v16 but still the same thing)

any reason this might be? sorry to post here about it might just be a me thing

Edit: managed to fix it; changing it to "Events.onEndBattle.trigger(nil,decision,canlose)" seemed to work for me, since others havent complained im sure it works fine in 17 just was a backstep/downgrade thing
 
Last edited:

Hollow_Ego

Trainer
Member
Posts
76
#4
Super interesting script, something i thought would be cool ages ago, glad to see someone technical did it!

works mostly okay, in a single 1v1 battle however i get like the trainers VS animation with the BW protagonists with the weird long message (can provide a screenshot) but not in double battles (might be the existing trainer classes)

and also crashes after ending. (calls to pbafterbattle, changed to to pbendbattle as of v16 but still the same thing)

any reason this might be? sorry to post here about it might just be a me thing

Edit: managed to fix it; changing it to "Events.onEndBattle.trigger(nil,decision,canlose)" seemed to work for me, since others havent complained im sure it works fine in 17 just was a backstep/downgrade thing

Thank you for your feedback!

I'm glad you were able to fix the issue and appreciate that you posted the solutio.
 

ArchyArc

Lead Developer of Pokemon Sacred Johto
Member
Posts
16
#5
So small issue, again might be a downgrade thing, when the npc on the players side loses there is no end speech (understandable) and the match ends almost abruptly and the pokemon icon bars remain (could be a thing to ebs too however) could easily fix this by swapping them around but felt i'd point it out.
 
Top