Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION II > Civ2 - Scenario League

Notices

Reply
 
Thread Tools
Old Feb 08, 2011, 07:43 AM   #1
Palaiologos2
Prince
 
Join Date: Jan 2011
Location: Thessalonique
Posts: 346
Is this possible in ToT No3?

That every time a unit is killed by Civ X then there is a random chance that civ X gets a tech?

Like every time the Romans kill an Avar(unit name) unit they have 20 perchent chance of getting stirrup(tech name)?
Palaiologos2 is offline   Reply With Quote
Old Feb 08, 2011, 07:57 AM   #2
CurtSibling
ENEMY ACE™
 
CurtSibling's Avatar
 
Join Date: Aug 2001
Location: Innsmouth
Posts: 27,346
Images: 1
Hi there, old chap!

It could be done by awarding the Romans a secret tech that allows a random check each turn.

(this would let us use the "RECEIVEDTECHNOLOGY" event to check the tech then do a random event...)

A 1 in 20 random event that will give the Romans "Stirrup" as a "just once" event...

__________________
Vive La Revulsion!
CurtSibling is offline   Reply With Quote
Old Feb 08, 2011, 09:20 AM   #3
techumseh
Prince
 
techumseh's Avatar
 
Join Date: Mar 2002
Location: in the frozen north
Posts: 305
Quote:
Originally Posted by Palaiologos2 View Post
That every time a unit is killed by Civ X then there is a random chance that civ X gets a tech?

Like every time the Romans kill an Avar(unit name) unit they have 20 perchent chance of getting stirrup(tech name)?
@IF
UnitKilled
Unit=Avar
attacker=Civ X
defender=Civ Y
@AND
RandomTurn
denominator=5
@THEN
JustOnce
GiveTechnology
technology=13
receiver=Civ X
@ENDIF

There is a text file in your ToT directory called 'Macro', the section on events from the manual. It's a guide to using the macro language used to program events in ToT. It's a bit sketchy on the more advanced use of 'flags', but there are a couple of great tips on the SL wiki that explain that very well. Good luck!
Attached Files
File Type: rar Macro.rar (13.5 KB, 11 views)

Last edited by techumseh; Feb 08, 2011 at 09:26 AM.
techumseh is offline   Reply With Quote
Old Feb 08, 2011, 09:24 AM   #4
techumseh
Prince
 
techumseh's Avatar
 
Join Date: Mar 2002
Location: in the frozen north
Posts: 305
Sorry, those tips are on the Cradle of Civilization site, here:

http://sleague.civfanatics.com/COC/guides/index.shtml
techumseh is offline   Reply With Quote
Old Feb 08, 2011, 10:57 AM   #5
Civinator
Blue Lion
 
Civinator's Avatar
 
Join Date: May 2005
Posts: 3,699
Sorry for my noobism. What is ToT No3?
__________________
Wise men discover tourism. War becomes obsolete.
Civinator is offline   Reply With Quote
Old Feb 08, 2011, 11:19 AM   #6
Arthedain
- Celestial Being -
 
Arthedain's Avatar
 
Join Date: Jun 2001
Location: Helsingborg, Sweden
Posts: 411
Quote:
Originally Posted by Civinator View Post
Sorry for my noobism. What is ToT No3?
This is the third "Is this possible in ToT"-thread he created
__________________
"Peace cannot be kept by force. It can only be achieved by understanding"
Arthedain is offline   Reply With Quote
Old Feb 08, 2011, 11:44 AM   #7
Civinator
Blue Lion
 
Civinator's Avatar
 
Join Date: May 2005
Posts: 3,699
Quote:
Originally Posted by Arthedain View Post
This is the third "Is this possible in ToT"-thread he created
Thank you very much for the explanation. I just wondered if I had missed a patch.
__________________
Wise men discover tourism. War becomes obsolete.
Civinator is offline   Reply With Quote
Old Feb 09, 2011, 04:16 PM   #8
Palaiologos2
Prince
 
Join Date: Jan 2011
Location: Thessalonique
Posts: 346
Quote:
Originally Posted by techumseh View Post
@IF
UnitKilled
Unit=Avar
attacker=Civ X
defender=Civ Y
@AND
RandomTurn
denominator=5
@THEN
JustOnce
GiveTechnology
technology=13
receiver=Civ X
@ENDIF

There is a text file in your ToT directory called 'Macro', the section on events from the manual. It's a guide to using the macro language used to program events in ToT. It's a bit sketchy on the more advanced use of 'flags', but there are a couple of great tips on the SL wiki that explain that very well. Good luck!
Yeah thing is my PC is fried and am currently logging a few minutes each time from a friend. I can't really download or read stuff on his PC.

In any case if i'm reading the event sequence correctly it means that the event engine checks every turn if there is an Avar unit killed and seperately if its the
"one in five turns". Ingenious.
Palaiologos2 is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION II > Civ2 - Scenario League > Is this possible in ToT No3?

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 Off



Advertisement

All times are GMT -6. The time now is 12:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR