How would I make it create a specific item within a list?
I've been trying to figure it out for a few days now, but to no avail.
Example:
I have two items that come from the same parent, but I want to select which item to spawn, instead of just spawning that certain item.
I'm trying to avoid putting a verb within the item, but making it a proc or player verb
ID:271035
Dec 19 2006, 12:17 pm
|
|
In response to Kaioken
|
|
Blah, I've decided to go with a Click() type of playing, but I cannot get it to create the card when Click()ed.
What am I doing wrong? obj This outputs Moo. Why? |
In response to Dead_Demon
|
|
Dead_Demon wrote:
This outputs Moo. Why? Because you need to look up the reference entry for a proc before you use it (talking about 'Click proc (atom)'). The argument in Click() isn't what you think it is. In [Dbl]Click(), 'usr' is the player who clicked (it's a very verb-ish procedure, and usr-safe), and 'src' is the object that was clicked. The argument is something you don't care about in this case. |
Dead_Demon wrote:
Don't use the spawn term, BTW, use 'create'. As you probably know, there's a spawn() proc in DM, and it has nothing to do with creating objects.
For your question... er, what's the problem? Create an object with the specific type you want... for your information, the new() proc's 'Type' argument/parameter can be a variable holding a type, too.
You should also post the relevant code block(s), since we can't read minds and see the problems in your code. :p