Index · Preferences · Help
Announcements · BYOND Features · Bug Reports · Fixes and Features · Developer How-To · Code Problems · Design Philosophy · Creations · Classified Ads · Gaming · Computers & Technology · Community
Forum Search:

[Advanced Search]

[Messages in this Thread] [Show All (10)] [Return to Code Problems]

Author:EternalStudent [Posts]
Date:11/8/09 3:28 am
Topic:What have I done wrong this time?
Post ID:726251
Next ID:726289
Code:
turf
    proc/OutDoor(r,mob/enemy)
        var/ran=rand(1,r)
        if (ran==r)
            usr.inCombat=1
            alert("You've been attacked")
            usr.icon_state = "cursor"
            usr.usrX = usr.x
            usr.usrY = usr.y
            usr.usrZ = usr.z
            usr.Move(locate(/area/battle))
            enemy.Move(locate(17,4,3))


turf/grass
    icon = 'grass.dmi'
    Enter()
        var M=new/mob/wolf
        OutDoor(5,M)
        return 1

Problem description:

The wolf won't appear on the screen.

Messages in this Thread: [Show All (10)]

  What have I done wrong this time? EternalStudent (11/8/09 3:28 am)
      Re: What have I done wrong this time? Schnitzelnagler (11/8/09 9:41 am)
          Re: What have I done wrong this time? EternalStudent (11/8/09 10:00 am)
              Re: What have I done wrong this time? Schnitzelnagler (11/8/09 11:59 pm)
              Re: What have I done wrong this time? Garthor (11/8/09 2:34 pm)
              Re: What have I done wrong this time? EternalStudent (11/8/09 10:34 am)
      Re: What have I done wrong this time? Lyndonarmitage1 (11/8/09 8:29 am)
          Re: What have I done wrong this time? EternalStudent (11/8/09 9:10 am)
      Re: What have I done wrong this time? Diddykonga (11/8/09 4:05 am)
          Re: What have I done wrong this time? EternalStudent (11/8/09 8:25 am)