ID:179185
Feb 6 2002, 11:48 am
|
|
is there any way to create something while in the game. i want to make a random encounter thing, to come across monsters randomely. can i make it create a mob in front of my character to start an encounter?
|
In response to Foomer
|
|
I tried both examples, and niether worked....
Code: obj/item/food/seeds/cornseeds icon = 'items1.dmi' icon_state = "seeds" iweight = 1 description = "Some seeds" verb Plant() set src in usr.contents usr << "[usr.x]" new/obj/plant/babycorn(locate(usr.x,usr.y,usr.z)) usr << "You plant Corn Seeds" del(src) obj/plant/babycorn icon = 'items1.dmi' icon_state = "scorn" |
In response to Nova2000
|
|
Make sure you have everything right. It works fine for me. Look over all of your code, and see if anything is causing it not to work..
-Rcet |
var/mob/monster/M = new(locate(x,y,z))
or
new/mob/monster/M(locate(x,y,z))
for example.
Probably want to look up new() in the reference for some pointers, as well as the Guide which I think has some info on that too.