Hi there, at first I have to say: I am very bad at scripting and doing nearly everything in my game with the standard commands. I can more or less understand the basics of a script if I see it, but have not much JS-knowledge.
What I want:
I want to display an image depending on the MapID, or to be correct: depending on a range of this ID. Sketch:
Current setup:
With the help of some others from the community I got this script.
The center part is basically:
and if the mapID is 002, it automatically shows the image file "map2.png" at the same location.
But since I changed the way the map works, I need now not an automatic 1:1 correlation, but separate defined ranges of IDs for each image (so that I can set the image file and location individually).
But I have no Idea how to do this in detail ^^ "
What I want:
I want to display an image depending on the MapID, or to be correct: depending on a range of this ID. Sketch:
Current setup:
With the help of some others from the community I got this script.
The center part is basically:
So if the mapID is 001, it automatically shows the image file "map1.png" at a specific location.
and if the mapID is 002, it automatically shows the image file "map2.png" at the same location.
But since I changed the way the map works, I need now not an automatic 1:1 correlation, but separate defined ranges of IDs for each image (so that I can set the image file and location individually).
But I have no Idea how to do this in detail ^^ "