Skill Set Variable

I think it's not working for him because he might be using the script call outside of battle. I tried your script call in battle and it works.
Are you sure you have the right id at the end?

And thanks. 🙂
yes i am sure i just double checked and it still doesnt work
I think it's not working for him because he might be using the script call outside of battle. I tried your script call in battle and it works.
yeah im not using it in battle
This check does only work in battle.

So, where do you want to use the skill then? Menu, Battle, or both?
This check does only work in battle.

So, where do you want to use the skill then? Menu, Battle, or both?
its to be used outside of battle from the menu
Okay, then try this:
Code:
$gameParty.menuActor().lastMenuSkill() && $gameParty.menuActor().lastMenuSkill().id === 48
Okay, then try this:
Code:
$gameParty.menuActor().lastMenuSkill() && $gameParty.menuActor().lastMenuSkill().id === 48
that sent out the "works" branch! thank you so much for helping me with this!
@laugexd
No problem! 🙂

(Just a side note. Instead of using the quote, use the @Username. Otherwise the posts get's cluttered.)
@waynee95 what would the script look like if it were checking for the last used item?
@laugexd
Code:
$gameParty.lastItem() && $gameParty.lastItem().id === 42
@waynee95 thanks it works like a charm!

Original thread: https://forums.rpgmakerweb.com/threads/skill-set-variable.83051/