- Joined
- Jan 7, 2015
- Messages
- 34
- Reaction score
- 1
- First Language
- English
- Primarily Uses
I want to use a if then statement in the move route of an event to chance the graphic of the event and have it run once so the graphic changes when it switches to an event page and then you can trigger it with the action button. I will have many of these events all wit their own self variables from the self data script i found and all will change the graphic differently. I DO NOT WANT A TON OF PUBLIC VARIABLES for each event as they would all need one per graphic per event so like 15 x 50 variables is too much. so far i have this:
(self_metadata("CropType") == "Wheat") ? set_graphic("$Wheat", 0) : nil
I tried a bunch of different ways including...
if (self_metadata("CropType") == "Wheat") then set_graphic("$Wheat", 0) end
what to do...
(self_metadata("CropType") == "Wheat") ? set_graphic("$Wheat", 0) : nil
I tried a bunch of different ways including...
if (self_metadata("CropType") == "Wheat") then set_graphic("$Wheat", 0) end
what to do...