I used this:
if(/area/nofire)
else
blahblah(rest of my code)
says value not allowed here... what do I use? I am trying to say if the area is nofire, then do nothing, else add a verb.
ID:150708
Aug 6 2001, 11:13 am
|
|
In response to Deadron
|
|
On 8/6/01 2:32 pm Deadron wrote:
On 8/6/01 2:13 pm Oblivian wrote: Ok, got it thanx. |
First you need to get ahold of the area. A good way to do that (hmm maybe I should add this to the Deadron library) is to create a little proc (this is untested code):
mob/proc/get_area()
// I don't know if I'm inside something or what...so go up the chain of locs til I find area.
var/possible_area = loc
while (!istype(possible_area, /area))
possible_area = possible_area:loc
return possible_area
Then you could do this:
var/my_area = get_area()
if (istype(my_area, /area/nofire))
// Whatever I want to do