May 16, 2002, 00:18
|
#1
|
Prince
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?
|
|
|
|
May 16, 2002, 00:52
|
#2
|
King
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
|
|
|
|
May 16, 2002, 00:57
|
#3
|
Prince
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.
|
|
|
|
May 16, 2002, 02:52
|
#4
|
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...
|
|
|
|
May 16, 2002, 06:02
|
#5
|
King
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
|
|
|
|
May 16, 2002, 19:35
|
#6
|
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.
|
|
|
|
May 16, 2002, 19:52
|
#7
|
Prince
Local Time: 17:47
Local Date: October 31, 2010
Join Date: Apr 2002
Location: USA
Posts: 916
|
Thanks guys...
|
|
|
|
May 16, 2002, 19:59
|
#8
|
Prince
Local Time: 17:47
Local Date: October 31, 2010
Join Date: Apr 2002
Location: USA
Posts: 916
|
Very useful link, thanks Peter
|
|
|
|
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 20:47.
|
|