Main Menu

CRPL

Started by piggood, July 16, 2018, 06:55:13 AM

Previous topic - Next topic

piggood

new CRPL for survival map... but I don't know what is wrong with it..
can someone help

GoodMorning

This may be more like what you had in mind.


# score.crpl
# Created on: 7/16/2018 7:48:39 PM
# ------------------------------------------
once
    1 ->score
endonce

#self "score.crpl" "score" <-score SetScriptVar #This has no effect - you're setting "score" to "score" on the same core in the same script.

<-score 1 add ->score
#1 Delay #Also, I think, does nothing useful.

SetPopupText ("Current Score: "<-score concat) #This will join the score onto the end of the string.
SetPopupTextAlwaysVisible (True)  #This will work


Although this will do the same thing, as far as you have gone:

SetPopupText ("Current Score: " GetGameTimeFrames concat)
SetPopupTextAlwaysVisible (True)  #This will work
A narrative is a lightly-marked path to another reality.

piggood

Thanks! it worked!