Thread Tools
Old May 16, 2002, 00:18   #1
centrifuge
Call to Power PBEMCall to Power II MultiplayerCTP2 Source Code Project
Prince
 
centrifuge's Avatar
 
Local Time: 17:47
Local Date: October 31, 2010
Join Date: Apr 2002
Location: USA
Posts: 916
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?
centrifuge is offline  
Old May 16, 2002, 00:52   #2
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 21:47
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
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
Pedrunn is offline  
Old May 16, 2002, 00:57   #3
centrifuge
Call to Power PBEMCall to Power II MultiplayerCTP2 Source Code Project
Prince
 
centrifuge's Avatar
 
Local Time: 17:47
Local Date: October 31, 2010
Join Date: Apr 2002
Location: USA
Posts: 916
Quote:
Originally posted by Pedrunn
Slic coding
Thanks Pedrunn I realize that, but I was hoping for some sort of example.
centrifuge is offline  
Old May 16, 2002, 02:52   #4
DDowell
Chieftain
 
Local Time: 01:47
Local Date: November 1, 2010
Join Date: Nov 2001
Location: Västerås, Sweden
Posts: 42
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...
DDowell is offline  
Old May 16, 2002, 06:02   #5
The Big Mc
CTP2 Source Code Project
King
 
The Big Mc's Avatar
 
Local Time: 00:47
Local Date: November 1, 2010
Join Date: Oct 2001
Location: Of the universe / England
Posts: 2,061
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
The Big Mc is offline  
Old May 16, 2002, 19:35   #6
Peter Triggs
CTP2 Source Code ProjectCivilization IV Creators
King
 
Local Time: 00:47
Local Date: November 1, 2010
Join Date: Jan 2000
Location: Gone Fishin, Canada
Posts: 1,059
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.
Peter Triggs is offline  
Old May 16, 2002, 19:52   #7
centrifuge
Call to Power PBEMCall to Power II MultiplayerCTP2 Source Code Project
Prince
 
centrifuge's Avatar
 
Local Time: 17:47
Local Date: October 31, 2010
Join Date: Apr 2002
Location: USA
Posts: 916
Thanks guys...
centrifuge is offline  
Old May 16, 2002, 19:59   #8
centrifuge
Call to Power PBEMCall to Power II MultiplayerCTP2 Source Code Project
Prince
 
centrifuge's Avatar
 
Local Time: 17:47
Local Date: October 31, 2010
Join Date: Apr 2002
Location: USA
Posts: 916
Very useful link, thanks Peter
centrifuge 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 20:47.


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