mob/var
S11
S22
list
S1
S2
S3
mob
verb
Learn_Punch()
src.S1 += /mob/S1/verb/Punch
src.S2 += /mob/S2/verb/Kick
if(src.S22)
src.verbs += new/mob/S2/verb/Kick()
if(src.S11)
src.verbs += new/mob/S1/verb/Punch()
S1/verb
Punch()
viewers(usr)<<"[usr] punched!"
S2/verb
Kick()
viewers(usr)<<"[usr] kicked!"
verb
Switch_Stance()
if(S22)
for(var/V in typesof(/mob/S2/verb))
usr.verbs -= V
for(var/X in usr.S1)
usr.verbs += X
Problem description: I'm not sure what I've done wrong, but up at src.S1 += /mob/S1/verb/Punch I get the following runtime error:
runtime error: type mismatch: /mob/S1/verb/Punch (/mob/S1/verb/Punch) += /mob/S1/verb/Punch (/mob/S1/verb/Punch)
proc name: Learn Punch (/mob/verb/Learn_Punch)
I think I can see what I've done wrong, but I'm not sure how to fix it. Can someone please give me some guidance?
I tried fixing it, compile that and se what u get