[State 1350, Chest Finder]
type = VarSet
trigger1 = (Time%1) = 0
v = 12 ;fv = 10
value = floor( (enemy,const(size.head.pos.y) - enemy,const(size.mid.pos.y) )/2 )
[State 1350, Chest Tracker]
type = VarSet
trigger1 = (Time%1) = 0
v = 13 ;fv = 10
;value = floor( const(size.mid.pos.y) + var(12))
value = ifelse(enemynear(0), statetype = L , 10, ifelse(enemynear(0), statetype = C ,floor( enemy,const(size.mid.pos.y)/2), floor( enemy,const(size.mid.pos.y) + var(12))))
[State 1350, WTFisIT]
type = VarSet
trigger1 = (Time%1) = 0
v = 10
value = ceil(P2BodyDist Y + var(13) )/20
You can see var(13)'s commented out value would find the height for standing up. The next line changes when P2 is crouching so the homing missile doesnt fly over their head.;var 4 = dirrection presses 1/X values
;var 5 = charging power / button held
;var 6 = dirrection presses 2/Y values
;var 7 = N/A
;var 8 = Ball bouncer
;var 9 = floating
;var 10 = chest tracking variable
;var 18 = rapid button presses for power
;
;var 28 = charge beam charged
;
; fvar 2 = button presses
; fvar 4 = screw attack X
; fvar 6 = screw attack y
; fvar 14 = Const(size.xscale) ;used for positioning projectiles
; fvar 20 - 29 = whip helper positions
You can see var(10) labeled. You can see I use 10 variables to keep track of my whip helper. Samus is also scaled so I use fvar(14) so if anyone was to change her height, EVERYTHING would scale up, or down, with her. So 13 examples in the spoiler