- 14
- Posts
- 308
- Days
- Seen Oct 7, 2024
So, I am attempting to do something that I'm yet to see elsewhere and I am struggling.
The Goal: Have my pokemon champion have 4 different pokemon based on the if the player has captured certain pokemon. I feel like i have the coding off a little bit and im not sure how to fix it. ill post the code i have with what each part SHOULD be doing. thank you all for any assistance!
@>Conditional Branch: Script: if $trainer.hasowned[PBSpecies::DARKCELEBI]
@>Conditional Branch: Script: if $trainer.hasowned[PBSpecies::SHADOWLUGIA]
*Note* This version of the champion doesn't have dark celebi or shadow lugia
@>Script:pbTrainerIntro(:CHAMPION)
@>Conditional Branch: Script: TrainerBattle.start(CHAMPION_Kaiser, "Kaiser", 2)
@>Script: setTempSwitchOn("A")
@>Script: get_character(1).setTempSwitchOn("A")
@>Script: pbTrainerEnd
: Branch End
@>
: Else
*Note* This version of the champion does not have dark celebi but it does have shadow lugia
@>Script:pbTrainerIntro(:CHAMPION)
@>Conditional Branch: Script: TrainerBattle.start(CHAMPION_Kaiser, "Kaiser", 1)
@>Script: setTempSwitchOn("A")
@>Script: get_character(1).setTempSwitchOn("A")
@>Script: pbTrainerEnd
: Branch End
: Branch End
: Else
@>Conditional Branch: Script: if $trainer.hasowned[PBSpecies::SHADOWLUGIA]
*Note* This version of the champion doesn't have dark celebi but it does have shadow lugia
@>Script:pbTrainerIntro(:CHAMPION)
@>Conditional Branch: Script: TrainerBattle.start(CHAMPION_Kaiser, "Kaiser", 3)
@>Script: setTempSwitchOn("A")
@>Script: get_character(1).setTempSwitchOn("A")
@>Script: pbTrainerEnd
: Branch End
: Else
*Note* This version of the champion has both dark celebi and shadow lugia
@>Script:pbTrainerIntro(:CHAMPION)
@>Conditional Branch: Script: TrainerBattle.start(CHAMPION_Kaiser, "Kaiser")
@>Script: setTempSwitchOn("A")
@>Script: get_character(1).setTempSwitchOn("A")
@>Script: pbTrainerEnd
: Branch End
: Branch End
: Branch End
The Goal: Have my pokemon champion have 4 different pokemon based on the if the player has captured certain pokemon. I feel like i have the coding off a little bit and im not sure how to fix it. ill post the code i have with what each part SHOULD be doing. thank you all for any assistance!
@>Conditional Branch: Script: if $trainer.hasowned[PBSpecies::DARKCELEBI]
@>Conditional Branch: Script: if $trainer.hasowned[PBSpecies::SHADOWLUGIA]
*Note* This version of the champion doesn't have dark celebi or shadow lugia
@>Script:pbTrainerIntro(:CHAMPION)
@>Conditional Branch: Script: TrainerBattle.start(CHAMPION_Kaiser, "Kaiser", 2)
@>Script: setTempSwitchOn("A")
@>Script: get_character(1).setTempSwitchOn("A")
@>Script: pbTrainerEnd
: Branch End
@>
: Else
*Note* This version of the champion does not have dark celebi but it does have shadow lugia
@>Script:pbTrainerIntro(:CHAMPION)
@>Conditional Branch: Script: TrainerBattle.start(CHAMPION_Kaiser, "Kaiser", 1)
@>Script: setTempSwitchOn("A")
@>Script: get_character(1).setTempSwitchOn("A")
@>Script: pbTrainerEnd
: Branch End
: Branch End
: Else
@>Conditional Branch: Script: if $trainer.hasowned[PBSpecies::SHADOWLUGIA]
*Note* This version of the champion doesn't have dark celebi but it does have shadow lugia
@>Script:pbTrainerIntro(:CHAMPION)
@>Conditional Branch: Script: TrainerBattle.start(CHAMPION_Kaiser, "Kaiser", 3)
@>Script: setTempSwitchOn("A")
@>Script: get_character(1).setTempSwitchOn("A")
@>Script: pbTrainerEnd
: Branch End
: Else
*Note* This version of the champion has both dark celebi and shadow lugia
@>Script:pbTrainerIntro(:CHAMPION)
@>Conditional Branch: Script: TrainerBattle.start(CHAMPION_Kaiser, "Kaiser")
@>Script: setTempSwitchOn("A")
@>Script: get_character(1).setTempSwitchOn("A")
@>Script: pbTrainerEnd
: Branch End
: Branch End
: Branch End