Hi!
So I'm trying to combine this script to work with different events at specific locations, but I'm a bit unsure on how I could implement it in the best possible way.
Before I start the source of the script can be found
here:
So what I plan to use this script for is to have the menu pop up (preferably the player will be able to open it everywhere by pushing a specific button, but I have always been failing to do so at least with consistency.)
So I have everything setup, the skill categories I want for the variable works great, and the skills are being shown in order after they have been learned just like I want it to.
For now, I'm using the event to call up the script call for the skills and using the players x and y coordinate for the position that he needs to stand in, in order for the event to trigger.
Now the problem I have is to make the spell trigger the event at that location when It's chosen from the list. The only way I can make the skill interract with anything at all is through common events, but I'm not sure how I would set it up in order to interract with the event in question.
If I turn on a switch inside the common event, it could work with the x and y coordinates since the event will only trigger if the switch is on and the player is standing in this exact location. But if I use the skill anywhere else on the map the switch will still be set to ON, and make it possible to activate these events without using the skill again.
I'm not sure if I make myself clear here, but I'm pretty much at a halt in how to get this to work in the best possible way.
Any advice would be greatly appreciated.
Edit: Nevermind, I'm an idiot. Ofc the spell ID is calculated in the variable, not sure what I was thinking. Well at least I can use the varieble ID as a condition now, but I still wonder how I could use this anywhere on the map and only secure usage at certain locations.