 |
|  |
 |
|
Dreamer
|
|
Singapore
Dec 1999 time: 05:13
|
|
I was thinking that individual slic trigger should be discussed in separate thread then mixing it up all in one thread to reduce confusion...I getting confuse now. Anyway, Locutus this is for you.
I am actually having the idea to automatically enslave an enemy settler upon sighted by own slaver (Hope you can understand my sentence).
The following trigger have not been tested yet.
code:
// Auto Settler Enslavement
TypeUnit enemyunit;
Trigger 'AutoEnslave' when (player.sightedunit && (unit == UnitType("UNIT_SETTLER))
&& IsSlaver(unit.2) && IsHumanplayer(player)) { // This line is continous of the above.
SetOrder(31, ENSLAVE_SETTLER);
AddOrder(unit.2, unit.location);
}
[This message has been edited by Dreamer (edited January 05, 2000).]
|
|
|  |
 |
|
Locutus
|
|
ACS CTP1/2 Manager & Civ4 Co-Manager
|
 |
Hengelo, The Netherlands
Nov 1999 time: 06:13
|
|
Hi Dreamer,
I understand what you are trying to say. I also see that the trigger hasn't been tested, here's a better one:
code:
Trigger 'AutoEnslave' when (player.sightedunit && IsHumanplayer(g.player) && unit.type == UnitType("UNIT_SETTLER") ) {
SetOrder(1, 31); //Enslave Settler
AddOrder(unit.2, unit.location);
}
I didn't have much time to test it, it's giving a really wierd error message I've never seen before, something like "can't find id 268435540" I can't remember exactly what the message was, but I wrote the number down, so that's correct. Do you (or anyone else) know what this means? Anyway, if you havve more time than I do, experiment a little with it and let me know what you find out.
Locutus
|
|
|  |
 |
|
Dreamer
|
|
Singapore
Dec 1999 time: 05:13
|
|
Locutus,
I'm just wondering why your SetOrder(1, 31); is different from my SetOrder(31, ENSLAVE_SETTLER);?
|
|
|  |
 |
|
Mark H
|
|
I don't really understand why you want slaver's able to capture settlers alone,
I always have a military unit along. Anyway, the easy
solution is to make the slaver a military unit.
Mark
|
|
|  |
 |
|
skorpion59
|
|
Tulsa, Oklahoma, USA
May 1999 time: 23:13
|
|
Locutus,
I got that exact error when I was messing around with the For..Loop. Never did know what it was telling me. As I changed syntax and codes around, it changed back and forth from that error to just saying 'syntax error'. If I run into it again, I will pay more attention to what specifically sets it off.
All,
I don't think you want the slaver a military unit. It has unpredictable results. I was playing around one time and made the Cow and Settler military units. The AI then started using the Cow in place of the real military units. I think this was because it was cheaper and the AI could crank more out. Don't know for sure. I stopped playing around with it.
Mark,
You could test this out and let us know how it works. I would be interested in the results.
Don
[This message has been edited by skorpion59 (edited January 05, 2000).]
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:13. Apolyton Time is 00:13. |
top of page
|
|
|
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
|
|
|
|
|
|