Hi everyone, I need a bit of help with something...
So I have a parallel event running in the background that checks the location of the player every 6 frames to see if they're in a region with an id of 5, and if they are then stuff happens. It works fine, and uses this script snippet in the IF conditional inside the editor:
$gameMap.regionId($gamePlayer.x,$gamePlayer.y) == 5
But what I really need is to do the same thing for all the followers in the party, separately, and I can't get that to work! I don't know JavaScript, I just got the snippet above from Googling, and it's working OK if the party is treated as one big unit, but what I need is for them to be checked individually.
So ideally I want something like this:
If party leader (slot #1, regardless of actor ID) is in a certain region, then do something.
If party follower (in slot #2, regardless of actor ID) is in a certain region, then do something else.
If party follower (in slot #3, regardless of actor ID) is in a certain region, then do something entirely else.
If party follower (in slot #4, regardless of actor ID) is in a certain region, then do something totally different.
Basically I need the script to check the current position of each party member individually, so I can do stuff to them based on where they are. Because using "$gamePlayer" like in the snippet above is tagging the entire party at the same time. Like if the party leader is standing on a lava tile, but maybe someone behind him is on an ice tile, and I have no way of checking this separately, but I need to, because lava tiles and ice tiles give different debuffs. Or if I want the entire party to go invisible if any one of them walks across a 'ghost tile', not just the party leader...
Thanks for reading! Any help would be much appreciated! 🙂
So I have a parallel event running in the background that checks the location of the player every 6 frames to see if they're in a region with an id of 5, and if they are then stuff happens. It works fine, and uses this script snippet in the IF conditional inside the editor:
$gameMap.regionId($gamePlayer.x,$gamePlayer.y) == 5
But what I really need is to do the same thing for all the followers in the party, separately, and I can't get that to work! I don't know JavaScript, I just got the snippet above from Googling, and it's working OK if the party is treated as one big unit, but what I need is for them to be checked individually.
So ideally I want something like this:
If party leader (slot #1, regardless of actor ID) is in a certain region, then do something.
If party follower (in slot #2, regardless of actor ID) is in a certain region, then do something else.
If party follower (in slot #3, regardless of actor ID) is in a certain region, then do something entirely else.
If party follower (in slot #4, regardless of actor ID) is in a certain region, then do something totally different.
Basically I need the script to check the current position of each party member individually, so I can do stuff to them based on where they are. Because using "$gamePlayer" like in the snippet above is tagging the entire party at the same time. Like if the party leader is standing on a lava tile, but maybe someone behind him is on an ice tile, and I have no way of checking this separately, but I need to, because lava tiles and ice tiles give different debuffs. Or if I want the entire party to go invisible if any one of them walks across a 'ghost tile', not just the party leader...
Thanks for reading! Any help would be much appreciated! 🙂
Unrelated to the post above, can someone tell me how I can change my avatar picture here on the forum? I registered recently, and I can't seem to find that option anywhere.