Skip to content

Conversation

FosterProgramming
Copy link
Collaborator

New script commant to trigger EVO_SCRIPT_TRIGGER evolutions

Description

Added a new script command that properly handles EVO_SCRIPT_TRIGGER and sets VAR_RESULT according to the result
Waiting for discord discussion to see if we want to keep it as a new command or replace tryspecialevo which is likely not working as intended at the moment

Media

Script used in the video to showcase the different "branches":

OldaleTown_EventScript_Girl::
	//msgbox OldaleTown_Text_SavingMyProgress, MSGBOX_NPC
	lockall
	triggerevolution SPECIES_YAMASK_GALAR
	goto_if_gt VAR_RESULT, 0, YamaskGalarInParty
	msgbox YamaskGalarNotInParty, MSGBOX_NPC
	goto TriggerEvoEnd
YamaskGalarInParty:
	goto_if_gt VAR_RESULT, 1, YamaskGalarDamaged
	msgbox ConditionsUnmet, MSGBOX_NPC
	goto TriggerEvoEnd
YamaskGalarDamaged:
	goto_if_eq VAR_RESULT, 3, YamaskGalarEvolved
	msgbox EvolutionCancelled, MSGBOX_NPC
	goto TriggerEvoEnd
YamaskGalarEvolved:
	msgbox EvolutionSuccesful, MSGBOX_NPC
TriggerEvoEnd:
	releaseall
	end

YamaskGalarNotInParty:
	.string "Yamask Galar is not in party$"

ConditionsUnmet:
	.string "Does not meet evo conditions$"

EvolutionCancelled:
	.string "Yamask Galar did not evolve$"
	
EvolutionSuccesful:
	.string "Yamask Galar evolved$"
evo_script.mp4

Issue(s) that this PR fixes

Fixes #7546

Discord contact info

https://discord.com/channels/419213663107416084/1406308437054193724
Jamie (foster_harmony)

@AlexOn1ine AlexOn1ine added bugfix Bugfixes General Doesn't fit under other labels labels Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bugfixes General Doesn't fit under other labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants