Launching a script, stopping a timer
Posted: Fri Aug 22, 2014 5:56 pm
Hello All,
Newbie question here. Been learning scripting for the past two days and I'm hitting some challenges I can't seem to resolve or find answers on these forums. So here goes:
I have this script designed to "wipe" the default party and create a custom party of four champions for my mod dungeon. So far, the script works in facts that it does what it needs to: sets the champions names, race, class, portraits, equips them with the gear I want them to have, even gives them some skill spoints (gives 10 skill points to each champions to be assigned by the player) to raise their abilities a bit.
My script is launched through a TIMER. I have a timer set to a 1-second delay that begisn the game activated. This means (I think) that once the game launches/spawns, the timer runs it's 1-second delay and then launches my script, which creates the party. It all happens within 1-second from game star, so it's "transparent" to the player.
My BUG: The timer seems to keep running, which means it re-launches the script every seconds!! The effect is that the 10 skills points keep incrementing every seconds and the champions keep "levelling" forever ...
QUERY: How do I make the timer and/or script from activating past the 1st (and only) iteration ?
Newbie question here. Been learning scripting for the past two days and I'm hitting some challenges I can't seem to resolve or find answers on these forums. So here goes:
I have this script designed to "wipe" the default party and create a custom party of four champions for my mod dungeon. So far, the script works in facts that it does what it needs to: sets the champions names, race, class, portraits, equips them with the gear I want them to have, even gives them some skill spoints (gives 10 skill points to each champions to be assigned by the player) to raise their abilities a bit.
My script is launched through a TIMER. I have a timer set to a 1-second delay that begisn the game activated. This means (I think) that once the game launches/spawns, the timer runs it's 1-second delay and then launches my script, which creates the party. It all happens within 1-second from game star, so it's "transparent" to the player.
My BUG: The timer seems to keep running, which means it re-launches the script every seconds!! The effect is that the 10 skills points keep incrementing every seconds and the champions keep "levelling" forever ...
QUERY: How do I make the timer and/or script from activating past the 1st (and only) iteration ?