you place that call inside the event?
and how will it work exacly?
does a text message popup? can regions be used? or any light change if its in range?
the description is kinda vague though.
provide a bit more information what stuff you do and what can trigger.
All it does is return true if the player is within the given range of the given event. So you can call it as a script in the condition of a conditional branch of an event (as seen in the description). If the player is within the given range, anything can happen that you can put in that conditional branch. It's just a test.
I've just made the obvious addition that it can make the test for any event, not just the player. It's trivial stuff, just a few lines of code, but I needed it and thought it might be of use to someone.
that makes sense, now I understand more how yo ucan use this.
ideally for ghost running away or going to you 🙂
I see if I can make something with regions when it is in range, because I can base my HUD
on that for chest related stuff and other things.
ty for the explaination.
do you have this tiny demo project so I can take a look at teh demo itself.
will check tomorrow or a bit later today quickly, so I have direct acces and play around with it.
thank you for the demo, can help me easier when needed ^^
If I find something liek a bug or glitch, I report back.
Cool! Btw, to test if height is really involved in the line-of-sight calculation, one can just increase the height of the characters in the parameter settings, and see what happens. 😛
I play a bit around (mostly watching the event, I dont understand the 0, 13, -1)
but I need to dive a bit deeper and helpfile (write some notes on how those works.
0 is probably event 1, 13 event 2, -1 the player probably.
I also see you use terrax lighting (I use khas, but going to Ocram_Lights so I hope those
will effect as well as for terrax lightning plugin.
I can find some ways to get it done, but you have 1 if you can get it (impossible), you need
to create a map where it wold be REALLY impossible, so you cant drive it into a corner to
catch the ghost.
I got tomorow more time ,and will play around (maybe add khas lightning plugin or
ocram_Lights to see if the effect stays the same.
you did a really nice job making plugin to open more possibilities and more dynamic
caught by knight, or when seen, more guards are coming to capture you ^^
thank for the demo 🙂 you might post on the 1st post though, so others can download
it to learn from it how its setted up 🙂
EDIT:
when playing around on the tiny demo, you can corner the ghose between camp fire light and
lantern light 😛 but you cant win the battle when into it. but it is funny though.
is the scriptcall MOVE TO: PLAYER something inbuilt or from your script?
also the moveroute to 3.1, wait 30, move route 3.6 , you could do that in 1 moveroute though.
but there are other spots like the sign, 1 event instead of 2.
anyway, I can figure out guard a bit, but I cant understand the lantern yet.
will figure out later on.
all events are below character by default, unless right click -> door, chest etc which become
same as character if not mistaken.
you always should check it. but sometimes its easier for 1 events, sometimes it works for both,
action button and click, sometimes for a specific reason (like a failsafe) just to make sure
it does work 100% at the time.
everyone has its reason, sometimes its a very different reason, like when on top and you click
it, a variable or switch is triggered, or to call something like that.
noone knows the exact reason, except for the dev that created the game 🙂
Great plugin, exactly what I was looking for. Simple to use as well!
Im trying to make a detection mechanic that does a check if your within X distance of event. However I noticed the event will constantly be redoing the check if your within the distance independent of movement.
So if a guard is looking over a cliff if you sneak up a few tiles away and stand there, the event will keep checking over and over instantly.
I was wondering if there was a way to check distance only when you move?
BTW: Im using this.eventInRange(EVENT1, EVENT2, RANGE)