Members | Sign In
All Forums > Mission Scripting
avatar

Mission Scripting Question (big_message)

posted Nov 24, 2011 03:54:23 by Cmdr.Brandr
Okay....I was trying my hand at scripting. Really just checking out what I thought would be a simple tweak to the the Attact Demo script by Mike Substelny. However, as is ever the case with coding it never does what you intend.

What I wanted to do was make the chapter title appear periodically using a timer. I created my own timer with no problem. Then I simply added the big_message call inside the event handler. After that I reinitialized the timer. Well the timer works just fine and the message will appear but only for a "fraction of a second". It flashes and then goes away. I can only see it if I stare and it's really not even readiable. I doubt the casual observer would even see it.
I've read through the forums but I did not find any references to anyone else having this issue.

Any suggestions?
Thanks
Brandr
Commander Brandr
Commanding Officer of the ship Calamitous Intent

-------------------------------------------------------
Check our crews adventures at http://nerdneerdowells.com
page   1
3 replies
avatar
Martok42 said Nov 24, 2011 18:09:47
My guess would be you reinitializing the timer is what does it. Because it tests if the timer is finished, not if it did finish, so when it resets the timer it wouldn't meet the requirements to be showing the message.

You could have a series of variables instead of one set variable/timer combo, or set multiple timers. You would only have to do two timers and reset the second when the first is finished, and vice versa.
A vital mission, impossible odds and a ruthless enemy, what more could we ask for?

Follow the Star Trek, Into The Breach mod for Artemis: NegativeZone
avatar
Mike_Substelny said Nov 25, 2011 00:28:18
Brandr have a look at "Havoc in the Hamak Sector." That has several pages of opening credits. I think the trick is to give the big message plenty of time to display while the timer is still running, and make sure you use a variable so the message knows when it is displaying and not displaying.

If you can't get it to work with one event then make two events that alternate.
[Last edited Nov 25, 2011 17:12:30]
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Cmdr.Brandr said Nov 25, 2011 01:21:08
Okay thanks I will try that.

brandr
Commander Brandr
Commanding Officer of the ship Calamitous Intent

-------------------------------------------------------
Check our crews adventures at http://nerdneerdowells.com
Login below to reply: