Jump to content

Photo

HP instead of hearts


  • Please log in to reply
35 replies to this topic

#16 Master Maniac

Master Maniac

    Earth, Wind, Fire, and Water.

  • Members
  • Real Name:kris

Posted 29 September 2010 - 03:59 PM

Why not just use Link->HP?

Each heart is worth 32 HP. So for each HC you get, you'll have (x) hp + 32. And you can make custom life bar graphics to look like a meter, instead of hearts.


#17 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 29 September 2010 - 04:00 PM

He wants a numerical counter. That is impossible without a little scripting.

#18 Smiles the Death Bringer

Smiles the Death Bringer

    The smiling demon!

  • Members
  • Real Name:William
  • Location:Dream Land

Posted 29 September 2010 - 04:02 PM

TMP, LINE 4: ERROR S09: VARIABLE CR_SCRIPT1 IS UNDECLARED

-- PRESS A KEY --

#19 Master Maniac

Master Maniac

    Earth, Wind, Fire, and Water.

  • Members
  • Real Name:kris

Posted 29 September 2010 - 04:04 PM

O_o Why numerical?

In that case, you should make some minitiles. Basically, take 10 tiles, for the numbers 0-9. Make the numbers in the top left corner of each tile, no more than 8 pixels wide each. I may be able to fix up something for you as far as a counter script goes using it. icon_wink.gif

Tbh, it won't be too hard, and won't take a custom subscreen.


#20 Smiles the Death Bringer

Smiles the Death Bringer

    The smiling demon!

  • Members
  • Real Name:William
  • Location:Dream Land

Posted 29 September 2010 - 04:07 PM

It's a quest based on an RPG with a numerical heath meter

I would just rather do it this way (besides I need to learn how to use scripts theres a whole bunch I want to try out but couldn't figure out how)

#21 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 29 September 2010 - 04:07 PM

Got it! I just changed the name "script1" to its value (7).

Use this code:
CODE
global script slot_2{
void run(){
  while(true){
    Game->Counter[7] = Link->HP;
    Waitframe();
        }
    }
}


And set it to the slot called "Active". Enjoy!
(And yes, I tested it myself this time)

Edited by MoscowModder, 29 September 2010 - 04:09 PM.


#22 Master Maniac

Master Maniac

    Earth, Wind, Fire, and Water.

  • Members
  • Real Name:kris

Posted 29 September 2010 - 04:10 PM

QUOTE(MoscowModder @ Sep 29 2010, 01:07 PM) View Post
Got it!

Use this code:
CODE
global script slot_2{
void run(){
  while(true){
    Game->Counter[7] = Link->HP;
    Waitframe();
        }
    }
}


And set it to the slot called "Active". Enjoy!
(And yes, I tested it myself this time)


What about drawtiles? It won't display anything as it is, though you have the functional part somewhat down.

Though you wouldn't need to set Game->Counter[7]. If it's not going to have anything done to it mathematically, then I see no reason to assign it to a variable.

When I figure out how to work digits, I'll post up something.


#23 Smiles the Death Bringer

Smiles the Death Bringer

    The smiling demon!

  • Members
  • Real Name:William
  • Location:Dream Land

Posted 29 September 2010 - 04:11 PM

Worked thanks for all the help guys I aprecheate it... appriciate ugh I hate spelling that word

Edited by Ovasity, 29 September 2010 - 04:11 PM.


#24 SpacemanDan

SpacemanDan

  • Members
  • Location:Ontario, Canada

Posted 29 September 2010 - 04:14 PM

QUOTE(Master Maniac @ Sep 29 2010, 04:10 PM) View Post

QUOTE(MoscowModder @ Sep 29 2010, 01:07 PM) View Post
Got it!

Use this code:
CODE
global script slot_2{
void run(){
  while(true){
    Game->Counter[7] = Link->HP;
    Waitframe();
        }
    }
}


And set it to the slot called "Active". Enjoy!
(And yes, I tested it myself this time)


What about drawtiles? It won't display anything as it is, though you have the functional part somewhat down.

Though you wouldn't need to set Game->Counter[7]. If it's not going to have anything done to it mathematically, then I see no reason to assign it to a variable.

When I figure out how to work digits, I'll post up something.


No need for drawtiles. It's changing a counter, so the counter on the subscreen will change automatically.


#25 Master Maniac

Master Maniac

    Earth, Wind, Fire, and Water.

  • Members
  • Real Name:kris

Posted 29 September 2010 - 04:16 PM

Ahh yeah, that's right. Forgot about that being on subscreens now. XD

But, I think Ima make my script anyway. That way I can post it to contain HP for multiple characters on the screen XD


#26 Smiles the Death Bringer

Smiles the Death Bringer

    The smiling demon!

  • Members
  • Real Name:William
  • Location:Dream Land

Posted 29 September 2010 - 04:17 PM

I ran in to another problem how do I make the counter and have it show up on the passive subscreen

#27 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 29 September 2010 - 04:20 PM

Go to Quest -> Misc Data -> Subscreens -> Your Passive Subscreen -> Edit -> New -> Counter.
Set item 1 to Script 1, ignore the other 2. Set digits to however many digits you will need (3 or 4?), set the other properties to whatever you want. This will produce an undecorated counter.

From there you can add a text description, tack it on to the end of your heart meter, put it next to a minitile/tile block, whatever.

#28 Smiles the Death Bringer

Smiles the Death Bringer

    The smiling demon!

  • Members
  • Real Name:William
  • Location:Dream Land

Posted 29 September 2010 - 04:23 PM

Done (forgot to put the script on active)

And how the hell do you spell apreciate

#29 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 29 September 2010 - 04:34 PM

Appreciate?

You're welcome :}

#30 Smiles the Death Bringer

Smiles the Death Bringer

    The smiling demon!

  • Members
  • Real Name:William
  • Location:Dream Land

Posted 29 September 2010 - 04:48 PM

Wow I overlooked something..sorry but could you make the same thing but with MP?


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users