mob
verb
MakeSlave()
Click(turf/T)
if(!T.density)
//if stuff here
else
//else stuff here
The only error I get is:
Reproduction.dm:28:error: proc definition not allowed inside another proc
ID:175174
![]() Jun 1 2003, 12:06 pm
|
|
I'm trying to make a mob (slave) in the location where the player clicks. The slave can only be created if the location is not dense. Here is what I have:
mob The only error I get is: Reproduction.dm:28:error: proc definition not allowed inside another proc |
![]() Jun 1 2003, 12:10 pm
|
|
The problem is that you're trying to define the click proc inside your makeslave verb.
|
So do I have to make a proc that defines the click verb or do i have to do something like
mob click() //blah blah? The second way would be kind of confusing because I want to make click do something else. Or is there some other way to do it ? |
How many argument can a click proc take, I'm not sure if I used the word "arguments" correctly..
Ex: Click(argument,argument,argument,argument) |
SSChicken wrote:
How many argument can a click proc take, I'm not sure if I used the word "arguments" correctly.. That doesn't really matter, since you can't just set up your own arguments to Click() anyway; it will never be called with them. The arguments Click() uses are defined in the reference. Lummox JR |