ID:145084
 
Code:alert proc
switch(alert(M, "You are going to die, use Fushi Tensei?", "Forbidden Jutsu", "Yes", "No"))
if("Yes")
client.mob = M.newbody


Problem description: even though this is an src's proc, how can i make it so the box comes up for the mob M? the above doesnt seem to work, help plz ^^

Why don't you use input
In response to Yorae
... if i use input would it be M.input or M.VAR = input?
In response to DarkBelthazor
show us the rest of the code, this piece seems to have nothing wrong with it. input would be switch(input( instead of switch(alert.
In response to Shoe
mob/verb/MindSwap(mob/M in view(2))
M.newbody += usr.client.mob
usr.Swap(M)

mob/proc/Swap(mob/M)
switch(input(M, "You are going to die, use Fushi Tensei?", "Forbidden Jutsu", "Yes", "No"))
if("Yes")
client.mob = M.newbody
In response to DarkBelthazor
DarkBelthazor wrote:
> mob/verb/MindSwap(mob/M in view(2))
> M.newbody += usr.client.mob
> usr.Swap(M)
>
> mob/proc/Swap(mob/M)
> switch(input(M, "You are going to die, use Fushi Tensei?", "Forbidden Jutsu", "Yes", "No"))
> if("Yes")
> client.mob = M.newbody
>
>

mob/verb/mindswap(mob/m in view(2))
m.newbody+=client.mob
switch(input(m,"you are going to yadda yadda yadda")in list("yes","no"))
if("yes")
client.mob=m.newbody