 |
|  |
 |
|
Peter Triggs
|
|
Gone Fishin, Canada
Jan 2000 time: 05:17
|
|
Ciao, Odessius
quote:
How can I manage strings in SLIC?
|
With difficulty. There are no operators for concatenation and neither are there string variables.
quote:
The alert is activated when I trigger an event (I use the 'pre' option). If I press OK, the event must be processed by CTP code as usual. If I press Cancel the event must not be processed.
|
As well as the "Kill()" that Immortal Wombat mentioned, if I understand you correctly, I think you need to use the "DisableTrigger" command. But I've never tried disabling an event handler immediately before it was supposed to trigger so I don't know whether that will work or not. How about posting the code here so we can see what you're trying to do?
|
|
|  |
 |
|
Peter Triggs
|
|
Gone Fishin, Canada
Jan 2000 time: 05:17
|
|
Hmm, as I recall skorpion59, Locutus, and dreamer came up with something quite similar to this in CTP1. Maybe Locutus still has it around. You could check his website. It would be SLIC1 and you'd have to convert it, but it would at least give you something to look at.
|
|
|  |
 |
|
Locutus
|
|
ACS CTP1/2 Manager & Civ4 Co-Manager
|
 |
Hengelo, The Netherlands
Nov 1999 time: 06:17
|
|
Wow! You've got one hell of a memory, Peter! That was just about the entire 'SLIC group' or whatever we called ourselves in those days (even I had almost forgotten about it's existance). There were 2 other members (MarkH and FinF, I had to dig *really* deep to come up with their names again) but quite frankly, they didn't contribute nearly as much in terms of lines of code (and I don't think they posted in the forums at all, just in email)...
Unfortunately, almost all records of our little group and our SUM mod (SLIC Utility Mod, for those who don't have as good a memory or simply weren't there) were lost in a chain of computer crashes I had a couple of months ago (together with pretty much any other records I had on the 'CtP1 era') 
The reason why this same code doesn't exist for CtP2 though, is because as far as I could see, it was not possible to convert this particular feature to CtP2. A few of SLIC1's functions were not transfered to SLIC2 (even though Mr Ogre had promised otherwise - can't really blame him though, he was probably too busy adding new stuff to even notice ). As far as I know, there is no way to detect when a player clicks on an enemy unit or city in CtP2, there is no event that triggers when this happens (CtP1 had a 'clicked' container with variables that acted as events - sounds more complicated than it was ). Odisseus, how were you planning to do this? Maybe I overlooked something, I would very much like to be wrong but I don't think it can be done. Displaying the actual message and buttons and stuff is quite simple, I could easily rewrite that part (or help you write it). But how useful would that be if it's never gonna work anyway?
|
|
|  |
All times are GMT. The time now is 05:17. Apolyton Time is 00:17. |
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
|
|
|
|
|
|