Thread Tools
Old May 19, 2002, 01:00   #1
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 21:54
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
Another disapointing Slic attempt
I tried to do a code about a nuclear explosion disaster. I wrote the code but i am getting syntax errors everytime i load the game with it.
So can anyone help this unhappy slic newbie. And also point out changes to help me became a better slicer.

Code:
HandleEvent(BeginTurn) 'NuclearBoom' post {
city_t	tmpcity;
int_t		tmpplayer;
int_t		i;
int_t		randomnum;

message(tmpplayer, 'NuclearBoom');

tmpcity = city[0];		 
tmpplayer = player[0];		
	
GetCityByIndex(player[0], i, city[0]);
	for(i=0; i< player[0].cities; i=i+1) { 						// Scroll over all cities
		if(CityHasBuilding(city[0], "IMPROVE_NUCLEAR_PLANT")){		// if city has Nuclear Plant
			randomnum = random(300);						// there is a 300 Chance. 						
			if(randomnum == 0){							// of happenning
				Event: NukeCity(city[0], player[0]); 			// a nuclear explosion (nuke).
					if(HasAdvance(player[0], ID_ADVANCE_FUSION)) {	// But if player has Fusion
						randomnum == randomnum - 10000;		// nothing happens.
					}
			} 
		}	
	}
}
- Thanks in advance
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand

Last edited by Pedrunn; May 19, 2002 at 01:48.
Pedrunn is offline  
Old May 19, 2002, 01:47   #2
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 21:54
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
I am feeling really stupid. After post this thread. I decided to download edit plus. And with it i found that the syntax error was actually a stupid wrong symbol. I have fix it the post.
But i will leave this code here so that more experienced modders can point out some changes to improve it for me.
__________________
"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 19, 2002, 07:21   #3
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 02:54
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Re: Another disapointing Slic attempt
Code:
if(randomnum == 0){	// of happenning
Event: NukeCity(city[0], player[0]);	// a nuclear explosion (nuke).
if(HasAdvance(player[0], ID_ADVANCE_FUSION)) {	// But if player has Fusion
randomnum == randomnum - 10000;	// nothing happens.
}
}
This code will give you a nuke explosion also the player has Fusion.

Also this line is something different you actual want:

Code:
randomnum == randomnum - 10000;	// nothing happens.
It will ask if randomnum is equal to randomnum - 10000, I would say this is never true. So in slic it will be interpreted as 0 and that doesn't do anything there.

To achieve what you want I would add to the condition if randomnum is equal to 0 the condition if the player do not own the advance fusion. So my could would look like:

