YesNoOk
avatar

Time Stop Move draining Power Bar instead of Set Value? (Read 30705 times)

Started by All-Star Platinum, May 06, 2018, 09:24:03 pm
Share this topic:
Time Stop Move draining Power Bar instead of Set Value?
New #1  May 06, 2018, 09:24:03 pm
  • ***
  • Future Funk Punk
    • Canada
Hello,

Not exactly sure where to start this other than modifying some kind of trigger. Currently I am developing a move that can be used only when the character has 3000 power, is there a way to change this so the move can be used at any time but it drains power (stops) until 0?

Any help would be appreciated.

Thanks.

-A.S.P
Last Edit: May 08, 2018, 04:26:08 am by All-Star Platinum
Re: Special/Super Move draining Power Bar instead of Set Value?
#2  May 06, 2018, 09:55:48 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
use a negative poweradd in the -2 states that is triggered under specific conditions
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Special/Super Move draining Power Bar instead of Set Value?
#3  May 06, 2018, 10:06:30 pm
  • ***
  • Future Funk Punk
    • Canada
Currently I have the code set to a superchargepause

[State 2000, superchargepause]
type = superpause
trigger1 = AnimElem = 4
time = 60
movetime = 60
anim = -1
sound= s2001,0+random%4
poweradd = -powermax <======uses power
p2defmul = 1
darken = 0

Something in -2 like this?

[State -2, PowerAdd]
type = PowerAdd
trigger1 = var(20)>0
value = -10

Still kind of new to coding, could you maybe break it down?

-A.S.P
Re: Special/Super Move draining Power Bar instead of Set Value?
#4  May 07, 2018, 09:03:26 am
  • *****
  • Shame on you!
    • USA
Get rid of that poweradd.
In your CMD, only allow P1 to enter the state if Power = 3000.
What ever state you enter you want to set a variable to 1.
In statedef -2 you want to use a poweradd with triggers
power > 0
var(x) = 1 ;this makes it so you know you went into the move
time%x where x is going to be divided into 60. This will affect how many times/fast a second power will reduce.
and the value should be a small number for testing. adjust it's value if it's not reducing fast enough. Or adjust the %x value.
In statedef -2 you want to set the var(x) to 0 when var(x) = 1 and power = 0.
You may also want a second set of triggers on the varset in statedef -2 if P2's attack knocks P1 out of it.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Special/Super Move draining Power Bar instead of Set Value?
#5  May 07, 2018, 11:46:08 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
He said any time and it would stop when it hits 0. There are a few ways to do this but it would help if we knew what the super was. Is it a mode change of some sort. A charging ball of energy or shield. A beam of some kind? There are different ways to do it but they very much depend on what the attack is.


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.
Re: Special/Super Move draining Power Bar instead of Set Value?
#6  May 07, 2018, 12:17:54 pm
  • *****
  • Shame on you!
    • USA
Ah, I'm an idiot, I read it inside out. He said developing when he meant editing. that's my excuse :P 

If you're just trying to allow P1 into the state, edit the changestate in the cmd and comment out the power = 3000 trigger using
;
in front of it.
If the power doesnt drain over time like you want, just follow what I said.... every thing below the power = 3000 line....
vVv Ryuko718 Updated 10/31/22 vVv
Re: Special/Super Move draining Power Bar instead of Set Value?
#7  May 07, 2018, 03:39:16 pm
  • ***
  • Future Funk Punk
    • Canada
Okay, I can kind of see what your are saying I will begin running more tests. My bad, I worded the first post a bit incorrectly, the move is a time stopping move basically DIO's Za Warudo. The move works perfectly fine I just was curious if it was possible so that it could be enabled at anytime during the round, but only lasts as long as the amount of power in his gauge.

I can post some of the code if it helps?
Here's the code

CMD

Spoiler, click to toggle visibilty

CNS

Spoiler, click to toggle visibilty

CNS -2

Spoiler, click to toggle visibilty

Hope that helps.

-A.S.P
Last Edit: May 07, 2018, 03:50:49 pm by All-Star Platinum
Re: Special/Super Move draining Power Bar instead of Set Value?
#8  May 07, 2018, 04:35:35 pm
  • ***
  • I am a little editor of pixel art
    • Brazil
    • felipexavier.stuart@gmail.com
hmm, when we do progressive charges, it add power under time, why not make a inverse power charge?
Re: Special/Super Move draining Power Bar instead of Set Value?
#9  May 07, 2018, 05:00:18 pm
  • ***
  • Future Funk Punk
    • Canada
I know how to code a power charge (very basic at that but gets the job done) I would have to work at a revrese version specifically for this move, is there no trigger = solution?
Re: Time Stop Move draining Power Bar instead of Set Value?
#10  May 07, 2018, 09:05:04 pm
  • ***
  • I am a little editor of pixel art
    • Brazil
    • felipexavier.stuart@gmail.com
ah, ok you want something like Dark Hold. I think someone already did that move, let me find it.
ah ok, first, you make the Time Stopper Move:
Code:
;-----------------------------------------------------------------------------
;DARK HOLD
[StateDef 300]
anim = 300
ctrl = 0
type = A
movetype = A
physics = N
velset = 0,0

[State 0, VarSet]
type = VarSet
trigger1 = animelem = 3
trigger1 = power >= 50
v = 10    ;fv = 10
value = 1

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

Fine, then you call the helper on statedef -3

Code:
;......................dark
[State 300]
type = Pause
trigger1 = var(10) = 1
time = 10
movetime = 10
pos = 2, -30

[State 0, PowerAdd]
type = PowerAdd
trigger1 = var(10) = 1
value = -8

[State 300]
type = BGPalFX
trigger1 = var(10) = 1
time = 10
invertall = 1

[State 0, Helper]
type = Helper
trigger1 = numhelper(6666) = 0
trigger1 = var(10) = 1
helpertype = normal
name = "?"
ID= 6666
stateno = 6666
pos = 0,0
postype = p2
pausemovetime = 1000

[State 0, VarSet]
type = VarSet
trigger1 = power = 0
v = 10    ;fv = 10
value = 0

and here is the helper

Code:
[StateDef 6666]
anim = 6666
ctrl = 0
type = S
movetype = A
physics = S
velset = 0,0

[State 0, HitDef]
type = HitDef
trigger1 = 1
attr = S,NA
hitflag = MAF
guardflag =
getpower = 0,0
givepower = 0,0
sparkno = -1
animtype = light
air.animtype = light
p2stateno = 50
palfx.time = 1
palfx.invertall = 1
guard.dist = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 1

And on command lines its just like this:
Code:
;DARK HOLD
[State -1, DARK HOLD]
type = ChangeState
value = 300
triggerall = var(59)!= 1
triggerall = command = "b" && command = "holdback"
trigger1 = power >= 50
trigger1 = statetype != C
trigger1 = ctrl = 1

Note there is a Trigger1 = power >= 50, this is to set the minimum power needed to use the move, the bgpalfx make all colors negative, like in Mega Man X5.
(Note I was used a X that has this move to make a character long ago, this code was made by Austin, not me).
Re: Time Stop Move draining Power Bar instead of Set Value?
#11  May 08, 2018, 03:44:49 am
  • ***
  • Future Funk Punk
    • Canada
I spoke with my coder and think I have found a better/non cheap version, depending on what lvl (3000,2000, or 1000) it will pause time and drain the power bar accordingly, I'll experiment with what you have here though, maybe tweak it a bit to get the desired result.

Thanks for the input tho will def see how it works out.

-A.S.P