@Hudell Hello me again xD
I have a question pertaining to both this and your OranageLighting. I have an event with a rotating light to indicate an item is there. I have the <light> <light_radius:40> notetags on the event Notetag section. Player picks up item, and I then call <this.disableEventLight(this.eventId());> ((using this.eventID() because I have a "dumpsite" map which contains other events. In this case 1 event is if the player picks up a Wood Axe, and another is if they pick up a Shovel - can only carry 1 tool at a time))
EDIT: Forgot to mention, the initial event is "below player -> becomes 'above' while the copied event is also 'below'" This is so when a player walks over the item, they are prompted to pick it up or leave it alone
After the light disable, I do the swap (make this event "above player", copy event X (the other item/shove-axe) from map Y (the dumpsite) on player save and then use "delete this event" plugin command. Now all this works fine so far.... but the problem comes when I leave and come back into the map. The event's <light> is still in effect ((I read the event command ERASE EVENT says "temporarily removes the current event on the map. If the player moves off the map and returns, the event reappears." and I was thinking maybe your script call just uses the Erase Event command which would explain why it comes back with the <light> property on.
Is there a way to "permanently" delete events after use? or in my scenario do I have to move the original event to the dumpsite map? Or can perhaps I have to change up how I do this whole thing? lol ((maybe copy/call in the special items from the dumpsite map when the player first enters the area itself; thus doing a script call to enableLight on said event?))
EDIT2: I do know about the "new event page" trick for permanently deleted events, the problem with this method is then the original event is still there anyways(above), now stacked with the new event (below), and when the player moves over to pick it up, It'll prompt to switch shovel/axe (which will then move the new event(now below -> to above ?? Which I'm sure will conflict with the event that's already there (above)... and... you see my headache? lol
----
EDIT3: Wait... forget everything I just typed; I think I found a solution.... maybe... is there a way to copy an event from [current map] to another map? Perhaps I could dump off the old event to the "trash map", followed by copying in the new event from my dumpsite map to the current map! 😮
I have a question pertaining to both this and your OranageLighting. I have an event with a rotating light to indicate an item is there. I have the <light> <light_radius:40> notetags on the event Notetag section. Player picks up item, and I then call <this.disableEventLight(this.eventId());> ((using this.eventID() because I have a "dumpsite" map which contains other events. In this case 1 event is if the player picks up a Wood Axe, and another is if they pick up a Shovel - can only carry 1 tool at a time))
EDIT: Forgot to mention, the initial event is "below player -> becomes 'above' while the copied event is also 'below'" This is so when a player walks over the item, they are prompted to pick it up or leave it alone
After the light disable, I do the swap (make this event "above player", copy event X (the other item/shove-axe) from map Y (the dumpsite) on player save and then use "delete this event" plugin command. Now all this works fine so far.... but the problem comes when I leave and come back into the map. The event's <light> is still in effect ((I read the event command ERASE EVENT says "temporarily removes the current event on the map. If the player moves off the map and returns, the event reappears." and I was thinking maybe your script call just uses the Erase Event command which would explain why it comes back with the <light> property on.
Is there a way to "permanently" delete events after use? or in my scenario do I have to move the original event to the dumpsite map? Or can perhaps I have to change up how I do this whole thing? lol ((maybe copy/call in the special items from the dumpsite map when the player first enters the area itself; thus doing a script call to enableLight on said event?))
EDIT2: I do know about the "new event page" trick for permanently deleted events, the problem with this method is then the original event is still there anyways(above), now stacked with the new event (below), and when the player moves over to pick it up, It'll prompt to switch shovel/axe (which will then move the new event(now below -> to above ?? Which I'm sure will conflict with the event that's already there (above)... and... you see my headache? lol
----
EDIT3: Wait... forget everything I just typed; I think I found a solution.... maybe... is there a way to copy an event from [current map] to another map? Perhaps I could dump off the old event to the "trash map", followed by copying in the new event from my dumpsite map to the current map! 😮