Vetmora

Villager
Member
Joined
Aug 15, 2017
Messages
17
Reaction score
2
First Language
English
Primarily Uses
RMMV
I'm using one of Galv's plugins here: https://galvs-scripts.com/2016/08/01/mv-event-detectors/?blogsub=confirming#subscribe-blog

I'm setting up guards that chase the player and then go back to their "post" (original position) if they lose sight of the player. This plugin pretty much does what I need, but I'm wondering if there is there a way to make the guard event store its original x and y only once at the start of the game as it seems to reset when teleporting through doors. Or even if there was a way to set it somewhere manually? Perhaps in a comment?

I did ask Galv on his site, however he is very busy and can't look into it at the moment. He said to try asking here to see if someone can help me. From what I can gather when looking at the script, the very last events under //GAME EVENTS seems to be where it stores x and y? But I'm not sure as I'm a little rusty with JS.

Would appreciate any help! Thanks in advance.
 

Vetmora

Villager
Member
Joined
Aug 15, 2017
Messages
17
Reaction score
2
First Language
English
Primarily Uses
RMMV
Anyone? Would appreciate any help at all.
 

Vetmora

Villager
Member
Joined
Aug 15, 2017
Messages
17
Reaction score
2
First Language
English
Primarily Uses
RMMV
Thanks for all the help guys, much appreciated! ...
 

Unknown2001

Veteran
Veteran
Joined
Jul 28, 2019
Messages
31
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Thanks for all the help guys, much appreciated! ...

Hello I am struggling with the same Plugin, I'm starting to fear it's not working due to conflict with other plugins

this is the part I'm having trouble with
from the instruction file
----------------------------------------------------------------------------

You can use the below script call to check if an event can detect the player

at the time the conditional branch is called. (Yes this can be used in a

parallel process event if required)



Galv.DETECT.event(id,dist,los) // id = event ID that is a detector

// dist = tile distance from player

// los = true or false for line of sight



This will return true if the player is in distance range of the event and

if los is true, it will also check if player is in line of sight to it.

----------------------------------------------------------------------------

my patrolling guard's event ID is 012
so do I write: Galv.DETECT.event(012,6,true) ????????

PLEASE HELP
 

Latest Threads

Latest Profile Posts

unnamed_image.jpg
SOMEONE'S SINGLE! HE DOES LIKE ALL GENDERS! SADLY, HE HAS NO NUMBER TO NOTE OF BECAUSE HE HAS NO USE FOR A PHONE, BECUASE SUMMONING WORKS MUCH BETTER AND DOES NOT COME WITH AN ITEMISED BILL.
I just found out that MZ regional price on Steam in my place is much cheaper than MV.
Our water started to work again, now i don't have to fill up our toilet with water again.
Finally able to return to work after months of lockdown. My poor feet are hurting :( I need to get used to working again haha

Forum statistics

Threads
108,884
Messages
1,040,272
Members
141,320
Latest member
Hyo
Top