- 1
- Posts
- 351
- Days
- Seen May 29, 2023
Hello, I am trying to script a loseable battle where afterwords an NPC has a different comment depending on whether or not you have won. I have been looking on the wiki and found the outcome and losebattle commands. However I am not very sure on how outcome works, it mentions needing an additional parameter that gives the number of the Game Variable to use however I am not entirely sure how to set this up. Could nayone give advice? Currently my attempt looks like this:
Script: setBattleRule("canLose")
Script: setBattleRule("Outcome", 42)
Conditional Brance: Script: TrainerBattle.start(:RIVALF, "Dawn", 1)
Script: pbTrainerEnd
Conditional Branch: Variable [0001:Temp Pokemon Choice] == 1
Text: \bDawn: Wow you're strong!
Else
Text: \bDawn: You still have some work to do.
Script: setBattleRule("canLose")
Script: setBattleRule("Outcome", 42)
Conditional Brance: Script: TrainerBattle.start(:RIVALF, "Dawn", 1)
Script: pbTrainerEnd
Conditional Branch: Variable [0001:Temp Pokemon Choice] == 1
Text: \bDawn: Wow you're strong!
Else
Text: \bDawn: You still have some work to do.