- Dec 7, 2014
- Reaction score
- First Language
- Primarily Uses
I was wondering how would I make my actor's evasion and critical rate appear in the status menu in the luna engine?
I tried to input the critical stat and causes my game to crash.actor.xparam(1) for evasion and actor.xparam(2) for critical... tho they show up kinda weird since they're percentages...
as in I looked at my crit rate normally and it's 7 percent. I looked at it with Luna and it said 0.07. I wouldn't quite know how to go about changing that either unfortunately. I can confirm tho that actor.xparam(whatever xparam number you need) does seem to work.
I just put this code in and it doesn't crash the game, however, it doesn't appear in the Status menu.oh um... that's indentation error. that just means something isn't aligned where it's supposed to be. I ALWAYS use Luna files in Microsoft Visual Studio and whenever I make a bad indentation, it'll mark up everything and tell me where I messed up lol. if I were you, I'd copy and paste a different parameter you already have that's lined up and spaced correctly and then just change the wording where needed. I think in your case CRT is in the wrong spot...
View attachment 151277
this worked fine for me and it's lined up right.
I set all the coordinates to 0 and tried setting them at a random number and it still didn't appear.View attachment 151356
my critical show's up as such... aka 7 percent. but that's also me just throwing out Agility for the sake of testing and throwing Crit in it's place... if I'm thinking about it actually... maybe it's literally just NOT on the screen. did you adjust anything like the x and y coordinates? or is it just nothing there where it should be?
I tried to make the box bigger but the stats didn't appear. I also tried to put "CRI" and "Current CRI" at the bottom with all the other components but that crashes the game.Ok, I THINK I've figured it out? you might need to increase the size of the status box itself to fit ANYTHING extra. it doesn't know off the bat you're trying to add anything extra so it needs more room to show it. so I'd increase the height of the menu and see if that helps. that's the only thing I can think of that's being weird at this point.