Code:
if(randomnum == 0//if randomnum equal to 0
&& !HasAdvance(player[0], ID_ADVANCE_FUSION) //and player does not own fusion
){	// do the following
Event: NukeCity(city[0], player[0]);	// a nuclear explosion (nuke).
}
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old May 19, 2002, 07:47   #4
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: 02:54
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Re: Another disapointing Slic attempt
Quote:
Originally posted by Pedrunn
Code:
HandleEvent(BeginTurn) 'NuclearBoom' post {
city_t	tmpcity;
int_t		tmpplayer;
int_t		i;
int_t		randomnum;

message(tmpplayer, 'NuclearBoom');

tmpcity = city[0];		 
tmpplayer = player[0];
You should switch the line "message(tmpplayer, 'NuclearBoom');" and "tmpplayer = player[0];". As it is, you first declare the variable tmpplayer ("int_t tmpplayer;") - after which it has the default value 0 - then you send the message and only then you assign the player who's turn it is to tmpplayer. So as it is, the message will always be sent to the barbarians (= player 0). When you place the assignment part before the message-send part, the message will actually be sent to the player whose city is being nuked.

Note however, that with this code you're sending the message every turn. If you only want the message to be sent when a city is actually being nuked, put it directly in front of or behind the Event:NukeCity line.
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old May 19, 2002, 09:42   #5
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 21:54
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
Re: Re: Another disapointing Slic attempt
Quote:
Originally posted by Martin Gühmann
Code:
if(randomnum == 0//if randomnum equal to 0
&& !HasAdvance(player[0], ID_ADVANCE_FUSION) //and player does not own fusion
){	// do the following
Event: NukeCity(city[0], player[0]);	// a nuclear explosion (nuke).
}
Thanks Martin i did not like that part of the code. I knew somethinh was wrong with it. I will change it now.

Quote:
Originally posted by Martin Gühmann
Note however, that with this code you're sending the message every turn. If you only want the message to be sent when a city is actually being nuked, put it directly in front of or behind the Event:NukeCity line.
I did no know that. I will change the place of it. A regarding the message to barbs. message is this. so i declare i want it for the human player. So still it is going to send to player 0. Anyway i will switch it now too
Code:
Alertbox 'NuclearBoom' {
	Show();
	Title(ID_NUCLEAR_BOOM_TITLE);
	if (IsHumanPlayer(player[0])) {
		Text(ID_NUCLEAR_BOOM_US);
		Eyepoint(city[0]);
	}else {
		Text (ID_NUCLEAR_BOOM_THEM};
	}
}
__________________
"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 19, 2002, 09:49   #6
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 21:54
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
What you guys think?

Code:
HandleEvent(BeginTurn) 'NuclearBoom' post {
city_t	tmpcity;
int_t		tmpplayer;
int_t		i;
int_t		randomnum;

tmpcity = city[0];		 
tmpplayer = player[0];		
	
GetCityByIndex(player[0], i, city[0]);
	for(i=0; i< player[0].cities; i=i+1) { 						// Scroll over all cities
		if(CityHasBuilding(city[0], "IMPROVE_NUCLEAR_PLANT")){		// if city has Nuclear Plant
			randomnum = random(300);						// there is a 300 Chance. 						
				if(randomnum == 0							//if randomnum equal to 0 
				&& !HasAdvance(player[0], ID_ADVANCE_FUSION)){		// and players doenst have fusion 
					Event: NukeCity(city[0], player[0]);		// a nuclear explosion (nuke).
					message(player[0], 'NuclearBoom');			// and a warning message will appear
				} 
			
		}	
	}
}			

Alertbox 'NuclearBoom' {
	Show();
	Title(ID_NUCLEAR_BOOM_TITLE);
	if (IsHumanPlayer(player[0])) {
		Text(ID_NUCLEAR_BOOM_US);
		Eyepoint(city[0]);
	}else {
		Text (ID_NUCLEAR_BOOM_THEM};
	}
}
Anything else?
__________________
"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 19, 2002, 09:55   #7
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: 02:54
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Looks good to me...
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old May 19, 2002, 10:26   #8
Peter Triggs
CTP2 Source Code ProjectCivilization IV Creators
King
 
Local Time: 00:54
Local Date: November 1, 2010
Join Date: Jan 2000
Location: Gone Fishin, Canada
Posts: 1,059
First, here's a background comment on events and builtin variable arrays. If you look at the Activision SLIC Events document you see events described as:

Quote:

BeginTurn(int_t, int_t)
Begin a player's turn

CityBeginTurn(city_t)
Main city begin turn event

CreateCity(int_t, location_t, int_t, int_t [, city_t])
Create a city (first int is cause, second int is unit type that settled (-1 if not from unit)

AddGold(int_t, int_t)
Add gold to player
Here the "int_t", "location_t", and so on define the type of variable you have to use when you want to generate one of these events. For example, to give 100 gold to the first player in the game (usually the Human), you'd write "Event:AddGold(1,100);"

It's a bit different when events turn up in the head of an event handler. In this case the above descriptions might be better written as:

Quote:
BeginTurn(player[0], value[0])

CityBeginTurn(city[0])

CreateCity(player[0], location[0], value[0], value[1] [, city[0]])

AddGold(player[0], value[0])
These "player[0]", "location[0]", "value[0]", and so on aren't visable in the head of the handler but are filled in when the handler is called. For example, when you write a handler:

Code:
HandleEvent(BeginTurn) 'Example' pre {

       stuff

}
You have a "player[0]" and "value[0]" (= the game turn) to play with. These are the only builtin variables that will automatically have values when this handler triggers. So when you write "tmpcity = city[0];" as you did above, you'll get a "Variable 0 Out of Bounds" error: there is no city[0] in this context.

This is not to say that you can't assign a value to a builtin variable. For example, one could have:

Code:
     GetCityByIndex(player[0],0,tmpCity);

     stuff


     city[0]=tmpCity
     cityPop=city[0].population;
where you end up with cityPop being the population of player[0]'s 0th (=1st in ordinary language) city. This is what builtins are really useful for: they let you access the current values of their 'members', all those '.XXX's that are listed in the SLIC Built-in variable types document. (BTW, it's a pity there's never going to be another patch because we could sure use a few more, like "city.production" and "player.government".)

But, after all that, you're not using "city[0]" to access a member of the builtin city array, so you don't really need it.

As well as what Martin and Locutus said, you need to reverse the order of two of the above lines so they become:

Code:
for(i=0; i< player[0].cities; i=i+1) { 		
    GetCityByIndex(player[0], i, tmpCity);// Scroll over all cities						
    if(CityHasBuilding(tmpCity, "IMPROVE_NUCLEAR_PLANT")){		// if city has Nuclear Plant
     randomnum = random(300);						// there is a 300 Chance. 					
     if(randomnum == 0 && !HasAdvance(player[0], ID_ADVANCE_FUSION)){ //and player does not own fusion
	     Event: NukeCity(tmpCity, player[0]); 			// a nuclear explosion (nuke).
	     message(tmpplayer, 'NuclearBoom');
	    }	
	}
}
But, again, I'd be surprised if that works. You're trying to get a player to nuke his own city and I don't know if the game will allow that. It will be interesting to see if you can.

Last edited by Peter Triggs; May 19, 2002 at 10:46.
Peter Triggs is offline  
Old May 19, 2002, 11:55   #9
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 02:54
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
If you want that a message is not sent to AI players than I would but the message command into an if condition:

Code:
if(randomnum == 0	//if randomnum equal to 0 
&& !HasAdvance(player[0], ID_ADVANCE_FUSION)){	// and players doenst have fusion 
Event: NukeCity(city[0], player[0]);		// a nuclear explosion (nuke).
if(IsHumanPlayer(player[0])){
message(player[0], 'NuclearBoom');	// and a warning message will appear
}
}
For the message box I would use


If you code it like this:

Code:
Alertbox 'NuclearBoom' {
	Show();
	Title(ID_NUCLEAR_BOOM_TITLE);
	if (IsHumanPlayer(player[0])) {
		Text(ID_NUCLEAR_BOOM_US);
		Eyepoint(city[0]);
	}else {
		Text (ID_NUCLEAR_BOOM_THEM};
	}
}
Than you want to sent this message to more than one player, than it would be better to sent it to all player, use the MessageAll instead of Message in the main event handler, of course without the if condition around. And it has only the message_id as argument.

Then I would modify the code like this:

Code:
Alertbox 'NuclearBoom' {
	Show();
	Title(ID_NUCLEAR_BOOM_TITLE);
	if (g.player == player[0]) {
		Text(ID_NUCLEAR_BOOM_US);
		Eyepoint(city[0]);
	}else {
		Text (ID_NUCLEAR_BOOM_THEM};
	}
}
In this case the message boom us go to the victim, boom them goes then to every other player. In your code boom us went to all human player in a game (In SP only one persion in MP more than human players). In your version the message went only to the nuked player. If it is a human player than nuked us, if an AI player than nuked them.

BTW Peter it wouldn't surprise me if it work, you can do in slic very interesting things if you don't care, like moving units on enemy units, or make slavers to enslave themthelves.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old May 19, 2002, 14:15   #10
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 01:54
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
If its not possible to nuke yourself, then simulate it by replacing:
Code:
Event: NukeCity(tmpCity, player[0]);
with the effects of the nuke:
1. Dead people...
Code:
city[0] = tmpCity;
AddPops(tmpCity, city[0].population/-3);
2. Visuals...
Code:
AddEffect(city[0].location, “SPECEFFECT_NUKE”, “SOUND_ID_NUCLEAR_ATTACK”);
3. Dead Tiles around the city...
Code:
int_t  rnd;
rnd = random(5);
int_t k;
location_t DeadLoc;
for(k=0; k < rnd; k = k + 1){
     GetRandomNeighbor(city[0].location, DeadLoc);
     terraform(DeadLoc, TerrainDB(TERRAIN_DEAD));
}
4. KillUnits in the city...
Code:
int_t j;
unit_t  tmpUnit;
j = GetUnitsAtLocation (city[0].location);
for(k = 0; k < j; k = k + 1){
     GetUnitFromCell(city[0].location, k, tmpunit);
       Event:KillUnit(tmpunit, 0, -1);
}
Not the easiest way, but still...
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old May 19, 2002, 14:17   #11
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: 02:54
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Or let the Barbs do the nuking
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old May 19, 2002, 14:19   #12
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 01:54
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
or that.
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old May 20, 2002, 00:12   #13
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 21:54
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
I am kind of surprise because i thought the slic would read the code as a whole. But now i relize that it cross the code as a wave. Something like: it reads the line 1 first, then line 2, then line 3 ... (I hope you guys understood me)

Quote:
Originally posted by Peter Triggs
You have a "player[0]" and "value[0]" (= the game turn) to play with. These are the only builtin variables that will automatically have values when this handler triggers. So when you write "tmpcity = city[0];" as you did above, you'll get a "Variable 0 Out of Bounds" error: there is no city[0] in this context.
...
As well as what Martin and Locutus said, you need to reverse the order of two of the above lines so they become:
I thought those the game just read the integer. And this integer was going to become something in the game. So its value and meaning was absolute and got shape as the slic was been written but was equal through out all code. (I hope you got that too)

Quote:
But, after all that, you're not using "city[0]" to access a member of the builtin city array, so you don't really need it.
Actually when i made a first draft of the code i used tmpcity all the time i just change after i saw the message cod could not figure out what that was. It just know what city[0] means. So i changed this integer name.

Nice words about the handler having a buit in interger. I did never think about befor. I thougth they were only read whent the event was being used as functions

Quote:
But, again, I'd be surprised if that works. You're trying to get a player to nuke his own city and I don't know if the game will allow that. It will be interesting to see if you can.
I thought the game itself was going to nuke me. Dont you think tat following that point of view this fuction was never going to work since it always meant the civ would always nuke itself.

Martin, I think just the human player is worthy have this message. Why would i send to the others. Ooop it just hit me while i was writing. Are you thinking in a multiplayer? So it is a good idea.

I will test it today. using all of you guys advices. I'll keep you informed. Any problem i can use IW codes (but it wasnt going to be my code at the end
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand

Last edited by Pedrunn; May 20, 2002 at 00:24.
Pedrunn is offline  
Old May 20, 2002, 06:11   #14
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 02:54
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Quote:
Originally posted by Pedrunn
I thought the game itself was going to nuke me. Dont you think tat following that point of view this fuction was never going to work since it always meant the civ would always nuke itself.
You used player[0] as the player who will nuke the city. So you will nuke yourself. As the documention says NukeCity is the actual event that nukes a city, it is highly possible that there are no legality checks on this event, so it will work I think otherwise replace player[0] by 0, so that the Barbarians will always nuke the city.

Quote:
Originally posted by Pedrunn
Martin, I think just the human player is worthy have this message. Why would i send to the others. Ooop it just hit me while i was writing. Are you thinking in a multiplayer? So it is a good idea.
Of course in MP (just notice I forgot a word in the post above). It is easier to send the message to all (I think the message won't send to the AI anyway), than to code it so that it will only sent to all human players.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old May 20, 2002, 09:11   #15
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 21:54
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
I see. I though the int_t player at the vent NukeCity was the player who is going to be hit and not the one hitting.
I will fix that.

Thanks again
__________________
"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 20, 2002, 16:32   #16
Peter Triggs
CTP2 Source Code ProjectCivilization IV Creators
King
 
Local Time: 00:54
Local Date: November 1, 2010
Join Date: Jan 2000
Location: Gone Fishin, Canada
Posts: 1,059
Martin:

Quote:
BTW Peter it wouldn't surprise me if it work,
Yes, you're right: it works. I generated a NukeCity event in a savegame and nuked my capitol in 5340 BC. He, He.


Pedrunn:

Quote:
Something like: it reads the line 1 first, then line 2, then line 3 ... (I hope you guys understood me)
Yup, in the olden days programs used to have line numbers (which the programer specified). If they still did we'd be writing stuff like:

Code:
    600  for(i=0; i< player[0].cities; i=i+1);
    610  GetCityByIndex(player[0], i, tmpCity);
    620  if(CityHasBuilding(tmpCity, "IMPROVE_NUCLEAR_PLANT")) then 640;
    630  goto 690;
    640  randomnum = random(300);
    650  if(randomnum == 0 && !HasAdvance(player[0], ID_ADVANCE_FUSION)) then 670;
    660  goto 690;
    670  Event: NukeCity(tmpCity, player[0]);   
    680  message(tmpplayer, 'NuclearBoom');
    690  next i;
Someone told me that the line numbers are probably still there but we just can't see them. The above code (which I just made up) shows how the computer would be executing the statements one by one. The curley brackets we use now eliminate the "goto" and "next" statements and make things a lot easier to read.


Quote:
Actually when i made a first draft of the code i used tmpcity all the time i just change after i saw the message cod could not figure out what that was. It just know what city[0] means. So i changed this integer name.
My bad. I was answering your first post where you didn't have the Alertbox. I should have looked more closely at your later posts where you had it in. Yes, you're right, if you're going to have an eyepoint like that you'll need to put "city[0]=tmpCity" in your "NuclearBoom" handler. Here's a couple of other points:

1) In the Alertbox, you need "Eyepoint(city[0].location); "

2) If you're going to use an Alertbox (rather than a messagebox) you have to put a button on it.

Code:
      Button(ID_OK){	
	    Kill();
	}
Alertboxes are described as 'modal', which means it's necessary for the player to respond in order for the game to continue. In order to respond, he's got to have a button to press. Alternately, you might just go for a Messagebox, where the buttons are optional.

3) I'm not at all sure when "g.player==player[0]" is true. You might have trouble with this, but keep on SLICing.
Peter Triggs is offline  
Old May 21, 2002, 09:52   #17
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 02:54
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Quote:
Originally posted by Peter Triggs
3) I'm not at all sure when "g.player==player[0]" is true. You might have trouble with this, but keep on SLICing.
I guess that is always true in the BeginTurn Event. So it does not do the thing that I expected.

Therefore use these two message boxes instead the one with the if condition. So the part of the code would look like this:

Code:
if(randomnum == 0	//if randomnum equal to 0 
 && !HasAdvance(player[0], ID_ADVANCE_FUSION)){		// and players doenst have fusion 
Event: NukeCity(city[0], player[0]);		// a nuclear explosion (nuke).
message(player[0], 'NuclearBoomUs');			// and a warning message will appear
MessageAllBut(player[0], 'NuclearBoomThem');
				}
So it should be clear what should be in NuclearBoomThem and NuclearBoomUs. BTW Petdrun you should also vistit Locutus' Resitence is futile homepage there you can also find some Slic1 description, that contains some stuff that is not mentioned in the Slic2 documention, the message boxes are one example other interesting examples are AcceptTradeBid() and AcceptTradeOffer(index). Unfortunatly I have no idea if they work, but it is possible as they can be found in the ctp2.exe.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"

Last edited by Martin Gühmann; May 21, 2002 at 10:00.
Martin Gühmann 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:54.


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