I've been trying to figure out how to allow a client to switch mobs. I've been only partially successful. This is the code I have for it so far.
client/New()
new/mob/Guy1
new/mob/Guy2
..()
world/mob = /mob/Guy1
mob/var/Person = "Guy1"
mob
verb
change_mob()
if(src.Person == "Guy1")
client.mob = /mob/Guy1
client << "You switch"
else
client.mob = /mob/Guy2
client << "You switch"
mob
var
HP = 1
STR = 1
DEF = 1
mob/Guy1
HP = 50
STR = 15
DEF = 12
Person = "Guy1"
mob/Guy2
HP = 40
STR = 10
DEF = 30
Person = "Guy2"
mob/Stat()
statpanel("Stats")
stat("HP","[src.HP]")
stat("STR","[src.STR]")
Now the problem is, It's not working right. I just can't figure out why. Could I get some assistance?
ID:169417
![]() Jun 21 2005, 2:04 pm
|
|
-Ryan