ID:269754
 
Uhhhh i was wondering how to make it so every time you hit the punching bag its random like every 5-7 hits gains you 1 Taijutsu(same as strength). Thanks.
In response to Sinoflife
errr thats not what i mean like rand(5,7) but like how would i work it with this code.

obj
training_bag
icon='Gray_Shirt.dmi'
density=1
verb
Punch_Bag()
set category = "Taijutsu"
icon = 'players.dmi'
icon_state= "Attac"
set src in oview(1)
In response to Kurosaki_Ichigo-San
Please use
tags. And prob() is exactly what you need if I understand you correctly.
if(prob(20)) 

//Put what it would do if there was a 20% chance
In response to Sinoflife
ok now how would i make it actually not be so spammable?
In response to Kurosaki_Ichigo-San
Spammable? As in macro-able where the effect is implied multiple times due to the lack of protection of your code?

while(variablefortraining)
//training stuff
In response to Sinoflife
do i put that before or after the code?