- Joined
- Jun 26, 2022
- Messages
- 53
- Reaction score
- 7
- First Language
- German
- Primarily Uses
- RMMZ
My current problem is the following: I want that an Item does make the following things when being used:
First, it reduces TP by the TpCost of the item (notetag).
Then, it increases the MP, HP and EXP by the associated value that is saved in the notetags.
Now I tried it out, but nothing really happens.
My problem is now that I have no idea how to actually find out why nothing happens because this is so much bound to the visustella engine, which is obfuscated.
So my question is:
- How do I debug stuff that comes from other plugins?
First, it reduces TP by the TpCost of the item (notetag).
Then, it increases the MP, HP and EXP by the associated value that is saved in the notetags.
Now I tried it out, but nothing really happens.
Code:
<JS Pre-Damage>
console.log(this.meta.TpCost);
console.log(this.meta.MpRegen);
console.log(this.meta.HpRegen);
console.log(this.meta.ExpGain);
target.gainTp((parseInt(this.meta.TpCost)) * -1);
target.gainMp(parseInt(this.meta.MpRegen));
target.gainHp(parseInt(this.meta.HpRegen));
target.gainExp(parseInt(this.meta.ExpGain));
</JS Pre-Damage>
So my question is:
- How do I debug stuff that comes from other plugins?