Title says, i'm quite new to the dream maker.
More detail on what im trying to do.
So i have a statpanel called "Feelings", And in that panel i have mad,sad,happy.
I'm working on mad, and there are 3 levels of pain, Irritated,Frustrated,Angry.
I have a proc that turns the numerical mad var into a var(mad_wording) that contains one of the three words.
The stats in the statpanel instead show a word, instead of a number. But the problem is, is when you are not mad(mad=0) i don't want the statpanel to show anything. This is what the stat looks like "" stat(usr.mad_feeling_start_statement,usr.mad_wording)""
so when mad = 0 mad_feeling_start_statement=" ", that way nothing will be displayed. I have my own proc for this, but how do i update this proc every couple of seconds?
Alright that worked, but encase i need too is there anyway i can run a proc every 10 seconds?
|
You can repeat code using while() or for(), and delay code using sleep or spawn(). Use the DM Reference (press F1 in Dream Maker) to read about those, and feel free to ask for help after reading up.
Here's an example: mob |
Stat() is called periodically by the engine; you don't have to do anything. Whenever Stat() is called, the statpanels are populated with the data according to statpanel() and stat() calls. Again, this happens automatically already.
If you don't want a stat to be shown at all, you could use an if() like so: