There are two logical ways of doing this. Now, for attack values, simply move the ifelse(s) from the first state and put them in the hitdef, adjusting the values accordingly.ĭamage=ifelse(var(1)=3,45,ifelse(var(1)=2,35,ifelse(var(1)=1,25,20) Meaning that if var(1) equals 3 (i.e., the third transformation), than state 0's anim is 30000, if it's 2, 20000, if 1, 10000, and if in base form (no transformation), 0. Where var(1) is the transformation variable. This is relatively easy to achieve, it just takes patience (I'll be skipping everything in the code that's not relevant to the transformation).įirst add this code to all of your states:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |