ID:273955
![]() Sep 27 2011, 7:43 am
|
|
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
|
![]() Sep 27 2011, 8:03 am
|
|
I think you are looking for initial() proc.
|
that works, thanks. I guess theres no easy way to do this other than coding out every single var, is there? :P
|
I think you're looking for the vars list var.
|
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.
|
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)? |