I want something like this:
find_nearest_event(notetag, range, varID)
set the nearest event_ID that matched within range
set -1 to varID if no events matched within range
example:
if an event has notetag : <fire>, its event ID is 20, right near the player
then:
find_nearest_event('<fire>', 10, 15) will set 20 to variable#15
thanks!!
find_nearest_event(notetag, range, varID)
set the nearest event_ID that matched within range
set -1 to varID if no events matched within range
example:
if an event has notetag : <fire>, its event ID is 20, right near the player
then:
find_nearest_event('<fire>', 10, 15) will set 20 to variable#15
thanks!!