[XP] Action Recharge Times (for BABS)

Started by winkio, December 11, 2008, 07:25:43 pm

Previous topic - Next topic

Juan

Dropbox Who need luck when you can make your own.
3ds Friend code: ShowHide
 4468 1422  6617

winkio

oops, forgot to put that there.  sorry.  Yep, below.

Galatea


Subsonic_Noise

I got an error message:

Script 'Recharge' line 92: NameError occured.
undefined method 'skill_penalty' for 'Map_Battler'

I use BlizzABS 2.53.

Could someone please help me?

Blizzard

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.

Subsonic_Noise

It is below BABS. I'm not that stupid. ^^

My Script order is:
Spoiler: ShowHide
Light and Shadow System
Particle System
Ccoa Weather
AMS
Slanted Bars
Text shadow
Autoswitcher
Credit Script
Ccoa Tileset Swap
Light Cones
Sprite_Mirror
F12 Pause
Swimming Script (I'll delete this, its not compatible with BABS)
Quicksave
More Layers
Chaos Project Debug

BlizzABS 1
BlizzABS 2
BlizzABS 3


Recharge Time
Touch Damage
Kill Count
Actor Change
Secondary Weapon

Dialogue from txt

Blizzard

I don't know. I didn't remove the skill_penalty method as far as I remember. What about your savefiles? You shouldn't use savefiles from before adding the scripts.
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.

Subsonic_Noise

The error appears before the title screen comes up. And I looked at the BABS script, skill_penalty is definitly there  :???:

Blizzard

Ah, I think I know what's wrong. I have moved the method into the subclasses Map_Actor and Map_Enemy. I needed it because of checking if the proper action sprites are turned off.
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.

Subsonic_Noise

June 03, 2009, 12:50:22 pm #29 Last Edit: June 03, 2009, 01:03:23 pm by Subsonic_Noise
I couldn't fix it by just changing the class, i got a new error when I tried to start a new game:

Script 'BlizzABS Part 3' line 2590: ArgumentError occurred.
wrong number of arguments(1 for 0)

def initialize
   # call superclass method for first actor
  super(0)                                 <= thats line 2590
 end

It seems that the recharge script doesn't think that a zero is super.

Blizzard

It means that the player class was changed or something like that. Sorry, but I can't help you in short term.
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.

Subsonic_Noise

Can you help me in long term, then? XD

Blizzard

Nope. :P Pray that winkio drops by or that Aqua helps you. :P
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.

Aqua

June 03, 2009, 05:10:25 pm #33 Last Edit: June 03, 2009, 07:59:19 pm by Aqua
D: I'll help...

Just not now though... I wanna rest @.@

I should do it soon though, as I need it for my game (which I hope I can work on a lot now XD)


Edit:
Okay I put it up.

It works, but I'm not sure if I really made it better though...
I just copied & pasted the methods into Map_Actor and Map_Enemy and changed the indexes with the initialize method...

Lol... someone wanna check my code? XD

Subsonic_Noise

June 04, 2009, 06:17:48 am #34 Last Edit: June 04, 2009, 08:11:15 am by Subsonic_Noise
It doesn't crash anymore so I suppose it works, I haven't cofigured it jet though. So thank you for the help  :D
(I just learned how to level up someone, so level ++ for you^^)
But I've got another problem  :roll: : The Hotkey Bar now is on the bottom of the screen which doesn't work with
the MOG HUD I'm using and in the Hotkey assignment menu the little arrow for assigning still is in his normal position  :???: is there a way to change that in the skript?

Sorry for all the problems  :^_^':

EDIT: Nevermind I figured it out by myself. I just had to replace the y value in line 274 with 0.
Perhaps you should add that to the first post?

# set x and y position
self.x, self.y, self.z = 160, 0, 1100

Aqua

Ah right... Wink had the hotkey placed where his custom HUD is...

I'll change it later XD

lekter

June 09, 2009, 10:06:48 pm #36 Last Edit: June 09, 2009, 10:10:30 pm by lekter
Is it possible to have the recharge timer like this: ???


I mean, the seconds remaining drawn over the icon of the skill as a number.



Also, how do i put the hotkey bar back into its place????

Spoiler: ShowHide


BTW: Sorry for my very very bad english =P




G_G

I always wondered what this did. What does it exactly do? I'm really stupid I know...

Aqua

It doesn't allow you to spam skills.

Say skill A has recharge time of 20 seconds.
You can only use skill A every 20 seconds.

G_G

Oh like on some mmo's that makes more sense :P like Cabal for example. Phss I wish I woulda known that earlier xD