In response to Reinhartstar
This makes it only go for a set amount of time?
In response to WindShock
No that would be flick then sleep.
In response to Justin Knight
Just got a problem...For SOME REASON, that spawn made my turf get an error.

INVALID EXPRESSION.
In response to Justin Knight
is there really even a difference between using spawn and sleep?

also, wind, whats the invalid experssion say, and what code is it in?
In response to Reinhartstar
Its the actual word TURF on my turf code...

All it says is invalid expression.

turf <<<its that.
blah
blah
In response to WindShock
well, thats kinda weird. weres hiead when you need him? lol. But keep sleep for now then. im reading up on the sleep and spawn procs
In response to Reinhartstar
Ok..
Can we talk on messanger or something? I hate big threads liek this that take most the page, because other people that need help get pushed to the other page.
In response to WindShock
ok..but i'll have to get back to you. i gotta go. to tierd to code right now. just leave your messenger thing(I have AIM) and ill get back to you 2morrow. cya.
In response to Reinhartstar
ravenr32skyline

Anyone else can help me thats bored, got any messanger?
In response to WindShock
WindShock wrote:
mob
verb
Anger()
usr.icon_state = "Enrage"
usr << "You feel pised off."
sleep(300)

Thats my code as of now, to get p.oed.
The sleep dont work...(I think thats what its supposed to be.)

In that code, the sleep is pointless. The sleep sleeps the current function for a specified amount of time before coninuing code in the same function

But, my idea is to get the sleep() to work..then do this..

mob
verb
Anger()
usr.icon_state = "Enrage"
usr << "You feel pised off."
sleep(300)
usr.icon_state = "Next State"

Eh...eh? Would that work?

No. You don't indent when using sleep. It would be more like
mob
verb
Anger()
src.icon_state = "Enrage"
src << "You feel pised off."
sleep(300) // Wait 30 seconds
src.icon_state = "Next State"


Don't use usr. And keep in mind that sleep sleeps the specified amount in tenths of seconds, so the example sleeps for 30.

Hiead

One more thing: from now on, please put all coding in

tags
In response to Hiead
Ok, I was wondering how to do that, lol..thanks. Got a messanger..For some reason, that damn spawn code forced my people invisible again.
In response to Reinhartstar
Reinhartstar wrote:
is there really even a difference between using spawn and sleep?

Yes. sleep delays the entire remaining function for the set of time, and you don't indent the coding after it.

spawn delays the indented code for the specified amount of time, while still continuing processing the code after the indented spawn block

Hiead
In response to Reinhartstar
Reinhartstar wrote:
weres hiead when you need him?

I was reading something about the Java J2SE

Hiead
In response to WindShock
Ok, I RE-Fixed the invisible thing..It seems the code only works if its on my dm file named...test.dm
In response to WindShock
Be right there

Hiead
Page: 1 2