Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

XAS Weapon Error

zchin

Sponsor

Thank you for viewing this topic, I appreciate it.
I'm using the XAS and I made my first weapon and it has a combo to it too, But it only shows the first attack which only shows one frame... I can't find the problem...
Here are the scripts for the weapons:
1st attack
Code:
module Database_Bullet

  action_id = 128

  LINK_ACTION_ID[action_id] = 128  

  SUFLAGS[action_id] = 8 

  DURATIONS[action_id] = 12

  PIERCINGS[action_id] = true  

  SELF_MOTIONS[action_id] = "_Spear_01" 

  plan = []

  plan[3] = action_id

  ATTACK_ID_PLANS[action_id] = plan  

  ATTACK_RANGE_TYPES[action_id] = LINE

  ATTACK_RANGE_PLANS[action_id] = [3]

  BLOW_POWERS[action_id] = 1

  SELF_ANIMATION_PLANS[action_id] =  []

  SELF_ANIMATION_HIT[action_id]  = 4

  SELF_DAMAGES[action_id] = false

  SELF_INVICIBLES[action_id] = false

  ONLY_ALLY[action_id] = false

  TARGET_INVINCIBLES_DURATIONS[action_id] = 4      

  IGNORE_INVINCIBLES[action_id] = false

  IGNORE_PLAYERSHIELD[action_id] = false

  IGNORE_REFLECT[action_id] = true

  MULTI_HIT[action_id] = false

  SHAKE[action_id] = false

  ANIMATION_SPEED[action_id] = 1.5

  SHORT_RANGE[action_id] = false

  FORCE_MOVE[action_id] = FORWARD

  FORCE_JUMP[action_id] = false

  PLAYER_CT_COST[action_id] = true 

  PLAYER_CAST_TIME[action_id] = 0

end
2nd attack
Code:
module Database_Bullet

  action_id = 129

  LINK_ACTION_ID[action_id] = 129

  SUFLAGS[action_id] = 8

  DURATIONS[action_id] = 12

  PIERCINGS[action_id] = true  

  SELF_MOTIONS[action_id] = "_Spear_02" 

  plan = []

  plan[3] = action_id

  ATTACK_ID_PLANS[action_id] = plan  

  ATTACK_RANGE_TYPES[action_id] = LINE

  ATTACK_RANGE_PLANS[action_id] = [3]

  BLOW_POWERS[action_id] = 1

  SELF_ANIMATION_PLANS[action_id] =  []

  SELF_ANIMATION_HIT[action_id]  = 4

  SELF_DAMAGES[action_id] = false

  SELF_INVICIBLES[action_id] = false

  ONLY_ALLY[action_id] = false

  TARGET_INVINCIBLES_DURATIONS[action_id] = 4      

  IGNORE_INVINCIBLES[action_id] = false

  IGNORE_PLAYERSHIELD[action_id] = false

  IGNORE_REFLECT[action_id] = true

  MULTI_HIT[action_id] = false

  SHAKE[action_id] = false

  ANIMATION_SPEED[action_id] = 1.5

  SHORT_RANGE[action_id] = false

  FORCE_MOVE[action_id] = FORWARD

  FORCE_JUMP[action_id] = false

  PLAYER_CT_COST[action_id] = true 

  PLAYER_CAST_TIME[action_id] = 0

end
3rd attack
Code:
module Database_Bullet

  action_id = 130

  LINK_ACTION_ID[action_id] = 0  

  SUFLAGS[action_id] = 8 

  DURATIONS[action_id] = 12

  PIERCINGS[action_id] = true  

  SELF_MOTIONS[action_id] = "_Spear_03" 

  plan = []

  plan[3] = action_id

  ATTACK_ID_PLANS[action_id] = plan  

  ATTACK_RANGE_TYPES[action_id] = LINE

  ATTACK_RANGE_PLANS[action_id] = [3]

  BLOW_POWERS[action_id] = 0

  SELF_ANIMATION_PLANS[action_id] =  []

  SELF_ANIMATION_HIT[action_id]  = 227

  SELF_DAMAGES[action_id] = false

  SELF_INVICIBLES[action_id] = false

  ONLY_ALLY[action_id] = false

  TARGET_INVINCIBLES_DURATIONS[action_id] = 18   

  IGNORE_INVINCIBLES[action_id] = false

  IGNORE_PLAYERSHIELD[action_id] = false

  IGNORE_REFLECT[action_id] = true

  MULTI_HIT[action_id] = true

  SHAKE[action_id] = false

  ANIMATION_SPEED[action_id] = 1.7

  SHORT_RANGE[action_id] = false

  FORCE_MOVE[action_id] = nil

  FORCE_JUMP[action_id] = false

  PLAYER_CT_COST[action_id] = true 

  PLAYER_CAST_TIME[action_id] = 0.1

end

I've matched the Id's to the skills and events on the TOOL map, and I've put in the graphics and named them accordingly. There are no errors that come up and shut down the game. It just doesn't link with the combos...

The weapon ID of the Spear is 12 The ID of the events are:
1st attack is 128
2nd attack is 129
3rd attack is 130

Same with the skills in the database.

I hope the information I supplied was enough to find the problem, and I hope that this isn't asking to much and isn't being obnoxious.
Thanks in advance

Thank you and have a nice day!

~Use code tags next time. Also, just delete me when you see this.
 

Star

Sponsor

I'm not too sure on linking, cause I haven't used that function, but I'm pretty sure why you're seeing only one frame is because your SUFLAGS is really low. If you want to see all frames, use at least 32 for SUFLAGS. I only worked on XAS 3.4 and below, but with linking don't you change something in the SKILL part with
COMBO_ATTACK = {

}
or do the newer versions take that part out?
 

zchin

Sponsor

Hmmm, i think it takes it out, and I looked at the sword one and the surflag was 8... hmmm I will see if the new version took out that part as well.

Thank you and have a nice day!
 
Try doing this....

Change the LINK_ACTION_ID[action_id] = 0 in your script to what tool comes next, not the number of that tool

So it would be

Code:
action_id = 128

  LINK_ACTION_ID[action_id] = 129

Code:
action_id = 129

  LINK_ACTION_ID[action_id] = 130
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top