// simple2.dm: Introducing procs
/*
The following code defines two new variables for all area
objects. One is called "look" and the other is called
"sound". These are used to display some text and to play
a sound when a player enters the area.
*/
area
var
look
sound
player
area/area3/area3
Entered()
//Put the cursor on "Entered" and press F1 to learn
//more about this procedure. You can also press F1
//on the << operator to learn about that.
if(player in area3)
icon_state = "nadar"
else
icon_state = ""
usr << look
usr << sound(sound,1)
area1
look = "I smell a dirty rat"
sound = 'jazzy.mid'
area2
look = "Holy cow there is a big rat!"
sound = 'cavern.mid'
area3
look = "U swim into the sea!"
Still i cant change the icon state of the mob