• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

undefined reference to 'x' (A trigger script that is defined)

  • 24
    Posts
    4
    Years
    • Seen Aug 30, 2021
    So I've got a trigger script that tells the player through message box to basically turn around and talk to someone else to find out what to do next
    I've got the script defined; I'm using two colons as well
    [PokeCommunity.com] undefined reference to 'x' (A trigger script that is defined)

    Why is it giving me this error?

    Code:
    TriggerScript_RumbleForest_SeeRocks::
    	goto_if_set FLAG_RF_SAW_ROCKS, EventScript_RumbleForest_Cancel_TriggerScript
    	lockall
    	setflag FLAG_RF_SAW_ROCKS
    	msgbox TextScript_RF_SeeRocks, MSGBOX_DEFAULT
    	releaseall
    	end
    	
    TextScript_RF_SeeRocks:
    	.string "{PLAYER}: Hmm... Looks like some\n"
    	.string "rocks are blocking the way into the\l"
    	.string "cave.\p"
    	.string "I need something to clear the way.\n"
    	.string "I better give Mr. Thor an update.\p"
    	.string "Maybe he has a tool that can help.$"

    This is the script as it's defined
     
    Yes, I've also got two other triggers in the map that behave well, also

    Okay, I found my issue. I wrote a string in another map and forgot to close it with an end quote mark. ¯\_(ツ)_/¯
     
    Last edited by a moderator:
    Back
    Top