- 1
- Posts
- 6
- Years
- Seen Feb 5, 2019
Hello! I honestly wasn't sure if this was going under Scripting or eventing, but nevertheless:
I'm trying to force the player into a battle during an event/"cutscene", I've gotten around the part of changing the event to another, I think, which is why I'm including that one as well. Like I've said, I don't want to walk next to the npc or the exclamation mark to make the battle happen, I just want to be thrown into the battle after some dialogue.
Pretty new to essentials, but youtube and thorough google-searching hasn't helped, which is why I'm here.
Starting the event:
P1
Conditions; None
Trigger: Action Button
Battle "Start":
P1: Empty
P2:
I have not yet fixed the aftermath of the battle as I don't know if it's necessary, aswell as the last script (pbTrainerEnd) is necessary,
I'm trying to force the player into a battle during an event/"cutscene", I've gotten around the part of changing the event to another, I think, which is why I'm including that one as well. Like I've said, I don't want to walk next to the npc or the exclamation mark to make the battle happen, I just want to be thrown into the battle after some dialogue.
Pretty new to essentials, but youtube and thorough google-searching hasn't helped, which is why I'm here.
Starting the event:
P1
Conditions; None
Trigger: Action Button
Code:
>Text:
>Wait: 30 frame(s)
>Text:
>Wait: 20 frame(s)
>[COLOR="Red"]Control switches: [0061: Battle Rival 1] = ON[/COLOR]
Battle "Start":
P1: Empty
P2:
Code:
Conditions: Switch: 0061: Battle Rival 1 > is ON
Trigger: Parallel Process
>[COLOR="RoyalBlue"]Conditional Branch: Switch [0061: Battle Rival 1] == ON[/COLOR]
>[COLOR="YellowGreen"]Comment: Type: RIVAL3[/COLOR]
>[COLOR="yellowgreen"]Comment: Name: ???[/COLOR]
>[COLOR="yellowgreen"]Comment: Continue: True[/COLOR]
>[COLOR="yellowgreen"]Comment: Outcome: 26[/COLOR]
>[COLOR="Silver"]Script: pbTrainerIntro(:RIVAL3)[/COLOR]
>
Else
>
Branch End
>[COLOR="silver"]Script: pbTrainerEnd[/COLOR]
I have not yet fixed the aftermath of the battle as I don't know if it's necessary, aswell as the last script (pbTrainerEnd) is necessary,