Hi, everyone,
I've been looking for info for a while and haven't found an answer that works :
I use this code to trigger special effects only if it's actor #1, 4, 6 or 10 and another effect if it's not
this formula works perfectly, being a beginner in javascript, I'm already happy
but...
I'd like to go through the class instead the actorID but I don't know which code to use. I've tried :
But it doesn't work, I don't have the right synthax. I found this document to try and help me, but I didn't find (or understand) what I was looking for...
If anyone can help me, that would be great, thanks 🙂
I've been looking for info for a while and haven't found an answer that works :
I use this code to trigger special effects only if it's actor #1, 4, 6 or 10 and another effect if it's not
JavaScript:
if ([1, 4, 6, 10].includes(b.actorId())) { AudioManager.playSe({name: 'Buzzer1', volume: 100, pitch: 100});$gameParty.gainItem($dataItems[8], 1); 0; } else { 50; }
this formula works perfectly, being a beginner in javascript, I'm already happy
but...I'd like to go through the class instead the actorID but I don't know which code to use. I've tried :
Code:
b.ClassId()
b.CurrentClass()
b.actor.ClassId()
b._classId
But it doesn't work, I don't have the right synthax. I found this document to try and help me, but I didn't find (or understand) what I was looking for...
If anyone can help me, that would be great, thanks 🙂