Jump to content

Photo

Counter up/down by percentage in strings


  • Please log in to reply
2 replies to this topic

#1 notmichaeljfox

notmichaeljfox

    Newbie

  • Members
  • Gender:Male

Posted 16 November 2021 - 07:26 AM

Hi. I'm trying to create some strings where your counters go up or down by a certain %, using the \13, \14 &\15 control codes. However, I can't get it to recognise figures between 1-99%.

 

For example, if I use \13\0\30 (or 13\0\030) I thought hearts would increase by 30%, but nothing happens.

 

If I use \14\0\30 (or \14\0\0\30) I think hearts should decrease by 30%, but nothing happens.

 

If I use \15\0\50 to set a life meter at 50%, hearts are set to 0 and the character dies.



#2 Emily

Emily

    Scripter / Dev

  • ZC Developers
  • Gender:Female

Posted 16 November 2021 - 08:25 PM

......this..... has just never worked. What the hell?

For the record, only 0% and 100% work, because it's rounding to the nearest 100% for some absolutely insane reason.

 

It'll be fixed for the next alpha.


  • Bagu and notmichaeljfox like this

#3 notmichaeljfox

notmichaeljfox

    Newbie

  • Members
  • Gender:Male

Posted 17 November 2021 - 04:50 AM

It may be insane but it's also a bit funny (at least for me because I'm not a dev). :lol:

Thanks for being so quick to help me Emily.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users