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 help(weapons are teleporting me? O.o

I keep having trouble with the gun teleporting me to another map. Also some weapons just dont work and give me an error.
script "xas system" line 2231: TypeError accurred. nill cant be coerced into fixnum. I get this with most weapons.
Also when I use the tmg9 it says no item, though there are bullets in the inventory. It works fine in the Xas tutorial, just not in my game.
Suggestions?
 
@dylanf3 - anything sucks when you don't know how to use it... this thread is for support, not for an opinion..

@xomiegrinn - how did you go about setting up your game? did you port over XAS to your game or
did you make your game out of the XAS demo...?? and which version of XAS are you using???

~g/A\/\/\|E|F/A\(C|=
 
I am using xas hero edition. I copied all the graphic files, script data and the tools map over to my game. I changed the names of the weapons(bronze sword id01 ect) and nothing really works as far as combat. =/
And it did the same thing with and without additional scripts(synths actor customization and a skill shop scrip)
 
ahh ~ first go into your script database [F11]
now look for the "XAS - System" script to verify your version. Hero 3.4? 3.5? 3.6?

unless you decide to stop, copy your game into the XAS demo... (3.6 is the latest)
then you must continue with your current project as so...
since you've copied XAS into your game then there's a few things you must do...

1.) Properly setup your TOOL map...
just copy the TOOL map from the XAS demo to your game.

if you have done this already then verify the map_id for your TOOL map
(by default in the XAS demo the TOOL map_id = ID:001)
right click on the map for map properties and verify the map ID.
what ever the ID is make sure it matches with this line of code in your
MISC script
Code:
  ACTION_TEMPLATE_MAP_ID = 1

let me know if you have done this or need help as we will take this one step at a time
if need be.

~g/A\/\/\|E|F/A\(C|=
 
Alrighty. I ended up just copying all the game info and maps into 3.6. I'm getting an error code with the tmog99 converted into "revolver". Its this error.
Xas_system line 5206 no method error occurred undefined method< for nilclass.
Also is there a way to set it so on certain maps it DOESN'T show tell your location?

And tool map IS map ID 001
 
Alrighty. I ended up just copying all the game info and maps into 3.6. I'm getting an error code with the tmog99 converted into "revolver". Its this error.
Xas_system line 5206 no method error occurred undefined method< for nilclass.
@xombiegrinn - did the tmog99 work before you converted it into revolver?

when you make a change to a XAS weapon be certain that all changes are consistent with:
-the event on the tool map
-the script for that weapon
-and your database settings for that weapon, (classes, weapon, skills)

if you're going to re-name it or copy to make another weapon like it your settings must match.
you must make the proper settings in the database (skills,items) and the ITEM script if they use ammo as well...

Also is there a way to set it so on certain maps it DOESN'T show tell your location?[/quote
in the MOG-Location Name script you will see this line of code...
Code:
LOCATION_SWITCH_OFF = 14
for the map you want to enter and not display the name,
create an event
set parallel process
in the event commands
control switch "14" off
self switch A
make another page
check self switch A

hope this helps...~g/A\/\/\|E|F/A\(C|=
 

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