Hello everyone,
I have two Script Call questions for how to call & affect events on a map.
First question:
I know you can access specific events on the current map using this script call:
var target = $gameMap.event(i);
But can this be streamlined if the event I am calling is the current event? For example, I want to add an icon bubble to the current event via script call (I am using the Yanfly Icon On Event plugin). If the current event is Event ID 7, this would be:
var target = $gameMap.event(7);
But I would love it if it could just be:
var target = $gameMap.event(this);
(this call doesn't work but I hope it illustrates what I mean?)
This is because I want to have a number of events all do this same thing and it would be much easier to just use a general script call on them & copy paste the event, rather than having to amend the number in the brackets for each one.
Second Question:
Is there a script call that accesses events on a different map?
For example, if I am on Map 1 but want to change something on Map 2, or I use a common event to change something on Map 2, it could look like this:
var target = $gameMap.map(2).event(5);
I have searched and searched the RPG Maker MV Script Call Excel Sheet but wasn't able to find what I need. It would be great if someone could help me out. If the answer to either question is "that is not possible" at least I can stop looking. 🙂
Thanks a lot!
Lui
I have two Script Call questions for how to call & affect events on a map.
First question:
I know you can access specific events on the current map using this script call:
var target = $gameMap.event(i);
But can this be streamlined if the event I am calling is the current event? For example, I want to add an icon bubble to the current event via script call (I am using the Yanfly Icon On Event plugin). If the current event is Event ID 7, this would be:
var target = $gameMap.event(7);
But I would love it if it could just be:
var target = $gameMap.event(this);
(this call doesn't work but I hope it illustrates what I mean?)
This is because I want to have a number of events all do this same thing and it would be much easier to just use a general script call on them & copy paste the event, rather than having to amend the number in the brackets for each one.
Second Question:
Is there a script call that accesses events on a different map?
For example, if I am on Map 1 but want to change something on Map 2, or I use a common event to change something on Map 2, it could look like this:
var target = $gameMap.map(2).event(5);
I have searched and searched the RPG Maker MV Script Call Excel Sheet but wasn't able to find what I need. It would be great if someone could help me out. If the answer to either question is "that is not possible" at least I can stop looking. 🙂
Thanks a lot!
Lui