Hello!
I am having issues with Galvs event detector. Im trying to have the current event be the actual detector as I am using it in accordance with his event spawner, so the detector ID will keep changing. And as far as I've been able to find out, there is no built in feature in his detector to just use this event to be the detector.
So I tried setting an event to the static events id number, in this case it's 28. And then tried calling the variable script for the detector as shown below.
Galv.DETECT.event($gameVariables.value(78),8,false)
So setting the variable 78 to 28 works and trigger the event. It's also worth mentioning that the variable 78 is a self variable.
But when using below code to set the same event
$gameVariables.setValue(78, $dataMap.events[this._eventId].id);
console.log($gameVariables.value(78));
However now, it does not work. Even though I've set the self variable to the eventID and also verified in F9 that var 78 = 28.
But now neither the static or the spawned event works.
Altough using the below will work for the static event but not the spawned event.
But when using below code to set the same event
$gameVariables.setValue(129, $dataMap.events[this._eventId].id);
console.log($gameVariables.value(129));
When the spawned event spawns, it does not event set a value to 129, but the static one would.
So selfvariables don't work unless specified that it's 28, with script it does not work.
The variable does not get set if the event has spawned.
Pictures below of the different things will be posted below which in my opinion is way more clear than my convoluded explanation.
https://gyazo.com/a5b3a1d0ed34e5f1dd9639a82a52e008
Best regards,
Bishiba
So I am quite curious, how do I set a variable
I am having issues with Galvs event detector. Im trying to have the current event be the actual detector as I am using it in accordance with his event spawner, so the detector ID will keep changing. And as far as I've been able to find out, there is no built in feature in his detector to just use this event to be the detector.
So I tried setting an event to the static events id number, in this case it's 28. And then tried calling the variable script for the detector as shown below.
Galv.DETECT.event($gameVariables.value(78),8,false)
So setting the variable 78 to 28 works and trigger the event. It's also worth mentioning that the variable 78 is a self variable.
But when using below code to set the same event
$gameVariables.setValue(78, $dataMap.events[this._eventId].id);
console.log($gameVariables.value(78));
However now, it does not work. Even though I've set the self variable to the eventID and also verified in F9 that var 78 = 28.
But now neither the static or the spawned event works.
Altough using the below will work for the static event but not the spawned event.
But when using below code to set the same event
$gameVariables.setValue(129, $dataMap.events[this._eventId].id);
console.log($gameVariables.value(129));
When the spawned event spawns, it does not event set a value to 129, but the static one would.
So selfvariables don't work unless specified that it's 28, with script it does not work.
The variable does not get set if the event has spawned.
Pictures below of the different things will be posted below which in my opinion is way more clear than my convoluded explanation.
https://gyazo.com/a5b3a1d0ed34e5f1dd9639a82a52e008
Best regards,
Bishiba
So I am quite curious, how do I set a variable