Making a scoring system, have the score defined as a long int, etc. Having problems actually displaying the score on the HUD. My idea was to create a hud_help_text for every possible score (right now multiples of 50 between 0 and 10k) which I did, and then used a script to display them when the score is whatever
ex:
Problem is I already have a script about twice as long as longcat, and I can't even fit the 50-10k score thing in because I guess I'm hitting some sort of limit for script length (~3300 lines I start having problems) So I'm trying to figure out a better way to do this, but I'm pretty much drawing a blank.Code:(cond ((= score 7200)(hud_set_help_text score_7200)) ((= score 7250)(hud_set_help_text score_7250)) ((= score 7300)(hud_set_help_text score_7300)) )
I thought of trying something like:
Is there any way to do something like that, so that'd I'd only need 1 line and it would pull the value of the score integer variable and input it in the place after the underscore? It seems like it should be possible but I can't figure it out.Code:((= score[variable] #)(hud_set_help_text "score_"score[variable] ))
Hell even another type of scoring system would be fine too.




Bookmarks