 |
|  |
 |
|  |
 |
|  |
 |
|
Locutus
|
|
ACS CTP1/2 Manager & Civ4 Co-Manager
|
 |
Hengelo, The Netherlands
Nov 1999 time: 06:14
|
|
Yep, that's CtP1 code, it won't work for CtP2. BRA_TiTaN, do you happen to have the exact URL where you found that code?
Actually, Dale, triggers are still used in CtP2 but they are only useful for UI-events, so they only have a very limited value (though it's always good to have them of course).
To check a players gold value, you can use the function PlayerGold(player), presuming it works So to make the code BRA_TiTaN wants, Dale's code should be adapted like this:
code: HandleEvent(BeginTurn) 'Give_Gold' pre {
int_t tmpPlayer;
tmpPlayer = g.player;
if(IsHumanPlayer(tmpPlayer) && PlayerGold(tmpPlayer) < 100000) {
AddGold(tmpPlayer, 500000);
}
}
BRA_TiTaN, you can basicly put this file in any file that ends with *.slc (if it doesn't work for a certain file, try another; it should always work with script.slc and scenario.slc).
|
|
|  |
All times are GMT. The time now is 05:14. Apolyton Time is 00:14. |
top of page
|
| archivepost |
|
Forum 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
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|