 |
|  |
 |
|
Mr Ogre
|
|
Azeroth
Jan 1970 time: 05:13
|
|
TP,
The problem is the message recipient. g.player is the player who is currently moving. In this case, you actually want to send the message to unit.2.owner - the player who sighted unit.1. You should also remove the check for unit.owner != 1. It doesn't hurt to send messages to AI players, and assuming player 1 is the only human player (or even human at all) isn't valid for any sort of multiplayer game.
Try this for the trigger:
trigger 'TP_T_Warning_Bombarding' when (player.sightedunit && IsBombardingUnit(unit)) {
Message(unit.2.owner, 'TP_M_Warning_Bombarding');
}
(The Edit on this message is because I'm an idiot, I hope no one saw the first version :-)
------------------
Joe Rumsey - CTP Programmer
[This message has been edited by Mr Ogre (edited July 16, 1999).]
|
|
|  |
 |
|
TP
|
|
Mr. Ogre,
Thank you very much for your fast and valid answer ! Now everything works just fine.
I am going to post in a few minutes a small SLIC MOD (calling it PowerSLICs) where I include an advanced version of this code here. Hopefully some other players out there find this SLIC package attractive.
Again many thanks for the answer,
TP
|
|
|  |
 |
|
DJ
|
|
I am also illerate to the languages of computers, besides macro language in civ2. Is there an easier way or can you help me with the language? I am willing to learn if someone would show me how.
|
|
|  |
 |
|
TP
|
|
As I wrote in my MOD, I will not localize my MOD into other languages. If I start this now, I would be asked each time I update or include new code. I just don't have the ressources. Maybe another German guy who reads this but is not good in SLIC can do the translation otherwise go to altavista.com and get some rough translations.
TP
|
|
|  |
 |
|
TP
|
|
Ah, I understand. Ok, so please look in the "INFO_STR.TXT" part of my MOD. As soon as you see clear German text within " ", you should translate that. All of the remaining stuff you should not change at all, including everything which is within [ ].
No worries, you can not break anything as long as you strictly only translate German text in the "INFO_STR.TXT" part within " ".
Hope this helps,
TP
|
|
|  |
 |
|
TP
|
|
I am going to close this thread. Please write all comments in the PowerSLICs 1.2 thread.
TP
|
|
|  |
 |
|
TP
|
|
Upps I forgot only moderators can close threads.
Dan, Markos,
Can you please close this thread and the "PowerSLICs 1.1" thread ? This way comments to my MOD will have to go (hopefully) to the "PowerSLICS 1.2" thread.
Going to be back in a few days,
TP
|
|
|  |
 |
|
TP
|
|
Upps I forgot only moderators can close threads.
Dan, Markos,
Can you please close this thread and the "PowerSLICs 1.1" thread ? This way comments to my MOD will have to go (hopefully) to the "PowerSLICS 1.2" thread.
Going to be back in a few days,
TP
|
|
|  |
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
|
|
|
|
|
|