Thread Tools
Old October 17, 2002, 13:30   #1
ahenobarb
Prince
 
ahenobarb's Avatar
 
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?
ahenobarb is offline  
Old October 17, 2002, 13:42   #2
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
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!"
Martin Gühmann is offline  
Old October 17, 2002, 14:07   #3
ahenobarb
Prince
 
ahenobarb's Avatar
 
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?
ahenobarb is offline  
Old October 18, 2002, 05:10   #4
Devil of Truth
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Prince
 
Devil of Truth's Avatar
 
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.
Devil of Truth is offline  
Old October 18, 2002, 09:53   #5
ahenobarb
Prince
 
ahenobarb's Avatar
 
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.
ahenobarb is offline  
Old October 19, 2002, 09:05   #6
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
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...
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:30.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team