Adding a State to the DMG Formula?

fallenlorelei

Veteran
Veteran
Joined
Jul 8, 2013
Messages
298
Reaction score
346
First Language
English
Primarily Uses
Hi all!

I'm looking to see how to add a state to the damage formula in skills. I have an Ice magic user who will occasionally "Freeze" targets with her abilities (it's basically a paralyze with a different icon). But she also has an ability I'd like to add that's called "Break the Ice." I'd love this ability to do 100% extra damage on "Frozen" targets. And then the Frozen state goes away. I know how to get rid of the state, but I don't know how to add the extra damage.

I found this post: http://forums.rpgmakerweb.com/index.php?/topic/11832-checkerasing-a-state-via-skills-damage-formula/ but it doesn't look like it's been solved... T.T I'm also not sure how I'd use that formula, it wasn't really explained...

Thanks for any help! <3
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
a.state?(id) damage with bonus : damage

if you want to remove the state too, then:

x = a.state?(id); a.remove_state(id); x? damage with bonus : damage

You check first for the state since you need to know if it exist for the bonus damage...
 

fallenlorelei

Veteran
Veteran
Joined
Jul 8, 2013
Messages
298
Reaction score
346
First Language
English
Primarily Uses
a.state?(id) damage with bonus : damage

if you want to remove the state too, then:

x = a.state?(id); a.remove_state(id); x? damage with bonus : damage

You check first for the state since you need to know if it exist for the bonus damage...
Thanks so much!

I'm still in the planning stage with MS Excel so I can't test it just yet, but its in my documents! Excited :3
 

Xypher

Veteran
Veteran
Joined
Apr 1, 2012
Messages
148
Reaction score
26
Primarily Uses
you would use b instead of a in the calculations though

so something like

c = 4 * a.mat - 2 * b.mdf; if b.state?(id); b.remove_state(id); c *= 2;end; c

replace id with the id of your frozen state.

Edit:fixed typo in formula
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
uhm, you checked a.state, but removed it from b?
 

Xypher

Veteran
Veteran
Joined
Apr 1, 2012
Messages
148
Reaction score
26
Primarily Uses
indeed I did.

fixed the typo.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top