Announcement

Collapse
No announcement yet.

Duration

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    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:

    From the SLIC documentation
    VOID Duration(turns)
    Kill this message automatically in n turns.
    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!"

    Comment


    • #3
      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?

      Comment


      • #4
        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.

        Comment


        • #5
          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.

          Comment


          • #6
            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

            Comment

            Working...
            X