Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization: Call To Power > CtP-Creation > Mr. Ogre: My "bombarding units spotted" SLIC works, but only partly. Can you help ?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
12.Sep: `CTP CHALLENGE LADDER` - SEPTEMBER UPDATE
09.Sep: EARLY BUILD SPRITE EDITOR
02.Aug: `SUPERLEAGUE` SIGN-UP

bottom of page
  - CIVILIZATION: CALL TO POWER @ GAMESTOP $9.99 - CIVILIZATION: CALL TO POWER @ AMAZON $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
TP is offline TP
Warlord

Jun 1999
time: 05:13
Question  Old Post 14-07-1999 11:00
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Mr. Ogre: My "bombarding units spotted" SLIC works, but only partly. Can you help ? Tired of ads?

Dear Mr. Ogre,
Dear fellow SLIC programmers,


I have tried to establish a warning system which gives the human player a short message as soon
as one of the human units has spotted enemy units being able to bombard. Fortunately, it works,
unfortunately only in one direction:

Below SLIC script will only trigger the warning if a human unit spots such an enemy while MOVING,
unfortunately it will not trigger the warning if such an enemy unit just happens to move out of
the fog of war into tiles which are visible to human units or cities.

Can one of you help me there ? I would like to use the full working script as a kind of workaround for the bug that enemy bombarding is not autocentering properly.


Thanks for looking at this,
TP


SCRIPT.SLC

//
// Warning in case units with bombarding abilities are spotted (see info-str.txt for strings)
//

trigger 'TP_T_Warning_Bombarding' when (player.sightedunit && IsBombardingUnit(unit) && unit.owner != 1) {
Message(g.player, 'TP_M_Warning_Bombarding');
}

messagebox 'TP_M_Warning_Bombarding' {
Title(ID_TP_TITLE_Warning_Bombarding);
Text(ID_TP_TEXT_Warning_Bombarding);
}

INFO-STR.TXT

##
## Warning on sight of bombarding capable units (see script.slc for SLIC part)
##

TP_TITLE_Warning_Bombarding "[unit.name] sighted !"
TP_TEXT_Warning_Bombarding "Beware: One of our units, a [unit.2.name] has spotted a [unit.name] which is able to bombard."

Mr Ogre is offline Mr Ogre
Warlord
Azeroth
Jan 1970
time: 05:13
Lightbulb  Old Post 16-07-1999 12:15 Visit Mr Ogre's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Suffering from ads?

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 is offline TP
Warlord

Jun 1999
time: 05:13
Thumbs up  Old Post 17-07-1999 01:41
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Enter the AD-FREE zone

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

Pintello is offline Pintello
Warlord
Deltona, Florida
Jan 1970
time: 05:13
Wink  Old Post 17-07-1999 23:48
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Hi TP,

This slic mod of yours looks very good. I, unfortunately, have no talent in programming of any sort, but I can use things that other people come up with. Is it possible for you or someone else to create an English version of your mod so that us illiterate Americans who only speak one language can use it? :-)

Timothy Pintello

DJ is offline DJ
Warlord

Jul 1999
time: 05:13
Question  Old Post 17-07-1999 23:58
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Avatar Enlargement: We've got the solution

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 is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 18-07-1999 13:51
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton or Terrorists Win

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

DJ is offline DJ
Warlord

Jul 1999
time: 05:13
Unhappy  Old Post 19-07-1999 00:29
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Full PM-box? Change here!

I am sorry for not explaining what I meant. I'm an American who does not know that much about Computer Code which I call languages. Sorry.

TP is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 19-07-1999 01:51
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

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 is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 19-07-1999 10:56
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

I am going to close this thread. Please write all comments in the PowerSLICs 1.2 thread.

TP

TP is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 19-07-1999 10:58
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton buy from Amazon

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 is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 19-07-1999 10:59
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Lose 30 kilos (of popups)

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

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:13.
Apolyton Time is 00:13.
    top of page
Rate This Thread:
Forum Jump:
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
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0351 seconds (89.21% PHP - 10.79% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net