Lua Score Datatype

Case number:699969-995812
Topic:General
Opened by:AsDawnBreaks
Status:Open
Type:Suggestion
Opened on:Saturday, August 24, 2013 - 21:21
Last modified:Saturday, August 24, 2013 - 21:21

Here's what I was attempting to do

local function StartScript(int sScriptSlot)
initScore = current.GetScore()
scriptHS = initScore
scriptStart = true
save.Quicksave(sScriptSlot)
end

Basically, what I want to do is create my own recent bests, defined by me. I was going to do it, but I realized I would have to update the variables every time anything changes. So I propose something like this initScore = structure.Score(how)

On initiation, it is the current score. It would automatically update to the current score when the score changes to your parameter (higher or lower, not sure if there would be anything else). Otherwise, it is just an integer (able to compare).

Thoughts?

(Sat, 08/24/2013 - 21:21  |  0 comments)


Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons