This is my butterfly code...
Butterfly
icon='npcs.dmi'
icon_state="butterfly"
walk_rand(src,5)
density=0
layer=5
can someone help me i get an error that says
Mobcode.dm:24:error:src:duplicate definition
Mobcode.dm:24:error:5:duplicate definition
please if you know whats wrong tell me
ID:178728
![]() Apr 12 2002, 5:44 pm
|
|
![]() Apr 12 2002, 5:48 pm
|
|
Because there is no src, you have no parent type for the datum.
|
is there anyway to make it so that when the butterfly gets to the end of an area it will go back and not into the other area?
|
SuperGoku15 wrote:
is there anyway to make it so that when the butterfly gets to the end of an area it will go back and not into the other area? Yes. There are two basic ways to do this. The first is to create a special area type, and set up its Exit() proc so that the butterfly can't leave: area/ButterflyRange The other way is for the butterfly's Move() proc to do the checking for it: obj/butterfly There may be reasons to prefer one method over the other. Hope that helps. Lummox JR |