Of course, you can do nearly anything if you modify the code. I am not in a position to be able to do this, however. Feel free to ask in the forum, though.
Hi
Galv
I try to add a single line to your script.
$gameSwitches.setValue(30, true);
I need when action icon is displayed, the switch (30) activated.
And if no action icon, switch will be False
$gameSwitches.setValue(30, false);
I try to add this line several places, but I can not seem to have the switch TRUE, when the Action icon appears.
I add this line to the line
178
175
and 225.
Have you any idea where I can just copy this code in your script.
For the Action icon for the switch remains active.
i put it under // create target objet, but am not understant why not work.
Galv.AI.checkEventForIcon = function(event) {
var icon = 0;
if (event.page()) {
var listCount = event.page().list.length;
for (var i = 0; i < listCount; i++) {
if (event.page().list
.code === 108) {
var iconCheck = event.page().list.parameters[0].match(/<actionIcon: (.*)>/i);
if (iconCheck) {
// create target object
return {'eventId': event._eventId,'iconId': Number(iconCheck[1])};
$gameSwitches.setValue(30, true);
break;
};
};
};
};
return null;
};
Tank you friend