News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

adding some features

Started by GoldingCircle, September 01, 2010, 08:29:11 PM

Previous topic - Next topic

GoldingCircle

I am trying to allow my character to charge chakra and throw
kunai like other naruto characters. How can i make my character charge chakra and throw kunai
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Rajaa Retired

Use a poweradd for the charging chakra. Use a prjectile or a helper for the kunai.

poweradd projectile helper

Click what's in the above box.

GoldingCircle

I did that but when i am pressing the button it still doesnt work.
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Cybaster

Yeah ...

You may want to move this topic to development help and give us your code. ie where did you add your code, how do your triggers look like, and did you even add the commands in the CMD ?

Rajaa Retired

Be specific, and post your code. What did you try exactly?

GoldingCircle

Alright. I put this for Kunai, for my .cns file:
;Kunai Throw
[Statedef 400]
type    = S
movetype= A
physics = S
juggle  = 4
ctrl = 0
anim = 400
poweradd = 0
sprpriority = 2

[State 0, Varadd]
type = Varadd
trigger1 = 1
var(30) = 1

[State 400, Helper]
type = Helper
trigger1 = animelem = 3
helpertype = normal
name: "Kunai"
ID = 800
stateno = ifelse(random < 500, 701,714)
pos = 5,-25
postype = p1
facing = 1
keyctrl = 0
ownpal = 0

[State 400, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
[Statedef 800]
type    = S
movetype= A
physics = S
juggle  = 2
velset = 0,0
ctrl = 0
anim = 800
poweradd = 0
sprpriority = 2

[State 800, 1]
type = HitDef
trigger1 = time = 1
attr = S, NP
damage = 15, 5
animtype = Medium
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 0, 10
sparkno = S6000
guard.sparkno = 10
sparkxy = -10, 0
hitsound = S1,14
guardsound = 6, 0
ground.type = high
ground.slidetime = 5
ground.hittime  = 10
ground.velocity = 0,0
airguard.velocity = 0,0
air.type = high
air.velocity = 0,0
air.hittime = 12

[State 0, VelSet]
type = VelSet
trigger1 = 1
x = 10

[State 0, HitOverride]
type = HitOverride
trigger1 = 1
attr = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
slot = 0
stateno = 707
time = 0
forceair = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = backedgebodydist <= -10
trigger2 = movecontact = 1

;-------------------------------------------------------------------------------
[Statedef 80`]
type    = S
movetype= A
physics = S
juggle  = 2
velset = 0,0
ctrl = 0
anim = 801
poweradd = 0
sprpriority = 2

[State 801, 1]
type = HitDef
trigger1 = time = 1
attr = S, NP
damage = 50,25
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 0, 10
sparkno = 10
guard.sparkno = 10
sparkxy = -10, 0
hitsound = S1,14
guardsound = 6, 0
ground.type = high
ground.slidetime = 5
ground.hittime  = 100
ground.velocity = 0,0
airguard.velocity = 0,0
air.type = high
air.velocity = 0,0
air.hittime = 12

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = unguardable

[State 0, VelSet]
type = VelSet
trigger1 = 1
x = 10

[State 801, NotHitBy]
type = NotHitBy
trigger1 = time = 0
value = SCA
time = -1

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time >= 50
trigger2 = movecontact = 1

and I added this for Kunai for my .cmd file:
;Kunai Throw
[State -1, Kunai Throw]
type = ChangeState
value = 700
triggerall = var(30) = 0
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = time >= 5

anything wrong?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

GoldingCircle

I also have trouble teleporting and telporting behind an opponent
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Cybaster

???

So ... in the CMD, by pressing "y", you want to trigger the Kunai throw (what is time>=5 for, and what is this var(30) because I doubt you know what are variables at this point) and go to state 700.

BUT ... the state for the kunai throw is statedef 400 !
And what are state 800 and state 80'  ?

GoldingCircle

Yeah! I also have trouble putting a bunshin file like making my character
have more clones of themselves.
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Cybaster

Fix your kunai throw first.
I told you where the problems were. You should be able to understand the problems yourself if they're pointed out to you, because this is some simple triggering here : pressing button -> go to state -> create kunai helper at some point of the animation.

GoldingCircle

I already fixed the kunai throw.
How can i add more clones to my character?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Rajaa Retired


GoldingCircle

#12
Like how?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Rajaa Retired

Use the helper state controller and summon them.

GoldingCircle

"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Rajaa Retired


GoldingCircle

how do you make a subsitution for the character?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Rajaa Retired

By using a helper? A hitoverride?

Cyanide

Rajaa: It's a naruto character. He wants to code the "make many clones of naruto" move.

Short answer for this one, don't. It's unfair, buggy and causes more problems than it's worth. Sure, use them AS part of a move, but don't make them a move in and of themselves.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

GoldingCircle

How do I change color of him when he comes in.
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.