Err me have trouble. I want to list all the items one has and then when one selects an item it drops on the floor under him, BUT i obviously under-estimated how hard this'd be and now i'm stuck.
mob/verb/Drop()
var/mob/list/T=list()
for(var/obj/O in usr)
T+=O
input("Drop what?") in T
if(!T)
return
Code.dm:98:error::invalid expression
ID:173559
Dec 17 2003, 6:34 pm
|
|
#1 Dec 17 2003, 6:35 pm
|
||
Just give the verb to obj's.
| ||
I mostly did this so i could learn, i don't like the ordinary way. I like to be different ;)
| |
#3 Dec 17 2003, 6:39 pm
|
|
Crashed wrote:
input("Drop what?") in T Saying which line 98 is would be a helpful start here. But your input() is completely frelled up. For starters: Why have you indented under it? The input() proc is not a control structure; it's not if() or while() or for(). Second, why didn't you do anything with the return value from the proc? That's kind of the whole point of calling it: using what it sends back. Lummox JR | |
#4 Dec 17 2003, 6:42 pm
|
||
Crashed wrote:
Err me have trouble. I want to list all the items one has and then when one selects an item it drops on the floor under him, BUT i obviously under-estimated how hard this'd be and now i'm stuck.
try that | ||
