region and regionalform envir constructs

This commit is contained in:
darkfire006 2022-07-05 23:45:03 -05:00
parent 56dff589e6
commit a8920ab6fb
1 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,16 @@
Return ReturnBoolean(Screen.Level.WildPokemonFloor)
Case "isdark"
Return ReturnBoolean(Screen.Level.IsDark)
Case "region"
If argument <> "" Then
Return Screen.Level.CurrentRegion.Split(CChar(","))(int(argument))
End If
Return Screen.Level.CurrentRegion
Case "regionalform"
If argument <> "" Then
Return Screen.Level.RegionalForm.Split(CChar(","))(int(argument))
End If
Return Screen.Level.RegionalForm
End Select
Return DEFAULTNULL