• ✨ 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

Is There Another Way To Make Money?

Status
Not open for further replies.

DracoHouston

Kolben Developer
Contributor
So every trainer has to be added to the list individually? Not too big a problem. What about gym leaders though, would replaying those battles the same way mess up anything like story progression?
its possible you might bug something out, so test it and see if it does anything undesirable

put a warp block to falkner or bugsy near the closest pc to your character, then you try running the script to reset trainers, warp to the gym leader and see what happens. you wont have to save that way
 

DevoidLight

Gym Leader
Alright, so I used DracoHouston's code, and just added in all the trainers on the routes and Union Cave. I forget Sprout Tower, and I'm not game to touch the leaders just yet.
My computer.dat, in case anyone would like to help test it.
Code:
@Text:Booting up the PC...*Choose a host to~connect to.
@Options:Bills PC,<playername>s PC,Hall of Fame,Reset Trainers,Log off
:when:Bills PC
@Text:Pokemon storage~system accessed.
@Action:StorageSystem
:when:Reset Trainers
@Text:You check your emails*Everyone wants a rematch!
@Unregister:trainer_30001
@Unregister:trainer_30002
@Unregister:trainer_30003
@Unregister:trainer_31001
@Unregister:trainer_route32\32001
@Unregister:trainer_route32\32002
@Unregister:trainer_route32\32003
@Unregister:trainer_route32\32004
@Unregister:trainer_route32\32005
@Unregister:trainer_route32\32006
@Unregister:trainer_route32\32007
@Unregister:trainer_route32\32008
@Unregister:trainer_route33\33001
@Unregister:trainer_unioncave\001
@Unregister:trainer_unioncave\002
@Unregister:trainer_unioncave\003
@Unregister:trainer_unioncave\004
@Unregister:trainer_unioncave\005
:when:Log off
@Text:Kolben OS~shutting down...
:end
:endwhen
:end
So far everyone on route 30 and 31 seems to be working fine. My Ghastly is enjoying the fresh meat.

Route 32 onwards flags trainers slightly different, but after a little poking it looks like Route 32 and Union cave work fine as well. Now to figure out a more immersive and less overpowered way to implement it.
 

Davey

Champion
I wanted a more controlled version, as I said. For some reason, my version isn't working as expected.

Code:
@Text:Booting up the PC...*Choose a host to~connect to.
@Options:Bills PC,<playername>s PC,Hall of Fame,Trainer Reset,Log off
:when:Bills PC
@Text:Pokemon storage~system accessed.
@Action:StorageSystem
:when:Trainer Reset
@Options:Trainers,Gyms,Rival,All
:when:Trainers
@Unregister:trainer_30001
@Unregister:trainer_30002
@Unregister:trainer_30003
@Unregister:trainer_31001
@Unregister:trainer_sprout001
@Unregister:trainer_sprout002
@Unregister:trainer_sprout003
@Unregister:trainer_sprout004
@Unregister:trainer_sprout005
@Unregister:trainer_sprout006
@Unregister:trainer_sproutelder
@Unregister:trainer_route32\32001
@Unregister:trainer_route32\32002
@Unregister:trainer_route32\32003
@Unregister:trainer_route32\32004
@Unregister:trainer_route32\32005
@Unregister:trainer_route32\32007
@Unregister:trainer_route32\32006
@Unregister:trainer_route32\32008
@Unregister:trainer_unioncave\001
@Unregister:trainer_unioncave\002
@Unregister:trainer_unioncave\003
@Unregister:trainer_unioncave\004
@Unregister:trainer_unioncave\005
@Unregister:trainer_route33\33001
@Unregister:trainer_slowpokewell\001
@Unregister:trainer_slowpokewell\002
@Unregister:trainer_slowpokewell\003
@Unregister:trainer_slowpokewell\Proton
@Unregister:rocket_defeat_slowpokewell
:when:Gyms
@Unregister:trainer_violetgym001
@Unregister:trainer_violetgym002
@Unregister:trainer_violetgymleader
@Unregister:trainer_azalea_gym\001
@Unregister:trainer_azalea_gym\002
@Unregister:trainer_azalea_gym\003
@Unregister:trainer_azalea_gym\004
@Unregister:trainer_azalea_gym\005
@Unregister:trainer_azalea_gym\leader
:when:Rival
@Unregister:trainer_rival_0_water
@Unregister:trainer_rival_0_fire
@Unregister:trainer_rival_0_grass
@Unregister:rival_encounter_azalea
@Unregister:trainer_rival\rival_1_water
@Unregister:trainer_rival\rival_1_fire
@Unregister:trainer_rival\rival_1_grass
:when:All
@Unregister:trainer_30001
@Unregister:trainer_30002
@Unregister:trainer_30003
@Unregister:trainer_31001
@Unregister:trainer_sprout001
@Unregister:trainer_sprout002
@Unregister:trainer_sprout003
@Unregister:trainer_sprout004
@Unregister:trainer_sprout005
@Unregister:trainer_sprout006
@Unregister:trainer_sproutelder
@Unregister:trainer_route32\32001
@Unregister:trainer_route32\32002
@Unregister:trainer_route32\32003
@Unregister:trainer_route32\32004
@Unregister:trainer_route32\32005
@Unregister:trainer_route32\32007
@Unregister:trainer_route32\32006
@Unregister:trainer_route32\32008
@Unregister:trainer_unioncave\001
@Unregister:trainer_unioncave\002
@Unregister:trainer_unioncave\003
@Unregister:trainer_unioncave\004
@Unregister:trainer_unioncave\005
@Unregister:trainer_route33\33001
@Unregister:trainer_slowpokewell\001
@Unregister:trainer_slowpokewell\002
@Unregister:trainer_slowpokewell\003
@Unregister:trainer_slowpokewell\Proton
@Unregister:rocket_defeat_slowpokewell
@Unregister:trainer_violetgym001
@Unregister:trainer_violetgym002
@Unregister:trainer_violetgymleader
@Unregister:trainer_azalea_gym\001
@Unregister:trainer_azalea_gym\002
@Unregister:trainer_azalea_gym\003
@Unregister:trainer_azalea_gym\004
@Unregister:trainer_azalea_gym\005
@Unregister:trainer_azalea_gym\leader
@Unregister:trainer_rival_0_water
@Unregister:trainer_rival_0_fire
@Unregister:trainer_rival_0_grass
@Unregister:rival_encounter_azalea
@Unregister:trainer_rival\rival_1_water
@Unregister:trainer_rival\rival_1_fire
@Unregister:trainer_rival\rival_1_grass
@Text:Trainers battles reset!
:when:Log off
@Text:Kolben OS~shutting down...
:end
:endwhen
:end
 

