ID:167200
 
Ok this is what i need to know how to do;

i need to know how to make a 'verb' thats called 'werewolf' and it turns the person who uses it (only me key VolksBlade) changes their icon to 'werewolf.dmi' and wait 500 tic's or what ever and then turn back in the 'headmaster.dmi' icon.
Wewt, a 5 (inluding mob/verb/werewolf() ) line code! DM Guide, really.
In response to Mysame
thats in the dm guide..how to make a verb to turn into something else?
In response to VolksBlade
Of course; -_-. You just change the icon, sleep and change it back. >.>
In response to Mysame
so like
verb
werewolf()
usr.icon='werewolf.dmi'
spawn(500)
usr.icon='Headmaster.dmi'

? but then how do i make it me only?
In response to VolksBlade
Look up an admin system library and use something similar to that.
In response to Bobthehobo
Euh, a simple if() statement. :/
In response to VolksBlade
You can make it a proc, and then add it to your list of verbs when you login, like so;

mob
proc
werewolf()
usr.icon='werewolf.dmi'
spawn(500) usr.icon='Headmaster.dmi'
mob/Login()
if(src.key == "VolksBlade")
src.verbs+=new/mob/proc/werewolf
..()
In response to VolksBlade
VolksBlade wrote:
so like
> verb
> werewolf()
> usr.icon='werewolf.dmi'
> spawn(500)
> usr.icon='Headmaster.dmi'
>

? but then how do i make it me only?

*EDIT*


The guy below me beat me to it. -_-
In response to Mysame
Like

mob/verb/Werewolf() //So everyone can see it
if(usr.key=YOUR KEY HERE) //If it's you (make it your key) it goes on
usr.icon = 'werewolf.dmi' //Changes their icon to the werewolf icon
sleep(600) //Waits one minute
usr.icon = 'headmaster.dmi' //Returns you to your old icon
else
usr<<"You're not able to do this!"
return

Of course, you could make vars to keep it from being used while it is already in use, to prevent errors.
In response to Nowatimean
Nowatimean, you have 1 compile error in there!