ID:146397
 
mob
proc
bite()
src << "Orochimaru attempts to bite,but decides not to"
prob(7)
switch(input("You have been bitten by orochimaru.")in list("Try to Survive","Return to village"))
if("Try to Survive")
prob(10)
if(src.ninjutsu > src.genjutsu && src.taijutsu)
src << "You have been blessed with the Ninjutsu seal"
src.verbs+= new/mob/skill/verb/Ninjutsu_Seal()
src.learn_seal = 1
if(src.genjutsu > src.ninjutsu && src.taijutsu)
src << "You have been blessed with the Genjutsu seal"
src.verbs+= new/mob/skill/verb/Genjutsu_Seal()
src.learn_seal = 1
if(src.taijutsu > src.ninjutsu && src.genjutsu)
src << "You have been blessed with the Taijutsu seal"
src.verbs+= new/mob/skill/verb/Taijutsu_Seal()
src.learn_seal = 1
else
src << "You have been blessed with the All around seal"
src.verbs+= new/mob/skill/verb/All_around_Seal()
src.learn_seal = 1
src << "You have been killed by the curse seal"
if("Return to village")
src.loc = locate(1,1,1)
src << "You have been sent back to your village"


Procs.dm:5:prob :warning: statement has no effect
Procs.dm:6:error::invalid expression

It says,I have prob problem when its fine?

EDIT:Its the first prob thats the problem,not the second.
your not using it... you just threw prob(7) and prob(10) in for idk what reason
In response to Cheetoz
Cheetoz wrote:
your not using it... you just threw prob(7) and prob(10) in for idk what reason

How am I not useing it?
In response to Broly103
...its just there for no reason erase the probability then re indent it
In response to Cheetoz
Cheetoz wrote:
...its just there for no reason erase the probability then re indent it

Its there for a reason -_-
In response to Broly103
You need to do if(prob(x)). Otherwise, prob(x) only returns a value that's never used.
In response to Dark Weasel
Dark Weasel wrote:
You need to do if(prob(x)). Otherwise, prob(x) only returns a value that's never used.

Thanks,at least you told me what I did wrong.
Broly103 wrote:
> mob
> proc
> bite()
> src << "Orochimaru attempts to bite,but decides not to"
> prob(7)
> switch(input("You have been bitten by orochimaru.")in list("Try to Survive","Return to village"))
> if("Try to Survive")
> prob(10)
> if(src.ninjutsu > src.genjutsu && src.taijutsu)
> src << "You have been blessed with the Ninjutsu seal"
> src.verbs+= new/mob/skill/verb/Ninjutsu_Seal()
> src.learn_seal = 1
> if(src.genjutsu > src.ninjutsu && src.taijutsu)
> src << "You have been blessed with the Genjutsu seal"
> src.verbs+= new/mob/skill/verb/Genjutsu_Seal()
> src.learn_seal = 1
> if(src.taijutsu > src.ninjutsu && src.genjutsu)
> src << "You have been blessed with the Taijutsu seal"
> src.verbs+= new/mob/skill/verb/Taijutsu_Seal()
> src.learn_seal = 1
> else
> src << "You have been blessed with the All around seal"
> src.verbs+= new/mob/skill/verb/All_around_Seal()
> src.learn_seal = 1
> src << "You have been killed by the curse seal"
> if("Return to village")
> src.loc = locate(1,1,1)
> src << "You have been sent back to your village"
>

Procs.dm:5:prob :warning: statement has no effect
Procs.dm:6:error::invalid expression

It says,I have prob problem when its fine?

EDIT:Its the first prob thats the problem,not the second.

hey you need to add
if(prob(7))
instead of prob(7)
i think you will know the rest