mugen chars, rare characters
Mugen | CHAT | whats wrong with this script - Forum | Registration | Login
[New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
whats wrong with this script
GojiMasterDate: Tuesday, 2011-09-06, 0:05 AM | Message # 1
Squire
Group: contributor
Messages: 64
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
Im trying to make a powercharge script, but it says

Error Parsing [State 0, PowerAdd]
Error in [Statedef 9000]
Error in Madara.cns
Character needs to be updated. See docs/imcompt*.txt
Error loadin chars/ffchartest/ffchartest.def
Error loading p1

[Statedef 9000]
type = S
physics = S
velset= 0,0
anim = 250
ctrl = 0

[State 0, PowerAdd]
typer = PowerAdd
triggerall = command = "hold_z" && command = "hold_y"
trigger1 = power<powermax
value = time/10

[State 0, ChangeState]
type = ChangeState
trigger1 = power>=powermax
trigger2 = command!="hold_z" || command !="hold_y"
value = 9001
ctrl = 0

[Statedef 9001]
type = S
physics = S
velset = 0,0
ctrl = 0
anime = 9001

[State 0, ChangeState]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

Someone help me please!


 
sgn_15Date: Tuesday, 2011-09-06, 9:28 AM | Message # 2
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
didnt looked at your codes. this is a simple charge

CNS

;Charge
[Statedef 8000]
type = S
movetype= I
physics = S
velset = 0,0
anim = 8000
ctrl = 0
sprpriority = 2

[State 8000, PowerAdd]
type = PowerAdd
trigger1 = ((GameTime%1) = 0)
value = 10

[State 8000, end]
type = ChangeState
trigger1 = (command != "hold_b")
value = 0

CMD

;---------------------------------------------------------------------------
; POWER CHARGING
[State -1, Power Charge]
type = ChangeState
value = 8000
triggerall = command = "hold_b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
Triggerall = Power < 3000


 
vhcm21Date: Wednesday, 2011-09-07, 10:54 PM | Message # 3
Adult
Group: Users
Messages: 45
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
Before I try to help you, I need to understand one code to try to find the problem, please:
- trigger1 = time/10

And sgn_15, can you help me more one time saying what means "trigger1 = ((GameTime%1) = 0)". Thanks for it!

Added (2011-09-07, 10:54 PM)
---------------------------------------------
And try to read the sgn_15's reply, which help you a lot.

 
sgn_15Date: Thursday, 2011-09-08, 10:36 AM | Message # 4
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
Quote (vhcm21)
And sgn_15, can you help me more one time saying what means "trigger1 = ((GameTime%1) = 0)". Thanks for it!


% means getting the remainder of a division. so when you say 11%3 , it means 11 divided by 3 then get the remainder. in this case, the remainder is 2

now gametime%1 is based on the gametime (of the match), and when you divide it by 1, the remainder is 0. its basically a nerdy way to say "every tick" it needs to trigger

it should be the same as
Code
trigger1 = 1


1 means always true (its absolute true, as long as you are in that state, the sctrl with the "1" trigger will always happen)

gametime % # is useful for example, you want something to trigger every 5 ticks, then you use gametime%5 = 0


 
vhcm21Date: Thursday, 2011-09-08, 4:12 PM | Message # 5
Adult
Group: Users
Messages: 45
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
Only more one thing...
What means "tick" in that context? Is not a parasite?
 
sgn_15Date: Thursday, 2011-09-08, 4:15 PM | Message # 6
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
Quote (vhcm21)
Only more one thing...
What means "tick" in that context? Is not a parasite?

wait. lol what?

well tick is the unit of time mugen uses. the time you adjust in the anim (air files), the time you are referring to when you used time = ### trigger or animelemtime(##) > # trigger or whatever time parameter on any state controller

1 second = 60 ticks

that is the value of tick (unless you changed it in your mugen.cfg file)


 
vhcm21Date: Thursday, 2011-09-08, 4:43 PM | Message # 7
Adult
Group: Users
Messages: 45
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
Sorry for this question, I'm new on english!

Added (2011-09-08, 4:43 PM)
---------------------------------------------
And thanks for the answer!

 
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2024 Create a free website with uCoz