[XP] Blizz-ABS

Started by Blizzard, January 09, 2008, 08:21:56 am

Previous topic - Next topic

Blizzard

Find this line in part 2 (it occurs twice, should be somewhere close to line 4700):

Input.trigger?(Input::Key[i.to_s]) &&


Change both of them to this:

(Input.trigger?(Input::Key[i.to_s]) || Input.trigger?(Input::Key["NumberPad " + i.to_s])) &&

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

gmaker808

Hello ABS lovers I have been using this script and was in the middle of testing my game when i ran across an unsolved error please some one help im very new to scripting and cant figure this out.

Script 'Game_Battler 3' Line 139: TypeError Occurred
false cant be coerced into fixnum.

please help. thank you.

KK20

It would help considerably if you told us
1) What exactly did you do and when the error popped up and
2) Other scripts you may be using

That error points to a line in calculating skill damage:
rate += (user.int * skill.int_f / 100)

Clearly, you must have something else going on in your project. Why it would stop here makes no sense to me.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

gmaker808

If I use a skill on an enemy it works the first time but then when I use it again the game crashes and that error pops up
Script these are the scripts I'm using and it's in this order.
-------------------------------------
CCoa's UMS
-------------------------------------
Blacksmith Configuration
-------------------------------------
Tons of add ons
Part1
Part2
Part3
-------------------------------------
ABS PART1
ABS PART2
ABS PART3
ABS fixes
Active action info
Easy party switcher
EXP in HUD
Hotkey number modifier
(*) Bestiary
Bestiary Blizz-ABS plugin
-------------------------------------
Easy overdrive system
action recharge time
-------------------------------------
Legacy class change
Job stat modifier
(*) stat distribution system
-------------------------------------
Rain of add-ons
-------------------------------------
Show event name
Advanced shop status window
Item storage
Dynamic gardening
-------------------------------------

G_G

Try posting the error. That'd be a little more helpful.

KK20

@G_G
QuoteScript 'Game_Battler 3' Line 139: TypeError Occurred
false cant be coerced into fixnum.

:huh:

Anyways, from that list of scripts, it's too hard to tell right off the bat what it is. I think you're better off uploading a demo.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

G_G

Derp. My bad, I guess I should have read the previous posts. xD I didn't realize he had already posted here.

Vexus

December 22, 2012, 08:29:53 pm #4907 Last Edit: December 22, 2012, 08:37:47 pm by Vexus
Hi, I'm testing the combat in my project and would like some insight on how to remove the text when you get hit/attack.

Don't want to show how much damage you deal or get dealt. (That's what the hud is for.)

Thanks.

[Edit]

Also how come the enemy doesn't stay in the same position after it attacks?

First I had knockback on and removed it now after it attacks me it goes away then comes again.

How to solve this?

Thanks
Current Project/s:

gmaker808

I posted the link to my game on the bottom theres really not much but test maps at the moment if you could please take a look and hopefully find the problem.

http://www.mediafire.com/?g9f2sa3pyg23z6m

KK20

December 23, 2012, 01:40:11 am #4909 Last Edit: December 23, 2012, 02:02:42 am by KK20
After playing around with the data files (because, for some reason, I was getting the "This project is from an old version of RPG Maker and cannot be loaded" error), I figured it out. The problem was in Rain of Add-Ons. The culprit:

if  skill.int_f = 0 #...and rest of code

If you go to lines 257 and 489, please add another '=' so that it looks like

if  skill.int_f == 0 #...and rest of code


I went ahead and fixed that in the original forum post.

@Vexus
Part 3, Line 4959. Directly below the super, put
self.visible = false

The other, I think, is just how the AI is designed: run in, attack, and run back before the enemy can counter. I have no idea how the AI is written (nor am I willing to study it) and cannot help with that.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Vexus

December 23, 2012, 05:05:36 am #4910 Last Edit: December 23, 2012, 10:08:07 am by Vexus
Cool thanks that worked.

So I was thinking on the 2nd one since if you leave knockback the enemy comes back again instead of running away how would a "stun" do in this regard?

So after it attacks the enemy gets stunned for x time and resumes again.

Dunno I'm not a scripter but I kinda see it weird as this is being done for zombies in my project and they certainly wouldn't run away then come again :/

[Edit]

Also trying to give skills to enemies but they either get ignored or if I remove the default attack they wander around and do nothing.


Uhm wth?
Current Project/s:

KK20

No it doesn't work. Stunning only stops the processing of the monster's AI, meaning after it attacks and gets stunned, it is still programmed to run away as soon as it can move again.

Did you make sure to set a scope for the skills? All new skills default to 'None'.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Vexus

Ops you where right didn't set scope  :shy:

Anyway it's really a shame regarding the enemies running back after they attack and come again specially for a zombie game like I'm doing :/

Thanks for the help anyway.
Current Project/s:

KK20

lol got bored and found out where it happens. Part 2, Line ~6295
char.move_away_random(ai.target, false, ai.act.range)

Comment that out.

I tried replacing that with a move_toward but it still moved weird.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

gmaker808


Vexus

Cool!

Thanks, you're awesome :)
Current Project/s:

Felix0

I'm running into an error where when using the combo feature of Blizz-ABS. The Skill command doesn't work if the person doesn't have the skill known. Yet in the Blizz-ABS manual it states it works as a forced action.

winkio

Hm, it seems I forgot to save a change, because I remember testing that functionality, but it is clearly not in there.  It might have been overwritten or something.  Anyways, on line 1176 of part 2, change from this:

@ch.use_skill($data_skills[command[1]])


to this:

@ch.use_skill($data_skills[command[1]], true)


Let me know if that doesn't solve the problem.

Vexus

Say, would it be possible to have corpses on the ground not passable?

I find it weird that when an enemy dies the corpse is over your character and passable.

I also tried using a script that forces Z value on events but it seems to not work on the corpses.

Any idea what to do?

Thanks
Current Project/s:

LiTTleDRAgo

Quote from: Vexus on January 06, 2013, 05:22:43 am
Say, would it be possible to have corpses on the ground not passable?

I find it weird that when an enemy dies the corpse is over your character and passable.


it will create glitch (ex, you killed all the enemies around you but now you're stuck because you can't move)