YesNoOk
avatar

How to adjust vel and damage of a move depending on the strenght (Read 242 times)

Started by QuickFist, August 28, 2013, 04:11:39 pm
Share this topic:
How to adjust vel and damage of a move depending on the strenght
#1  August 28, 2013, 04:11:39 pm
  • *****
    • Venezuela
    • Blacksight22@Yahoo.Com.Ve
    • Skype - sebastian.osio
How do I adjust the velocity and damage of a move with it's strenght?
Example: Iori's Yami Barai, to adjust the vels so the helper moves faster depending on the buton pressed, also for the damage
This is the system I'm using:
[State 1000, VarSet]
type=VarSet
trigger1 =!AILevel&& !time
var(10)=ifelse(command="YamiBarai1",0,ifelse(command="YamiBarai2",1,2))
ignorehitpause=1
Thanks Watta for the sig and avi.
Re: How to adjust vel and damage of a move depending on the strenght
#2  August 28, 2013, 06:04:18 pm
  • ****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • pv2matos@gmail.com
i would like to know also, my work around is to code the same attack with a different statedef number and i adjust the velocitys in every individual state
Re: How to adjust vel and damage of a move depending on the strenght
#3  August 28, 2013, 08:08:22 pm
  • ******
  • [E]
    • Mexico
i prefer to be generic adn do that as well, considering that i very likely there will be mroe differences between strenght,s such as animation timing .
Re: How to adjust vel and damage of a move depending on the strenght
#4  August 28, 2013, 08:09:49 pm
  • ****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • pv2matos@gmail.com
And if one of those attacks is an EX attack it gets more complicated.
Re: How to adjust vel and damage of a move depending on the strenght
#5  August 28, 2013, 08:30:30 pm
  • ****
    • Skype - DaInfinite
    • infiniteff.forumotion.com/
How do I adjust the velocity and damage of a move with it's strenght?
Example: Iori's Yami Barai, to adjust the vels so the helper moves faster depending on the buton pressed, also for the damage
This is the system I'm using:
[State 1000, VarSet]
type=VarSet
trigger1 =!AILevel&& !time
var(10)=ifelse(command="YamiBarai1",0,ifelse(command="YamiBarai2",1,2))
ignorehitpause=1



;set's the var for the helper
[State xxx, Strength]
type=varset
trigger1=!time&&!prevstateno
var(10)=root, var(10)

;set's the velocity
[State xxx, Vel]
type=velset
trigger1=!time
x=4+var(10);this just means that the velocity on the light version is 4, the medium is 5, and hard is 6. you can change to any number.
y=0

or
;you can use an ifelse on the velocity if you don't quite understand var addition
[State xxx, Vel]
type=velset
trigger1=!time
x=Ifelse(var(10)=0,3.5,Ifelse(var(10)=1,4.5,5.5))
y=0

;damage is simple

damage=floor(68+8*var(10))*root,fvar(10)),8

68=the damage of the light version.
+8*var(10)=8 added to original 68 depending on which attack is being used. var(10)=1  = 68+8=76, var(10)=2 = 68+ 8*2=84

or

damage using ifelse

damage=floor(Ifelse(var(10)=0,68,Ifelse(var(10)=1,76,84))*root,fvar(10)),8

floor root fvar(10) is for damage dampener.

the last ,8 = is for chip damage.