ID:272825
 
You know those DBZ games where you punch your arm in the air?

Well i cant do that!

Can someone please help me?
Um, flick()?
mob/verb/Punch()
if(arm.loc = locate("air"))
world << "PUNCH!"
The Great Sabin wrote:
You know those DBZ games where you punch your arm in the air?

Well i cant do that!

Can someone please help me?


Use flick(), here is a sample.

Let say you have a normal mob state in an icon file. You also have the punch state in the same icon file let's say you labeled it "punch".

mob
icon = 'mob.dmi'
verb
Punch()
flick("punch", src)


There you have it...
In response to Glarfugus (#2)
Glarfugus wrote:
> mob/verb/Punch()
> if(arm.loc = locate("air"))
> world << "PUNCH!"
>

I mean i want it like Under a Train tab i know how to do the statpanel("Train")

but how do i get it under that and not in the Commands tab because the mob/verb puts it in the Command tab...
In response to The Great Sabin (#4)
You can put any verb in any category (tab) you want. The DM Guide and basic beginner tutorials cover this well; you should read them first and learn instead of asking about every little thing.
In response to Kaioken (#5)
mob
icon = 'mob.dmi'
set category = "Combat" //set to whatever you want.
verb
Train() //whatever you wanna call it
flick("punch", src)
exp += rand(1,3) //assuming you have an exp system


This is what I reccomend if this is for training.


In response to Kridane (#6)
Kridane wrote:
This is what I reccomend if this is for training.

I recommend a system that actually requires a brain to use, or at least some effort from the players.
Either that or make the training system fully automated so they can go nap while they level up in your game.
(They're going to anyway if you make your training system like he suggested)
In response to Falacy (#7)
Falacy wrote:
Kridane wrote:
This is what I reccomend if this is for training.

I recommend a system that actually requires a brain to use, or at least some effort from the players.
Either that or make the training system fully automated so they can go nap while they level up in your game.
(They're going to anyway if you make your training system like he suggested)

Thats what i want to do fal like a train system like other DBZ games but you can kill monsters also for EXP and killing monsters and Wishing is the main way to train the training system made it so like every 5 seconds you get 10% Exp till 100% :0
In response to The Great Sabin (#8)
The Great Sabin wrote:
...the training system made it so like every 5 seconds you get 10% Exp till 100% :0

mob/var
CanTrain=1
Training=0
Exp=0
ReqExp=100
mob/verb/Train()
if(!usr.CanTrain) return
usr.Training=!usr.Training
if(usr.Training)
usr<<"You Start Training"
while(usr && usr.Training)
usr.Exp+=round(usr.ReqExp/10)
//usr.LevelCheck() or whatever
sleep(50)
else
usr.CanTrain=0
usr<<"You Stop Training"
spawn(51) if(usr) usr.CanTrain=1

Naptastic
In response to Falacy (#9)
Falacy wrote:
The Great Sabin wrote:
...the training system made it so like every 5 seconds you get 10% Exp till 100% :0

> mob/var
> CanTrain=1
> Training=0
> Exp=0
> ReqExp=100
> mob/verb/Train()
> if(!usr.CanTrain) return
> usr.Training=!usr.Training
> if(usr.Training)
> usr<<"You Start Training"
> while(usr && usr.Training)
> usr.Exp+=round(usr.ReqExp/10)
> //usr.LevelCheck() or whatever
> sleep(50)
> else
> usr.CanTrain=0
> usr<<"You Stop Training"
> spawn(51) if(usr) usr.CanTrain=1
>

Naptastic
he has a point my naruto games only gunna have wasd macrod then nothing else well thts what im trying to do neway lol :P
gl with game