Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: sirsniffy on May 26, 2008, 03:38:00 pm

Title: [RESOLVED] Shuriken Help - Blizz ABS
Post by: sirsniffy on May 26, 2008, 03:38:00 pm
Hello,
I need some help with my Shuriken weapons. I am using Blizz-ABS 1.73. I can get the weapons to fly out of the character, but then it sort of comes back, or just stays there on the screen in weird places.
(http://i34.photobucket.com/albums/d141/sniffysprites/prob.png)

The character throws out the weapon, and it goes off the screen but then it materializes at a point on the screen. I know I may need to tweak the ranges, but I have no idea how to do that. Can anyone help?
Thanks
Title: Re: Shuriken Help - Blizz ABS
Post by: Aqua on May 26, 2008, 03:45:56 pm
Get version 1.98 XD
It has a configuration program

And the shuriken stay there because you didn't hit anything with them.
Which allows you to pick em up again.
Title: Re: Shuriken Help - Blizz ABS
Post by: sirsniffy on May 26, 2008, 04:04:09 pm
Thanks Aqua. I tried version 1.98, but it is kind of buggy. I kept getting no method errors so I went back to the previous version. As for the shuriken issue, is there any way I can make the weapon not appear after being thrown at nothing? In other words, make it unable to be picked up again?

Thanks for helping me.
Title: Re: Shuriken Help - Blizz ABS
Post by: Aqua on May 26, 2008, 04:11:10 pm
Um.. if you got the no method errors... then you probably did something wrong with the config...

To make it so you can't pick it up again... you'd need it edit Blizz's coding for those projectiles... XD
Title: Re: Shuriken Help - Blizz ABS
Post by: sirsniffy on May 26, 2008, 10:38:37 pm
I re-scripted it using version 1.98, and now all my weapon types seem to be screwed up. My boomerang characters have changed into sword types. For example, when I use a certain character, I get the error message 'animation not found character_atk0.png'

The designation for boomerang weapons is character_atk3.png, but somehow it defaulted to character_atk0.png. I can't get my characters boomerang weapon to show up on the screen.

Title: Re: Shuriken Help - Blizz ABS
Post by: Aqua on May 26, 2008, 10:56:39 pm
You shouldn't really mess with the scripts unless you know what you're doing... lol
It'd be best if you replace that with the original.

I'll try to see if I can work this out for you.
Title: Re: Shuriken Help - Blizz ABS
Post by: Blizzard on May 27, 2008, 02:21:10 am
Just like Aqua said. You should either use a fresh copy of 1.73 or 1.98. Since 1.73 isn't available anywhere online anymore, I uploaded it for you:
http://www.sendspace.com/file/1gd8sn
That's only the script, BTW, I didn't keep earlier versions of the manuals.

Can you post a few error messages you are getting with 1.98? Maybe I can find out what you are doing wrong.
Title: Re: Shuriken Help - Blizz ABS
Post by: sirsniffy on May 27, 2008, 11:38:20 am
Hey,
Thanks again for the guidance. I am not getting script errors anymore thanks to doing a fresh re-script. However, my weapon types are still having the animation not found error messages. For example, I have a character who uses a boomerang.

I name the character "character_atk3.png" with "3" being the designation for boomerang weapons.

When I start the game, and press the action button, I get the error message:
'character_atk0.png not found'

Somehow, all the characters default as if they were sword users or manual hitters (designation 0). The system should look for "character_atk3.png" but it looks instead for "character_atk0.png" I add what the system wants, but then there are no weapon graphics (no boomerangs or bullets), just the character's swinging animation.

This is not a script error per say, but maybe I have to tweak something in the script that turns on weapon types? currently, the only types it defaults to are those of type 0 = swords.

Thanks again for the help on this.
Title: Re: Shuriken Help - Blizz ABS
Post by: Aqua on May 27, 2008, 05:34:09 pm
Did you define the weapon type in the script?

It's in part 1 (if you're using 1.98)
Title: Re: Shuriken Help - Blizz ABS
Post by: sirsniffy on May 27, 2008, 07:41:45 pm
Okay, I got it to work! I had to create a 'Franken-Script' using pieces of Blizz older versions. So far it works just fine. It turns out I didn't define the weapon types. Once again, thanks for the help guys!
Title: Re: Shuriken Help - Blizz ABS
Post by: Aqua on May 27, 2008, 07:47:47 pm
If you use 1.98... you don't need to frankenscript it...

