|
Author
|
|
Topic: Script.slc ????? |  |
|
MindScramble Settler Vancouver, BC, Canada Jun 2000
|
 |
posted June 14, 2000 16:15
 |
 |
 |  |
Seeing as there seems to be more people in this forums than in Help I shall repost my previous message .... Where is this file used in CtP? I am currently just playing a regular random game through the single player option. I would like to be able to add enhancements to the game, even if I have to start over. I don't have access to the multi-player, cheats, or scenario editor, in the version I am playing. Does this mean I'm SHOL ...?  ------------------ MindScramble "In my dreams I see Pengiuns smashing Windows" |
Ganja Chieftain
Jun 2000
|
 |
posted June 14, 2000 16:22
 |
 |
 |  |
its in your ctp_data\default\gamedata folder |
MindScramble Settler Vancouver, BC, Canada Jun 2000
|
 |
posted June 15, 2000 11:50
 |
 |
 |  |
I should have been more concise. How is script.slc used in the game? Is it only available for scenario games? I have the Linux LM Edition from Corel, and they disabled Cheat, Multiplayer, and Scenario editor ... ------------------ MindScramble "In my dreams I see Pengiuns smashing Windows" |
Paul King Zwolle, The Netherlands Mar 99
|
 |
posted June 15, 2000 12:00
  |
 |
 |  |
Script.slc is used in all games, not just scenario games. I am not familiar with your particular version of CTP, but I suppose you could edit script.slc and perhaps the other text files to add enhancements to the game. |
Locutus Prince Apolyton Borg Hengelo/Enschede, The Netherlands Nov 1999
|
 |
posted June 15, 2000 13:46
  |
 |
 |  |
SLIC code, which is contained in the script.slc file, is code that you can use to manipulate the game in many ways. You can create/kill/move/alter units/cities, display messages, etc., etc., you can change the game in many ways. This has been done already by Activision itself, a lot of modmakers (among who yours truly) and you can do it yourself. There's documentation about SLIC available here, but I'm still working on something better myself (though the work has ground to a halt lately). For some examples of what you can do with SLIC, apart from the standard material from Activision, download e.g. TP's PowerSLICs or my flat-map support or start a tutorial game, all the 'special events' in there are created by SLIC (a lot more SLIC code is contained in Wes's Med Pack but that also contains a lot of other changes to the game which makes it difficult to see what was done through SLIC and what was done through other means).Hope that helps, Locutus [This message has been edited by Locutus (edited June 15, 2000).] |
MindScramble Settler Vancouver, BC, Canada Jun 2000
|
 |
posted June 15, 2000 14:48
 |
 |
 |  |
Thanks Locutus,I tried adding the AddGold trigger as a test, to see if I could add other mods to the game ... but sadly when I added the trigger script to the end of script.slc , adn started a new game ... nothing. It was supposed to add 1000000 gold if it fell below 200000. Does this mean that the version I have doesn't look for anything at the end of the file? I really would like to give the AI a fighting chance  ------------------ MindScramble "In my dreams I see Pengiuns smashing Windows" |
gemini Warlord camrose,ab,canada Aug 1999
|
 |
posted June 15, 2000 23:56
|
 |
 |  |
Mindscramble, Hey man!!!If you can post the trigger you added then we would be able to tell if it was programmed properly. Slic can be a little tough to grasp when you first start out. ------------------ Gemini |
MindScramble Settler Vancouver, BC, Canada Jun 2000
|
 |
posted June 16, 2000 12:12
 |
 |
 |  |
Make a back-up copy of 'script.slc' in \ctp_data\default\gamedata\ and ADD the following lines to the end of it: trigger 'DOR_T_Give_Gold' when (IsHumanPlayer(g.player) && (player.1.gold<=200000)) { AddGold(g.player,1000000); } The effect is that every time the human player runs out of gold (less than 200,000), he gets 1 million more.
------------------ MindScramble "In my dreams I see Pengiuns smashing Windows" |
Paul King Zwolle, The Netherlands Mar 99
|
 |
posted June 16, 2000 13:17
  |
 |
 |  |
The trigger works for me. When I start a new game I have 1,000,100 gold. |
MindScramble Settler Vancouver, BC, Canada Jun 2000
|
 |
posted June 16, 2000 15:22
 |
 |
 |  |
I have even tried to add other triggers, like adding a warrior to a city when the city is first built ... but nothing seems to work. I add all of the triggers to the end of the script.slc file ... is this where they are supposed to go? |
Paul King Zwolle, The Netherlands Mar 99
|
 |
posted June 16, 2000 15:51
  |
 |
 |  |
You can put them anywhere in script.slc. It doesn't matter if they are at the beginning, at the end or in the middle. But it would normally be easiest to just put them at the end. |
MindScramble Settler Vancouver, BC, Canada Jun 2000
|
 |
posted June 16, 2000 16:53
 |
 |
 |  |
Well I shall try and try again over this weekend ... I need to isolate why it isn't using the triggers ... !@#$^&* system ... ------------------ MindScramble "In my dreams I see Pengiuns smashing Windows" |
skorpion59 CTP Maps Webmaster Tulsa, Oklahoma, USA, (GMT -6) May 99
|
 |
posted June 16, 2000 17:42
  |
 |
 |  |
Mindscramble,Since you are using a free limited-edition, thus DEMO version, you probably are not allowed to make the kind of changes you are referring to. |
MindScramble Settler Vancouver, BC, Canada Jun 2000
|
 |
posted June 20, 2000 11:17
 |
 |
 |  |
I think you're right skorpion59 ... everthing I tried to add this weekend nothing worked ... well just got to kill the monkey and go pick the full version up ... thanks to all for the insights ...  ------------------ MindScramble "In my dreams I see Pengiuns smashing Windows" |