October 17, 2002, 13:30
|
#1
|
Prince
Local Time: 09:30
Local Date: November 1, 2010
Join Date: Nov 2001
Posts: 437
|
Duration
I've been looking through the SLIC codes in the many mods I've downloaded and I noticed that no one seems to have successfully used the Duration command in a Messagebox.
It seems that Duration should say how long a message remains in the message box before it can be deleted. however, it does not do this at all, the message stays turn after turn unless you left click it. Am I misunderstanding the use of the Duration command?
The only text I'm aware of that I can't delete right away is the initial "Diplomod 3.x" pop-up and the Earthquake pop-ups, but neither of these SLIC codes use Duration.
Any help?
|
|
|
|
October 17, 2002, 13:42
|
#2
|
Super Moderator
Local Time: 11:30
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
Quote:
|
Originally posted by ahenobarb
It seems that Duration should say how long a message remains in the message box before it can be deleted. however, it does not do this at all, the message stays turn after turn unless you left click it. Am I misunderstanding the use of the Duration command?
|
And I thought this Duration function kills the message automaticly after n turns. So the duration function removes a message after a certain number of turns, just replace n by any integer:
Quote:
|
From the SLIC documentation
VOID Duration(turns)
Kill this message automatically in n turns.
|
Quote:
|
Originally posted by ahenobarb
The only text I'm aware of that I can't delete right away is the initial "Diplomod 3.x" pop-up and the Earthquake pop-ups, but neither of these SLIC codes use Duration.
|
That is actual a bug I don't know what it causes it but after some time these messages disappear. I don't know if the duration function work there are actual a lot of message boxes in the original script.slc that should disappear after a turn or two.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
October 17, 2002, 14:07
|
#3
|
Prince
Local Time: 09:30
Local Date: November 1, 2010
Join Date: Nov 2001
Posts: 437
|
Quote:
|
Originally posted by Martin Gühmann
VOID Duration(turns)
Kill this message automatically in n turns.
|
Thanks for the response, Martin. It's good to know that the Earthquake thing is a bug, I couldn't figure out why it wouldn't remove the message by looking at the code. SLIC sometimes seems to have almost as many bugs as the Temple of Doom.
The Duration command doesn't work in any of the code I've tried with it. Even for simple stuff like:
Code:
|
Messagebox ‘testing’ {
Text(ID_Text);
Duration(2);
} |
I guess it's not functioning? Can anyone confirm this, or am I doing something wrong?
|
|
|
|
October 18, 2002, 05:10
|
#4
|
Prince
Local Time: 11:30
Local Date: November 1, 2010
Join Date: Sep 2002
Location: Keep honking... I'm reloading.
Posts: 351
|
I’ve tried getting Duration to work – but the messages just won’t go away. I don’t think it works.
__________________
If something doesn't feel right, you're not feeling the right thing.
|
|
|
|
October 18, 2002, 09:53
|
#5
|
Prince
Local Time: 09:30
Local Date: November 1, 2010
Join Date: Nov 2001
Posts: 437
|
Quote:
|
Originally posted by Devil of Truth
I’ve tried getting Duration to work – but the messages just won’t go away. I don’t think it works.
|
I agree and now at least I have some confirmation. When Locutus returns (I understand he has taken some time to attend to some more important things), perhaps he can note that Duration doesn't work in his SLIC Function reference. Available, here: http://home.student.utwente.nl/w.sni...Functions.html
And perhaps a note should be added to the modification section of the CTP2 forum, so that SLIC apprentices have a reference with the most accurate information.
|
|
|
|
October 19, 2002, 09:05
|
#6
|
Deity
Local Time: 11:30
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
|
Quote:
|
Originally posted by ahenobarb
And perhaps a note should be added to the modification section of the CTP2 forum, so that SLIC apprentices have a reference with the most accurate information.
|
Mapfi created this thread just for that reason, so feel free to add your findings there...
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT -4. The time now is 05:30.
|
|