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.

Please Help in Xas ABS

hi guys, I got a problem in the Xas ABS! Always a syntax error happens to me on line 234 when I write this:


#===============================================================================
# XAS - Enemy Config
#===============================================================================
module XAS_BA_ENEMY
# Activate the animation when the enemy dies.
# Duration of the animation proportional to the time
# of collapse, the default time is of 40Frames(2s).
# DEF_ANI = {A=>B, A=>B, A=>B...}
# A = ID of the Enemy.
# B = ID of the Animation.
  DEF_ANI = {
  2=>119,    #Fishman
  3=>121,    #Chibi Devil
  4=>122,    #Scorpion
  5=>120,    #Honeyman 
  6=>119,    #Archer
  7=>121,    #Knight
  8=>122,    #Great Bird  (Boss)
  9=>122      #Great Bird L2(Boss) 
  10=>122    #New  (the new thing that I wrote)
    } 
#-------------------------------------------------------------------------------


10=>122

the 10 meant to be the monster ID and the 122 is the animation ID


problem 2
|________________________


I don't know how to let the enemies use the skills so please help me!!!
 
First of all, this isn't the place to post this. This belongs in the Script Requests sections, okay?

But I know your problem.

#===============================================================================
# XAS - Enemy Config
#===============================================================================
module XAS_BA_ENEMY
# Activate the animation when the enemy dies.
# Duration of the animation proportional to the time
# of collapse, the default time is of 40Frames(2s).
# DEF_ANI = {A=>B, A=>B, A=>B...}
# A = ID of the Enemy.
# B = ID of the Animation.
  DEF_ANI = {
  2=>119,    #Fishman
  3=>121,    #Chibi Devil
  4=>122,    #Scorpion
  5=>120,    #Honeyman 
  6=>119,    #Archer
  7=>121,    #Knight
  8=>122,    #Great Bird  (Boss)
  9=>122      #Great Bird L2(Boss)
  10=>122    #New  (the new thing that I wrote)
    }
#-------------------------------------------------------------------------------

That is your problem. See how there are commas after each line? Well since you added another line,  you need to add a comma to the one that was the last. So here's what you're new script looks like:

#===============================================================================
# XAS - Enemy Config
#===============================================================================
module XAS_BA_ENEMY
# Activate the animation when the enemy dies.
# Duration of the animation proportional to the time
# of collapse, the default time is of 40Frames(2s).
# DEF_ANI = {A=>B, A=>B, A=>B...}
# A = ID of the Enemy.
# B = ID of the Animation.
  DEF_ANI = {
  2=>119,    #Fishman
  3=>121,    #Chibi Devil
  4=>122,    #Scorpion
  5=>120,    #Honeyman 
  6=>119,    #Archer
  7=>121,    #Knight
  8=>122,    #Great Bird  (Boss)
  9=>122,      #Great Bird L2(Boss)
  10=>122    #New  (the new thing that I wrote)
    }
#-------------------------------------------------------------------------------

But please, remember to post in the correct forum next time.
 
Not sure if you reported this, Link in Pink, so I did.

al3itwi, use code tags when showing scripts ==> [ code]insert text [ /code] (without the spaces)
Also, read this tutorial first. It will tell you all you need to know about the XAS ABS.
 

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