Modding => Help! => Topic started by: Genghis Hank on April 21, 2020, 09:58:13 am
Title: Branched Events - Storyline Progression
Post by: Genghis Hank on April 21, 2020, 09:58:13 am
I've come across an issue with storyline progression, which I haven't encountered previously.
I'm using the Beowulf branched event as a base. You receive a choice on whether to fight or not - Option A leaves storyline progression as it is, and Option B increases storyline progression by 1.
I'll post the events below, for reference.
Offset(x003A2000) //Remove the previous line if you wish not to override the offset in CONFIG.INI. Text(x0000052F) //Remove the previous line if you wish text to compile directly after instructions.
//Message x06 {font:08}Grizzled Old Man{br} {font:00}Heh, don't be shy. {br} I'll look after ya. {br} Listen, I'm a Nanten veteran. {br} Back in the Lion War, I used to {br} take down Hokuten pansies for sport! {end}
//Message x07 {font:08}Young Woman{br} {font:00}Wow! You did that?{end}
//Message x08 {font:08}Bar Master{br} {font:00}He's in here every night.{br} {br} It's always the same thing. Hitting {br} on a different girl... bragging about {br} how many Hokuten he killed. {end}
//Message x09 {font:08}{Ramza}{br} {font:00}What a clown. {end}
//Message x0A {font:08}Bar Master{br} {font:00}Still... best to leave him {br} to it. {br} He gets a bit aggressive after a {br} few drinks. {end}
//Message x0B {font:08}Nanten Veteran{br} {font:00}You wouldn't be talking {br} about me there... would you? {end}
//Message x0C {font:08}{Ramza}{br} {font:00}..I think you should turn {br} back around old man. {end}
//Message x0D {font:08}Nanten Veteran{br} {font:00}Ha! You have any idea who {br} you're talking to? {br} Don't fool yourself kid, I'd kick {br} your ass any day of the week, twice {br} on Sundays. {end}
//Message x0E {font:08}Bar Master{br} {font:00}Look, he's not worth it. {br} {br} He may be a braggart, but he can {br} actually fight. I don't want any {br} bloodshed. {end}
//Message x0F {font:08}{Ramza}{br} {font:00}Maybe you're right. {br} I've got better things to do. {end}
//Message x13 {font:08}Nanten Veteran{br} {font:00}What are you gonna do, {br} kid? {br} You got any balls, why don't {br} we settle this like men? {end}
//Message x14 {font:08}{Ramza}{font:00}{br} {FB} 1.Be the bigger man and walk away.{br} 2.Kick his ass.{FC}{close}{end}
//Message x15 Let's go.{end}
//Message x16
Offset(x003A4000) //Remove the previous line if you wish not to override the offset in CONFIG.INI. Text(x000000D6) //Remove the previous line if you wish text to compile directly after instructions.
//INSTRUCTION SECTION END - TEXT START //Message x01 {font:08}{Ramza}{br} {font:00}I've not got time for this {br} shit. {end}
//Message x02 {font:08}Nanten Veteran{br} {font:00}HA! What a (Edited for content)! {end}
//Message x03
Offset(x003A6000) //Remove the previous line if you wish not to override the offset in CONFIG.INI. Text(x00000083) //Remove the previous line if you wish text to compile directly after instructions.
//INSTRUCTION SECTION END - TEXT START //Message x01 {font:08}{Ramza}{br} {font:00}Step outside. {end}
//Message x02 {font:08}Nanten Veteran{br} {font:00}Heh, don't worry. You'll get {br} yours. {br} But not here, too many guards. Come {br} to the old Colliery tonight. They'll {br} be nobody to save your ass.{end}
//Message x03
Storyline progression remains at 20, no matter which option is chosen. I've tried editing the storyline progression of the event I want to trigger if the fight is chosen to 20, to see if I can get it to begin - so I know that isn't the issue.
I've also tried using other variables besides storyline progression if the fight is chosen - such as 0x00A9, and then using that to trigger the battle event, but that variable won't change either. Interestingly though, the colour of Goland City is correctly changed if you pick the fight option.
Hopefully I've explained this well. If anyone can offer any advice then I would be very grateful.
Thanks
Title: Re: Branched Events - Storyline Progression
Post by: Nyzer on April 21, 2020, 10:28:27 pm
So what happens? The same second event plays no matter which option you choose? Or does the game actually play your "let's rumble motherfucker" event and then fail?
You can always just condense all of this into one event with JumpForwardIfNot and moving the result of variable x0018 to x0001, and see if that works better.
Title: Re: Branched Events - Storyline Progression
Post by: Genghis Hank on April 23, 2020, 04:19:31 am
Thank you for the reply.
Apologies, I don't think I was clear enough with what was intended to happen. Storyline progression is 0020 prior to the event. If the fight option is selected during the event, then I wanted the storyline progression to advance to 0021, otherwise remain at 0020. I've never had issues with storyline progression before, so I wondered if it was related to it being a branched event.
Thank you for your recommendation on using JumpForwardIfNot. I'll see if this works out better for what I'm trying to do.
Title: Re: Branched Events - Storyline Progression
Post by: Nyzer on April 23, 2020, 07:33:29 am
I understand you're trying to get the variable to progress, but you do realize you need to specifically find out where it's failing first.
If your branching choice is failing to play different choice result events, then that's the problem. If it's successfully playing the event that sets the variable, but not successfully setting the variable, then there's some other problem: either the variable is not being set to 21 despite successfully processing the command to do so, or it is being set to 21, but 21 fails to activate the later battle event. This, then, can be checked by always setting the variable to 21 before the player even gets a choice, and seeing what happens next.
There are multiple possible points of failure here, and there's not a whole lot anyone can do to fix it without narrowing it down, which is why I asked about the first, most obvious point: whether the game fails to process the entire choice correctly and always plays the "no time for your bullshit" event.