Understanding a script (RMXP)

Started by Zolnova, June 07, 2010, 12:12:17 am

Previous topic - Next topic

Zolnova

hello all, im working on a megaman zero rpg and the battle system is going to be from the tales of games that i found near the bottom of this page :
http://www.rpgrevolution.com/forums/index.php?showtopic=30616&st=0&gopid=413039&#entry413039

I have most of the stuff down but could someone share a little light on this scripting for me?
In megaman zero games, zero has a 3 slash attack and i want to give him this as a basic attack.
Sure the first 2 are done but when i try putting a 3rd in it doesnt work!

this is what ive got for CBS part 5 (battler config) for zero

case actor_id
when 1 # Zero
# 運動能力
@armor1_id = 1
@walk_x_speed = 2.5 # 「歩行X速度」
@frict_x_break = 0.5 # 「摩擦Xブレーキ力」
@dash_x_speed = 8.0 # 「走行X速度」
@crouch_to_jump = 1 # 「ジャンプ開始にかかるフレーム」
@air_x_velocity = 0.8 # 「空中X加速度」
@air_x_maximum = 4.0 # 「空中X最大速度」
@air_x_resistance = 0.2 # 「空中X空気抵抗」
@air_y_velocity = 0.8 # 「落下Y加速度」
@air_y_maximum = 15.0 # 「落下Y最大速度」
@swoop_y_speed = 17.25 # 「急降下Y最高速度」
@max_jumps = 3 # 「最高連続ジャンプ回数」
@weight = 0.50 # 「重さ」
@guard_durability = 25 # 「ガード耐久力」
@jump_y_init_velocity = 12 # 「地上ジャンプY初速度」
@airjump_y_init_velocity = 11 # 「空中ジャンプY初速度」
@stand_body_rect = Rect.new( -20 , -54, 30, 45) # 直立時くらい判定(Rect)
@sit_body_rect = Rect.new( -20 , -54, 30, 45) # しゃがみ時くらい判定(Rect)
@down_body_rect = Rect.new( 0 , 0, 0, 0) # ダウン時くらい判定(Rect)

# 戦技設定
@forte_ids[ 1] = 121 # x
@forte_ids[ 2] = 124# x+x
@forte_ids[ 4] = 124 # =>=>+x
@forte_ids[ 5] = 124 # =>+x
@forte_ids[ 6] = 126 # arriba+x
@forte_ids[11] = 131 # Ataque 1 (x)
@forte_ids[12] = 131 # Ataque 2 ( -> + x )
@forte_ids[13] = 131 # Ataque 3 ( arriba + x 9
@forte_ids[14] = 131 #[14] Ataque 4 ( abajo + x )
@forte_ids[15] = 131 #[15] Ataque 5 ( <- + x )


i know that @forte_ids[ 1] = 121 and [2] =124 are the basic attacks that are executed by pressing x twice but im wanting a 3rd hit

for Full CBS part 6 (Skills)
when 121 # Ataque espadachin(corte hacia abajo)
@handling_priority = 1
@action_duration = 18
@uncancelable_duration = 4
@jub_attack_connect_f = 18
@attack_motion_plan = [111,111,113,113,115,115,116,116,117,117]
# 2:攻撃開始
@attack_rectan_plan[ 3] = Rect.new(0,-50, 40, 24)
@attack_skl_id_plan[ 3] = 121
@attack_rectan_plan[ 6] = Rect.new(0,-30, 40, 35)
# 7:攻撃範囲をしまう
@attack_skl_id_plan[ 7] = 0

this is for forte_id 121 the first attack and:

when 124 # Ataque espadachin 4(Corte hacia adelante)
@action_duration = 28
@attack_motion_plan = [151,151,153,153,154,154,155,155,157,157]
# 4:攻撃開始
@attack_rectan_plan[ 3] = Rect.new(20,-40,40,30)
@attack_skl_id_plan[ 3] = 121
@attack_rectan_plan[ 6] = Rect.new(20,-40,40,30)
# 15:攻撃範囲をしまう
@attack_skl_id_plan[ 7] = 0

and this is what i put down as a test 3rd stage attack, i know its not wrong cos ive tested it as a 2nd stage attack.
when 132 #test
@action_duration = 38
@attack_motion_plan = [751,751,752,752,753,753,754,754,755,755]
# 4:攻撃開始
@attack_rectan_plan[ 3] = Rect.new(20,-40,40,30)
@attack_skl_id_plan[ 3] = 121
@attack_rectan_plan[ 6] = Rect.new(20,-40,40,30)
# 15:攻撃範囲をしまう
@attack_skl_id_plan[ 7] = 0

Can someone please tell me what am i missing? I know im close but im no where near the cookie jar! :'(
help will be very appreciated!