hey guys I want to make a variable (lets call it “x”) that will start at 0 and end at 100 and increase every 30 seconds by another variable (lets call it “y”). Now “y” is dependent on several other variables, ones that get set higher as time goes, but can also be set lower.
My problem is how would I make the variable “y”?
I don’t know what type of variable to use, or what procedure or whatnot. I know i need a (programming talk coming back) process that will run in the background to check to see if “x” is greater than or equal to 100. But how can I make the “y” variable so that multiple other variables can make it, and at it to “x” every 30 seconds.
my idea goes like this (i want to somehow make this into scripting the game understands)
trigger counter //this is what must run in the back ground constantly, or at least every 30 seconds be called
{
accum x inc y
wait 30000
trigger self_check //checks to see if its over 100
}
//then here are the multiple variables that make up "y"
trigger f
{
accum y inc 1.5
}
trigger d
{
accum y inc .5
}
//... so on
so i guess the question is can i make a variable that can be increased by another variable? and if so what type of variable or what not would i use? ie like an accum or sumthin else…
i hope that wasnt too hard to follow