• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

How to make Custom Scripts and Help on Mod Making

Status
Not open for further replies.

BraviaryKnight

Fisherman
I'm trying to add some trainers to the game.
Set them up on Route 33, 4 people with levels 10-14. Completely optional.
Got all their Pokemon right, the trainer scripts and everything.

Now heres the problem:
I want to make it, so when you beat all 4 of them, they leave and go to another place with better Pokemon. How on earth do I do that?

Extra notes:
I don't need help on TRAINER scripts, I already mastered that one.
If you are going to use this place as a tutorial, then thank you!
 

Darkfire

Administrator
Administrator
P3D Developer
you would put it in the last triners .dat file or create a seperate script
also to get it to work you will need to have the current npcs warp out of sight(underground) and npcs that were already underground in the new map warp into position
look into the original scripts for the first rival encounter for more details
 

Splint

Champion
When trainers are defeated they automatically get registered and stored in the register.dat file located inside the players save folder.

If the trainers are scattered across the place u would need to have it check after every trainer battle.

Inside each of the trainers .dat file u would have to add something like this if u want to check if all 4 trainers are defeated.

Trainer 1 example:
Code:
@Trainer:route 33\trainer1
:if:register(trainer1)
:then
:if:register(trainer2)
:then
:if:register(trainer3)
:then
:if:register(trainer4)
:then
Insert code to run after the battle , move current trainer off screen / warp trainers / remove npc etc
:endif
:endif
:endif
:endif
:end
 

DracoHouston

Kolben Developer
Contributor
lol technical support in the modding forum and modding questions in the technical support forum
 

Arathock

Starting Trainer
I wouldn't have thought to put them underground, then again I don't think destruct is a feature in this language...
 

DracoHouston

Kolben Developer
Contributor
I wouldn't have thought to put them underground, then again I don't think destruct is a feature in this language...
you can remove an npc but you can't add one, so if you need to reset the encounter you probably want to move them underground. i think you can reverse a npc removal but only after you reload the map
 
Status
Not open for further replies.
Top