- Joined
- Oct 9, 2016
- Messages
- 11
- Reaction score
- 2
- First Language
- English
- Primarily Uses
Hey hey,
So I'm trying to do something where any character can use a consumable item, but using it on one particular character triggers a change in a variable. I've patched together a snippet of code, but it doesn't seem to be doing anything- maybe I'm not using the right syntax, or maybe I'm just going about it completely wrong, I'm not sure, but I'm a total beginner to JS, so any help at all would be appreciated.
Thank you!
So I'm trying to do something where any character can use a consumable item, but using it on one particular character triggers a change in a variable. I've patched together a snippet of code, but it doesn't seem to be doing anything- maybe I'm not using the right syntax, or maybe I'm just going about it completely wrong, I'm not sure, but I'm a total beginner to JS, so any help at all would be appreciated.
Code:
if ($gameActors.actor(1) .consumeItem) {
$gameVariables.setValue(18, 3);
}

