ID:149986
 
Ok heres the problem.. i have a simple obj..

obj/fire
icon = 'fire.dmi'
density = 1
verb
myverb()
set src in view(1)
// bleh blhe bleh

When i have the verb there, i can walk RIGHT through the fire.. when i take out the verb, its dense.. Please help me, im am stumped. :[

-Rcet
Rcet wrote:
Ok heres the problem.. i have a simple obj..

obj/fire
icon = 'fire.dmi'
density = 1
verb
myverb()
set src in oview(1)
// bleh blhe bleh

When i have the verb there, i can walk RIGHT through the fire.. when i take out the verb, its dense.. Please help me, im am stumped. :[

-Rcet

oview buddy

FIREking
In response to FIREking
lol
In response to FIREking
That's hardly the problem... and not necessarily true, either. Pview() would only be appropriate if the verb should not be accessible to someone in the fire's square, which could be appropriate or not, depending on what exactly the verb is. Since he's trying to make the fire's square itself inaccessible, view vs. oview is really a moot point, isn't it? (Assuming he doesn't have any intangibility spells or flight...)
I don't really see anything here that would cause that problem... and since this is obviously just a mock-up of the code, the problem is most likely in the actual code. Would you mind very much just copying and pasting that?
In response to Lesbian Assassin
Sure.. This is the whole code:
obj/fire
icon = 'fire.dmi'
density = 1
verb
Cook(obj/O as obj in usr.contents)
set src in oview(1)
if(O.icon == 'fish.dmi')
var/suc = rand (1,usr.cook)
if(suc <=1)
if(usr.cook >=1)
view() << "[usr] cooks \a [O]"
del(O)
new/obj/groupable/cookfish(usr)
usr.cook -= 1
else
usr.cook = "1 *Expert*"
del(O)
new/obj/groupable/cookfish(usr)
else
view() << "[usr] burns \a [O]. HAHA"
del(O)
new/obj/groupable/burnfish(usr)
if(O.icon == 'crab.dmi')
var/suc = rand (1,usr.cook)
if(suc <=1)
if(usr.cook >=1)
view() << "[usr] cooks \a [O]"
del(O)
new/obj/groupable/cookcrab(usr)
usr.cook -= 1
else
usr.cook = "1 *Expert*"
del(O)
new/obj/groupable/cookcrab(usr)
else
view() << "[usr] burns \a [O]. HAHA"
del(O)
new/obj/groupable/burncrab(usr)


I know its really messy.. i plan on cleaning it up :)

-Rcet