tokens get parsed for constructs

This commit is contained in:
darkfire006 2021-10-21 01:06:21 -05:00
parent 334e466bed
commit c6e43df31c
2 changed files with 5 additions and 4 deletions

View File

@ -96,8 +96,8 @@ game_interaction_gamemenu,Game Menu
game_interaction_pokegear,Pokégear
game_interaction_pausemenu,Pause Menu
game_interaction_notification,Notification
game_notification_accept,Press <button.special> to accept.
game_notification_dismiss,Press <button.special> to dismiss.
game_notification_accept,Press <system.button(special)> to accept.
game_notification_dismiss,Press <system.button(special)> to dismiss.
---
MainMenuScreen:
main_menu_continue,Continue

View File

@ -112,9 +112,10 @@
Dim result As String = resultToken.TokenContent
If Core.Player IsNot Nothing Then
result = result.Replace("<playername>", Core.Player.Name)
result = result.Replace("<player.name>", Core.Player.Name)
result = result.Replace("<rivalname>", Core.Player.RivalName)
result = result.Replace("<player.name>", Core.Player.RivalName)
If result.Contains("<") Then
result = CStr(ScriptVersion2.ScriptComparer.EvaluateConstruct(result))
End If
End If
Return result
End If