- Joined
- Jun 6, 2014
- Messages
- 4
- Reaction score
- 0
- First Language
- English
- Primarily Uses
Hello everyone,
I'm currently working on a project that uses YEA's TP manager but there is something I want to do with it that my system seems not to like.
Basically, I want to set things so that when a character takes damage, they lose an amount of TP based on the attacker's luck.
My initial idea was to set the code to ":take_hp_dmg => "-a.luk" but the game produces this error when I try it: http://puu.sh/9gz7X/0fb832a9c2.png
I'm very much a novice with coding so I would very much enjoy a simple solution to this. Thanks alot.
I'm currently working on a project that uses YEA's TP manager but there is something I want to do with it that my system seems not to like.
Basically, I want to set things so that when a character takes damage, they lose an amount of TP based on the attacker's luck.
My initial idea was to set the code to ":take_hp_dmg => "-a.luk" but the game produces this error when I try it: http://puu.sh/9gz7X/0fb832a9c2.png
I'm very much a novice with coding so I would very much enjoy a simple solution to this. Thanks alot.
What I'm looking to do now is to have a skill that does two seperate formulas for damage. essentially I'm looking to make a skill that does both these formula:
HP damage: "a.atk-(b.def+(b.agi/3))"
TP damage: "c=a.luk-b.luk*b.tcr; if c>=0; b.tp-=c; else; 0;end"
I've been doing some research and it seems like I could get this done by using common events but I have no idea how these work.
Last edited by a moderator:

