ID:273955
 
i think it used to be just default(var) but that doesnt work. I tried searching the Reference for it but i cant find it there. Cant anyone help me out? Im trying to have a long list of variables set to their default value. If theres a more simple way of doing it, please let me know. Thanks
I think you are looking for initial() proc.
In response to Hashir
that works, thanks. I guess theres no easy way to do this other than coding out every single var, is there? :P
In response to Quiet Screams
I think you're looking for the vars list var.
In response to Kaiochao
Ive used that before (a long time ago) but is it possible to make a list of certain variables with it? Im making a Pokemon game and each attack has its own PP var. I made a Restore Stats proc for when they faint and I want to restore all the PP instantly. But i dont want to reset their level, maxhp and such.
In response to Quiet Screams
Quiet Screams wrote:
Ive used that before (a long time ago) but is it possible to make a list of certain variables with it? Im making a Pokemon game and each attack has its own PP var. I made a Restore Stats proc for when they faint and I want to restore all the PP instantly. But i dont want to reset their level, maxhp and such.

Don't do initial(src.HP)?