Davey

Champion
Just can't figure it out, I've played around with many variations but it doesn't work at all. If there was a way I could learn the language, read about the syntax of it somewhere online, then I'd be able to figure it out.
 

DevoidLight

Gym Leader
Just can't figure it out, I've played around with many variations but it doesn't work at all. If there was a way I could learn the language, read about the syntax of it somewhere online, then I'd be able to figure it out.
I reckon you figured most of it out already. All you really need to learn is how to stack @Options within each other. After that one little change your script should work beautifully.
 

DracoHouston

Kolben Developer
Contributor
Just can't figure it out, I've played around with many variations but it doesn't work at all. If there was a way I could learn the language, read about the syntax of it somewhere online, then I'd be able to figure it out.
I reckon you figured most of it out already. All you really need to learn is how to stack @Options within each other. After that one little change your script should work beautifully.
i made it almost work with if registers to execute the next options after the current one executes but its just not very easy to do. dont nest stuff like that
 

Davey

Champion
Yeah I didn't know that for sure so I just made it so that there isn't an options dialog for it. As for resetting team rocket and the rival, that I couldn't figure out. Looks like you'll have to use a command to add the NPCs again. I'd need a tutorial on the scripting language and the commands it has available to know what to do.
 

Davey

Champion
So, the computer.dat file pre-0.22.1 looked like this:
Code:
@Text:Booting up the PC...*Choose a host to~connect to.
@Options:Bills PC,<playername>s PC,Hall of Fame,Trainer Reset,Log off
:when:Bills PC
@Text:Pokemon storage~system accessed.
@Action:StorageSystem
:when:Trainer Reset
@Text:All battles reset!
@Unregister:trainer_30001
@Unregister:trainer_30002
@Unregister:trainer_30003
@Unregister:trainer_31001
@Unregister:trainer_sprout001
@Unregister:trainer_sprout002
@Unregister:trainer_sprout003
@Unregister:trainer_sprout004
@Unregister:trainer_sprout005
@Unregister:trainer_sprout006
@Unregister:trainer_sproutelder
@Unregister:trainer_route32\32001
@Unregister:trainer_route32\32002
@Unregister:trainer_route32\32003
@Unregister:trainer_route32\32004
@Unregister:trainer_route32\32005
@Unregister:trainer_route32\32006
@Unregister:trainer_route32\32007
@Unregister:trainer_route32\32008
@Unregister:trainer_route33\33001
@Unregister:trainer_unioncave\001
@Unregister:trainer_unioncave\002
@Unregister:trainer_unioncave\003
@Unregister:trainer_unioncave\004
@Unregister:trainer_unioncave\005
@Unregister:trainer_route33\33001
@Unregister:trainer_violetgym001
@Unregister:trainer_violetgym002
@Unregister:trainer_violetgymleader
@Unregister:trainer_azalea_gym\001
@Unregister:trainer_azalea_gym\003
@Unregister:trainer_azalea_gym\004
@Unregister:trainer_azalea_gym\005
@Unregister:trainer_azalea_gym\leader
:when:Log off
@Text:Kolben OS~shutting down...
:end
:endwhen
:end
 

DracoHouston

Kolben Developer
Contributor
Yeah I didn't know that for sure so I just made it so that there isn't an options dialog for it. As for resetting team rocket and the rival, that I couldn't figure out. Looks like you'll have to use a command to add the NPCs again. I'd need a tutorial on the scripting language and the commands it has available to know what to do.
just make it "reset rival" "reset trainers" "reset gym leaders" etc options, you just cant nest them.
 

Davey

Champion
No, I mean you can't seem to do Rival anyway. Well, I tried to get the Azalea town encounter going but it didn't work. I wonder if Rival is set up differently to normal trainers scripts.
 

DracoHouston

Kolben Developer
Contributor
No, I mean you can't seem to do Rival anyway. Well, I tried to get the Azalea town encounter going but it didn't work. I wonder if Rival is set up differently to normal trainers scripts.
he is, he's triggered by a script block.

trainers are just script commands, any script can trigger a trainer fight with
@Trainer:trainer file in script/trainer without the file extension

rival is set up to happen only when you're heading back from getting the egg, so you have to reset the flags for that
 
Status
Not open for further replies.
Top