I'm trying to add Mobs into a list called "Pawkeymun" that every player has. Every attempt so far has failed. Please tell me how.
ID:149279
Jun 4 2002, 4:04 pm
|
|
In response to Polatrite
|
|
Already tried that.
Every mob has the list. Here's the source: (Currently) ////LISTS AND VARS///// mob var list Pawkeymun AntiCaptureVal Pawkeymun var HP MAXHP CaptureVal ownerkey Pawkeymun = new/list() ////Capture System///// mob Pawkeymun verb Capture() set src in oview(1) if(prob(50+(usr.AntiCaptureVal-src.CaptureVal))) Pawkeymun.Add(src) usr << "You caught it!" src.name = input("What do you want to name it?") src.ownerkey = input("Type in the key of the person who owns this.") else usr << "Attempt Failed." New() walk_rand(usr) |
In response to spectriplex
|
|
Try replacing your current list var with this....
Pawkeymun[] Now replace Pawkeymun.Add(src) with Pawkeymun += src |
In response to Polatrite
|
|
Still doesn't work....
|
In response to spectriplex
|
|
You are adding to the pawkeymon's pawkeymons list, not the person who uses the verb.
Alathon\\ |
Pawkeymun += mobinquestion
Quite simple, you could either do that, or....
Pawkeymun.Add (mobinquestion)
I am less sure on the second, one, as the only time I use it are in a few 'load' commands which create pretty much anything while online. Either way, try it out, and reply.