I'll start with explanation.
I have a 'Player sprite', few 'Detector sprites' and 'Text object'.
There are two global variables "Language", "Player_Action"
Each 'detector sprites' have two variables "ActionENG" and "ActionPL" - for different language setup.
ie. for one sprite i have - > ActionENG = window, ActionPL = okno
It basicaly sets the text object to display the name of currently overlapped instance of 'detector sprite' by 'player sprite', depending of global variable "Language"
If Languege = ENG it will show text from "ActionENG" and opposite
if Language = PL - display text from "ActionPL" variable from sprite.
[code]+Every thick -> set text to "Player_Action"
+If player overlapps detector sprite
++If "Language" = ENG -> set "Player_Action" to detector sprite "ActionENG"
++If "Language" = PL -> set "Player_Action" to detector sprite "ActionPL"[/code]
My question is: how can i compare actions if player is overlapping an object with current language selected?
The easy way would be:
If "Player_Action" = window -> do some stuff
If "Player_Action" = okno -> do same stuff
I don't want to go that way cause I have many object with many events and subevents. Choosing that method will make me do everything twice.
The best solution would be to compare values in one event, something like:
[code]If "Player_Action" = 'window' or 'okno' - > do some stuff[/code]
but there is no "OR" yet I'm looking for a workaround but after a day i have nothing :/
Any suggestions, please? :)