Announcement

Collapse
No announcement yet.

Events

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

  • Events

    One more question... (not my last so be warned )

    What is the method for adding events? For example due to a certain date or the killing of a certain unit?

  • #2
    Slic coding
    "Kill a man and you are a murder.
    Kill thousands and you are a conquer.
    Kill all and you are a God!"
    -Jean Rostand

    Comment


    • #3
      Originally posted by Pedrunn
      Slic coding
      Thanks Pedrunn I realize that, but I was hoping for some sort of example.

      Comment


      • #4
        Here is an example of how to kill a unit (post a Kill event):

        int_f DeathToUnit(unit_t aUnit)
        {
        Event:KillUnit(aUnit,0,-1); //Kill event posted (not necessarily executed)
        }

        In a more general syntax:
        Event:EventName([arguments]);

        Remember that they are executed ASYNCHRONOUSLY!
        So much to do in so little time...

        Comment


        • #5
          There is a lot of slic events on the main apolyton civ 2 site for causing an event for the loss of a certain unit try looking in the Alexandra the great scenario they do a lot of that in that scenario
          "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
          The BIG MC making ctp2 a much unsafer place.
          Visit the big mc’s website

          Comment


          • #6
            Go to here <http://apolyton.net/forums/showthrea...threadid=33181>.

            Check out what Wombat and Locutus wrote. There's also a link there to all the Activision docs.

            Comment


            • #7
              Thanks guys...

              Comment


              • #8
                Very useful link, thanks Peter

                Comment

                Working...
                X