Thread Tools
Old March 6, 2001, 06:14   #1
junito13
Settler
 
Local Time: 09:56
Local Date: October 31, 2010
Join Date: Mar 2001
Location: tallahasssee,fl usa
Posts: 3
SLIC SCENERIO HElP??
Can anyone provide me with a basic slic format for creating scenerio events such as , creating units or text on a certain turn?
junito13 is offline  
Old March 14, 2001, 07:37   #2
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 11:56
Local Date: October 31, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Well, those examples are simple enough:

Code:
HandleEvent(BeginTurn) 'SomeEvent' post {
location_t	tmpLoc;
city_t	tmpCity;

	if (g.year == 100) {				// in turn 100
		Message(1, 'TestMessage');		// display a message for player 1 (normally the human player)
	}
	if (g.year == 25) {				// in turn 25
		GetCityByIndex(1, 0, tmpCity);		// store oldest city of player 1 in tmpCity variable

		// give player 0 (=barbarian) a warrior on a random tile 1 squares away from the oldest city of player 1:
		CreateUnit(1, UnitDB(UNIT_WARRIOR), tmpCity.location, 0);
		// give player 1 a warrior in his oldest city (random tile 0 squares away from oldest city == city itself):
		CreateUnit(0, UnitDB(UNIT_WARRIOR), tmpCity.location, 1);
	}
	if (g.year == 125) {				// in turn 125
		MakeLocation(tmpLoc, 25, 40);		// store location (25, 40) in variable tmpLoc

		// give player 3 a hoplite on location (25, 40):
		CreateUnit(3, UnitDB(UNIT_HOPLITE), tmpLoc, 0);
	}
}

Message 'TestMessage' {
	Text(ID_TEST_MESSAGE);	// displays text TEST_MESSAGE (must be defined in text files) in a message
}
Hope this helps...
[This message has been edited by Locutus (edited March 14, 2001).]
Locutus is offline  
Old March 15, 2001, 12:20   #3
junito13
Settler
 
Local Time: 09:56
Local Date: October 31, 2010
Join Date: Mar 2001
Location: tallahasssee,fl usa
Posts: 3
Hey well thanks alot Locutus, i do appreciate your help.
junito13 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 05:56.


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