[XP] Action Recharge Times (for BABS)

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

Previous topic - Next topic

winkio

I'm back for a little while, so I will update this.  While I'm at it, I'll ask for any other problems/suggestions.

Right now, I need to:

update for the new version of BlizzABS
fix the hotkey positions
add a number countdown

G_G

Dont forget your HUD you posted here too. If you can theres a bug when a party member dies.

winkio

June 30, 2009, 08:38:57 pm #42 Last Edit: June 30, 2009, 09:12:21 pm by winkio
I'm pretty much done updating this, just need to run a few tests, then I'll let one of you test for bugs, and then work on the final.

EDIT: done.

Aqua

June 30, 2009, 09:33:52 pm #43 Last Edit: June 30, 2009, 09:36:51 pm by Aqua
The rate is 10x what it /should/ be.
When I put 40 frames, it should 2 seconds, but gives 20 seconds.

I think in the rate part, you did divided the rate by 2 instead of 20 by accident ^_^""
I can't seem to find that line though XD


Errr... forgot 40 frames = 1 second...
I put 40 and get 20 seconds :P


Edit:
Nevermind... misread the default config @.@

lynchking

February 28, 2010, 02:19:00 pm #44 Last Edit: February 28, 2010, 02:30:30 pm by lynchking
Ok, so. How do i change the amount of cooldown i want each skill/item to have?
Where do i paste this 'when (ID OF SKILL/ITEM/WEAPON/ENEMY) then return (RECHARGE TIME)' in the script?  i cant seem to figiure it out!


Ok, nvm. I got it.
Just copy/paste this underneath itself.
Spoiler: ShowHide
module Skills
    def self.recharge(id)
      case id
      when (Skill Number) then return (Frames 40=1s)
      end
      return 400
    end


Aqua

Um... it's kinda in the script... -_____-

lynchking

Well, now another problem. It is setting all the skills for the same cooldown. Ive tried changing lots of different things and its still the same.
Spoiler: ShowHide
module Skills
    def self.recharge(id)
      case id
      when 1 then return 200
      end
      return 200
    end
      def self.recharge(id)
      case id
      when 7 then return 120
      end
      return 120
    end
      def self.recharge(id)
      case id
      when 57 then return 200
      end
      return 200
    end
  end


Is that not how it should look, becuase they are all set to 5 second skill timer for some reason, even tho they are set to be different? If I'm doing it wrong please explain how I need to change it! Thanks ~

Aqua

You're doing it wrong.
You set it up the same way you set up case statements in Blizz-ABS

lynchking

Hmm... That doesnt really help >.>

I have very limited knowledge with scripting,. Thanks tho, ill look through it and try to figure it out.

lilbrudder917

In your case...
module Skills
    def self.recharge(id)
      case id
         when 1 then return 200
         when 7 then return 120
         when 57 then return 200
      end
      return 200
    end
  end


This is like, the basics of scripting. If you can't even figure this out, I strongly recommend sticking to eventing.

lynchking

Yeah, i figuered it out. I was putting it in the wrong spot, to say the least. Thanks tho!

And yes. I have about the same knowledge with scripting as a boot, or any other inanimate object. :naughty:

Ralphness

ok......i am so using this script^^
thanks alot

winkio

updated to v1.11, now compatible with Blizz-ABS 2.82

mroedesigns

So for some reason this script is crashing on line 226 ("@recharge.dispose") before I can get the chance to test it.

It crashes after I leave the menu from assigning a skill to the hotkey bar, with a NoMethod error.

nathmatt

just change that line 2
@recharge.dispose if @recharge != nil
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


winkio

Quote from: mroedesigns on January 08, 2011, 06:33:18 pm
So for some reason this script is crashing on line 226 ("@recharge.dispose") before I can get the chance to test it.

It crashes after I leave the menu from assigning a skill to the hotkey bar, with a NoMethod error.


That probably happened because you loaded a savegame from before you used the script when the hotkey bar was visible.  Use a new game.

mroedesigns

Quote from: winkio on January 09, 2011, 05:14:13 pm
That probably happened because you loaded a savegame from before you used the script when the hotkey bar was visible.  Use a new game.


Nope, it was a new game. Nathmatt's fix worked, though.
Only other thing is that if a skill is used when its recharging, it still displays the damage (0, of course). Is there any way it can be modified so that if it's recharging it doesn't show anything?

impulszero

one question: i get this error:

Script"Blizz-ABS Recharge Time" line 94: ArgumentError occurred.
wrong number of arguments(2 for 1)


I removed rest of the scripts except Blizz-ABS , but i still getting this error. Any idea what is wrong?
<br /><br />Order is for idiots, Genius can handle Chaos.

winkio


impulszero

i see, i forgot to update BABS (still on 2.79)
ty
<br /><br />Order is for idiots, Genius can handle Chaos.