OK, I am incorporating the globals in to my age, I think I found a flaw in the xAgeIntChange.py.
I noticed the decrement parameter doesn't work.
Inspecting the actual python file, i noticed this:
- Code: Select all
ageSDL = PtGetAgeSDL()
if not boolInc.value and not boolDec.value: # not a counter
stringOp = "set"
intCurrentValue = intSetTo.value
elif boolInc.value:
stringOp = "incremented"
if intCurrentValue < intMax.value:
intCurrentValue = intCurrentValue + 1
elif boolLoop.value:
intCurrentValue = intMin.value
else:
intCurrentValue = intMax.value
elif boolDec.value:
stringOp = "decremented"
if intCurrentValue >[color=#FF0000] intMax.value:[/color]
intCurrentValue = intCurrentValue - 1
elif boolLoop.value:
intCurrentValue = intMax.value
else:
intCurrentValue = intMin.value
Although I am not a python coder, i think this should be inMin.value
I amended the file and renamed it, put it in my pak file and now it works as expected.
Can anyone please confirm this is indeed flawed in the original file and make the neccesary changes ?
Comming this far, I am now presented with another chalange:
I want my animations to respond to play to a certain stage, but starting at whatever position they were in, so I can't use loopstart loopend.
There seem to be a number of solutions here, but I don't know how to use them.
What comes to mind are: resume, playtotime or playtopercentage.
Can anyone tell me how to use these, preferably with an alcscript example.
Thanks in advance!