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.

Wrong number of arguments

Status
Not open for further replies.

arion

Member

I'm using the KGC active count battle system (number one), and i've been trying to add one of the "HP/SP Alter" Scripts, which basicly add graphical animated bars underneath the HP and SP values during battle. (as far as i know)

The first error was solved, but gave birth to another.

The bars display properly now, and no error messages prevent the battle from happening.
However, the HP and SP values that are displayed above the bars for each character only remain in position untill HP is lost. Then the HP amunt for that character (the one who recieved damage) remains, while the other values disapear.

I looked for something in the script that might be disposing the value when it isn't immediatly needed, but i hardly understand most of it.

Updated demo:
http://www.box.net/shared/5lva2qqdx1
 

topman

Member

I maybe wrong but usually there should be co-ordinates included in that kind of syntax line
for example
Code:
draw_actor_hp(actor, 283, 175)

I may be wrong I am learning.
 
Line 1037, "draw_actor_hp(actor)", needs two more arguments inside the brackets for the x and y coordinates at which to draw; e.g. draw_actor_hp(actor,32,48).

(This is provided the method hasn't been rewritten by the custom scripts you're using.)


EDIT: Yeah, what topman said. :P
 

arion

Member

The first error was solved, but gave birth to another.

The bars display properly now, and no error messages prevent the battle from happening.
However, the HP and SP values that are displayed above the bars for each character only remain in position untill HP is lost. Then the HP amunt for that character (the one who recieved damage) remains, while the other values disapear.

I looked for something in the script that might be disposing the value when it isn't immediatly needed, but i hardly understand most of it.

Updated demo:
http://www.box.net/shared/5lva2qqdx1

Yes, it required coordinates, which after a long time of exploring the script, i managed to find.
(thanks for that guys)
Hope you don't mind me bugging you with the above question.
 
Status
Not open for further replies.

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