- Joined
- Mar 31, 2013
- Messages
- 259
- Reaction score
- 117
- First Language
- English
- Primarily Uses
- RMMZ
In short: I am making a vampire RPG and working on a plugin to take care of majority of the supernatural systems. One of these is a vampire's regeneration. I want it so that if they are hit with a specific damage type (we'll use "08: Light" for RMMV default), which will then stunt the vampire's regeneration for 30 seconds.
I just need help figuring out which function in rpg_objects.js helps determine what Attack Element type was used in the last attack so I can alias that function. I'm looking through Game_Action and Game_ActionResult and there's a few functions that I thought would be it.. but they're comparing item data not weapons?
---
Edit2: Okay I was misunderstanding it... this.item() is referring to a skill (id:1 = attack) not the weapon...that might help my search a bit more.
Edit: To be a bit clearer in my request, I know somewhere, somehow $dataWeapons[id].traits() is where I should start... code: 31 I understand to be the attack element trait and dataId: 8 (is the Light element we are looking for)... but I can't seem to find it. Maybe I just don't know where to look? *rubs chin*
I just need help figuring out which function in rpg_objects.js helps determine what Attack Element type was used in the last attack so I can alias that function. I'm looking through Game_Action and Game_ActionResult and there's a few functions that I thought would be it.. but they're comparing item data not weapons?
---
Edit2: Okay I was misunderstanding it... this.item() is referring to a skill (id:1 = attack) not the weapon...that might help my search a bit more.
Edit: To be a bit clearer in my request, I know somewhere, somehow $dataWeapons[id].traits() is where I should start... code: 31 I understand to be the attack element trait and dataId: 8 (is the Light element we are looking for)... but I can't seem to find it. Maybe I just don't know where to look? *rubs chin*
Last edited:

