ID:170772
 
Hey Im XRPGPLAYERX32 , Ive been playing byond for about 6 months now and made a couple of games , I need help though , does anyone know how to make a self train verb for a dragonball z game.
Sure
mob/verb/a_self_train_verb_for_a_dbz_game()
src << "Be more descriptive!"
In response to Hell Ramen
Forgot dm brackets Ramen...you should know better =P.
In response to Hell Ramen
he means that he wnats to make a verb that you push and it raises your variable max.pl 10pl every 30 secs and lowers you stamina 10% every 30 secs also.
In response to Tsonic112
N1ghtW1ng wrote:
Forgot dm brackets Ramen...you should know better =P.

Too lazy to waste THAT much time on a DBZ game. :p

Tsonic112 wrote:
he means that he wnats to make a verb that you push and it raises your variable max.pl 10pl every 30 secs and lowers you stamina 10% every 30 secs also.

How did you know EXACTLY what he wanted? Is that your alternate key?
In response to Hell Ramen
no, i am talking to him on my game and he keeps asking me how to post and after he did i looked at what he put so i corrected him, he is legend in my game..
In response to Hell Ramen
Tsonic112 wrote:
he means that he wnats to make a verb that you push and it raises your variable max.pl 10pl every 30 secs and lowers you stamina 10% every 30 secs also.



Ahh, sorry for being rude.
mob/verb/self_train()
if(src)
if(!src.self_training)
src.self_training++
src.maxpl += 10
src.stamina -= round(src.maxstamina/10)
spawn(300)
if(src.self_training)
src.self_train()
else
src << "Phail"
src.self_training=null

mob/var/self_training


_>
That's just to make up for my rudeness.
In response to Tsonic112
Tsonic112 wrote:
he means that he wnats to make a verb that you push and it raises your variable max.pl 10pl every 30 secs and lowers you stamina 10% every 30 secs also.

I really hate to help a ripper, but just in case he's made a game of his own with no connection to Zeta except for the variable names, which, granted, is a pretty unlikely, I'll do it:

mob
var/training
proc
TrainingLoop()
set background=1
while(src&&src.training)//While both values are true
src.maxpl+=10
stamina-=round(stamina/10)
spawn(300)//Wait 300 ticks (30 seconds)
TrainingLoop()

Stop_TrainingLoop()
training=0

Start_TrainingLoop()
src.training=1
spawn()
TrainingLoop()
verb
Train()
if(src.training)
src.Start_TrainingLoop()
src << "You start to train."
else
src.Stop_TrainingLoop()
src << "You stop training."


If you would like to learn how to code, then I strongly recommend the Blue Book.
In response to Wizkidd0123
Erm, Wizzie's is better then mine. >_>
In response to Hell Ramen
Hell Ramen, that verb can't be stopped! If src is deleted, it will throw out a runtime, there's no way to stop it, and finally, being an infinite loop, it needs to call itself with spawn().
In response to Wizkidd0123
Whoops, lemme' fix it.
[Edit]How about that? :P