Part 1 has a whole section on defining weapons.

It starts Line ~140 or just search BlizzABS::Weapons in Part one.
Title: Re: Shuriken Help - Blizz ABS
Post by: sirsniffy on May 27, 2008, 08:31:44 pm
Maybe I just didn't activate it. I looked and looked but couldn't find it. This is what I inserted and then everything worked:

Quotedef self.range(id)
      case id
      # START set up weapon ranges (when ID then return RANGE)
      when 1 then return 1
      when 2 then return 1.2
      when 3 then return 4.5
      when 4 then return 5.7
      when 5 then return 4
      when 6 then return 5
      # END
      end
      return 1.0


Whatever happened, everything works perfectly now...though I still have my original problem with the item/weapon staying on the ground...lol! I will keep poking around and try to fix that. I admit, I don't know squat about scripting, but Blizz's scripts are so well laid out, I can usually figure stuff out.

thanks again!
Title: Re: Shuriken Help - Blizz ABS
Post by: Aqua on May 27, 2008, 08:43:06 pm
well... having the weapon/item laying on the ground isn't a bug; it's a feature of the self-consuming projectile weapon.  (unless it's a boomerang weapon then it's a bug; get 1.98 XD)

Lol I'm really stressing about getting 1.98
Title: Re: Shuriken Help - Blizz ABS
Post by: Blizzard on May 28, 2008, 02:32:02 am
Yeah. Imagine you throw a shuriken and it doesn't hit any target. It simply falls to the ground and you can pick it up again. :)
Title: Re: Shuriken Help - Blizz ABS
Post by: sirsniffy on May 28, 2008, 10:07:10 am
Hola. I do have 1.98, and while it does have a weapons module, I don't see any of the weapon range definitions or the consumable definitions.  I don't see the lines that code for individual weapon types. So any character who is not a bare hand or sword character will get animation errors when you try to use their weapons.

I copied and pasted some script from the Sir_Lag_A_Lot demo, specifically the lines in the weapons module which set the weapon types and ranges, and the consumable items, and everything worked sort of okay at first. Now the weapon types seem to be screwed up again.  For example, if I set a character in the actor screen as a projectile character, the system automatically makes it a Lance using character and searches for the 'Lance' designation "character_atk2.png" graphics. I dunno why this happens.

Would you guys recommend me just starting from scratch again? I am not sure why I can't get the weapon types to work correctly. I read the manual, but I still can't figure out why this is happenning. ???
Title: Re: Shuriken Help - Blizz ABS
Post by: Aqua on May 28, 2008, 04:08:06 pm
Use the configuration application...
It'll help a lot XD
Title: Re: Shuriken Help - Blizz ABS
Post by: Blizzard on May 29, 2008, 05:38:59 am
Yeah. "Blizz-ABS Config.exe" can help you configure all the types and all other configurations in a visual interface that is easy to understand. All you have to do in the end is to generate (there's an option in the main menu on top) a configuration script which you simply copy-paste instead of part 1 of the script. :)
Title: Re: Shuriken Help - Blizz ABS
Post by: sirsniffy on May 29, 2008, 04:14:09 pm
Everything works like a DREAM! I also changed the weapon type from a bullet type to a simple non-consuming projectile type and now I don't have the other problem with items staying on the screen.

Bravo Blizz!
Thanks!