if, else if, nested if, "block" ifs: a tutorial

Doc requests, organization, and submissions

Moderators: dorpond, trevor, Azhrei

ElCucuy
Cave Troll
Posts: 50
Joined: Thu Jul 03, 2008 7:30 pm

Post by ElCucuy »

BigO wrote: Ahh, such a classic programming gotcha. Try this:

Code: Select all

[MiscAttBonus = MiscAttBonus + if(state.Bloodied==1,1,0)]
One = is used for changing the value of something, == is used for comparing two values.

Don't feel bad. Everyone makes that mistake, even when you know better. Myself included.
*smacks forehead* Arrgh!!

I knew it was something obvious! And I knew once I figured out where that one was going wrong, it'll probably fix every other macro I can't get to work.

Thanks a ton, Big O!

el Cucuy

Post Reply

Return to “Documentation Requests/Discussion”