You can use local Sims 2 Variables. If you use local variables in a BHAV you must remember to set how many. See Declaring your stack variables for details on how to do this.
This page is located on the SimsWiki. To view it in it's original form, click here.