Different Freespecial when low on MP

DJGameFreakTheIguana

Active member
As the title implies, I'd like help with making chars do a different freespecial move when you don't have enough MP to do the usual move you have set. For example, "com a2 Freespecial4" would go into Freespecial8. I plan for the move to be the same, just with lower power.
 
You can use this function:

Code:
void aniLimit(void Ani, int Frame, int Limit)
{// Change current animation if MP falls below limit
    void self = getlocalvar("self");
    void MP = getentityproperty(self,"mp");    

    if (MP < Limit){
      changeentityproperty(self, "animation", openborconstant(Ani),2);
      updateframe(self, Frame);
    }
}

 
Thanks Blood, got it to work! Apparently, I already had the function in script.c, but there's a lot of things in there but don't know how or if I even need them, should make a note to erase what I don't need. Anyway, I still needed a way to apply it to entities so I did a quick search and found a topic you posted the cmd code in.
http://www.chronocrash.com/forum/index.php?topic=4613.msg63964#msg63964

Thanks again.
 
Back
Top Bottom