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 > Miscellaneous > Archive > CtP2-General/Help/Strategy/Multiplaying-Archive > Look this code.
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
BRA_TiTaN is offline BRA_TiTaN
Settler
Rio de Janeiro, Brazil
Jul 2001
time: 02:14
  Old Post 19-07-2001 04:33 Visit BRA_TiTaN's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Look this code. Support Apolyton, buy Alpha Centauri


trigger ' DOR_T_Give_Gold' when (IsHumanPlayer(g.player) && (player.1.gold <=200000))
{
AddGold(g.player,1000000);
}

This line programming enter in script.slc
but this not working.
In the hour of loading ctp2, appears an error message in the script.slc (sintax error)

I found in site (gamezone.com)

Which is the problem of that command?

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:14
  Old Post 19-07-2001 06:45
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Further to the email I sent you, CTP2 doesn't use triggers does it? I'm almost certain of it. Anyways, try this:

code:
HandleEvent(BeginTurn) 'Give_Gold' pre { int_t tmpPlayer; tmpPlayer = g.player; if(IsHumanPlayer(tmpPlayer)) { AddGold(tmpPlayer, 1000000); } }


Remember, untested, untried, unguarenteed.

BRA_TiTaN is offline BRA_TiTaN
Settler
Rio de Janeiro, Brazil
Jul 2001
time: 02:14
  Old Post 19-07-2001 06:53 Visit BRA_TiTaN's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Code is Wrong. Increase the size of your Attachments

Thank you for the answer, Dale!

But that command, will he make the one what?

Now, because those site, that they publish that command, is showing the wrong command?

Now, do I use Diplomod 3.6, in which file I do place that command?

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
  Old Post 19-07-2001 16:03 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Suffering from ads?

That code is an example of how to "cheat" in CTP1.

Dale, that code gives gold every turn. The original cheat gives gold only when you have nearly run out.

*checks documentation*

There is no way of getting player.gold in CTP2? That isn't very good

BRA_TiTaN is offline BRA_TiTaN
Settler
Rio de Janeiro, Brazil
Jul 2001
time: 02:14
  Old Post 19-07-2001 21:24 Visit BRA_TiTaN's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton buy from Amazon

I am only selling the codes.

But that I already knew. But the page was publishing as code for CTP2.

Now, Dale, answer me my questions. Please.
Was I giving a glance, and was I thinking, will it be that it is possible to do a code, for every time that you are below A hundred thousand of Gold, you receive other Five hundred thousand?

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:14
  Old Post 20-07-2001 01:21 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Avatar Enlargement: We've got the solution

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).

BRA_TiTaN is offline BRA_TiTaN
Settler
Rio de Janeiro, Brazil
Jul 2001
time: 02:14
  Old Post 20-07-2001 05:24 Visit BRA_TiTaN's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Put an end to popups!

Dale, your code worked perfect.
But I will alter the value, because it is very loud.
A million gold for turn is a lot of thing.
When I was in the 50 tuns, I didn't know what to do provided money.....

Locutus, Your code I didn't still test, but he will work.
That is it more right. Because the person, would not be full of gold


I thank all for the answer and attention.

Locutus, I have the exact site, alias they are two.
I will post here later. When I see in the History of the Browser

BRA_TiTaN is offline BRA_TiTaN
Settler
Rio de Janeiro, Brazil
Jul 2001
time: 02:14
  Old Post 14-09-2001 01:43 Visit BRA_TiTaN's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Put an end to popups!

Pedrunn, Faz um codigo pra mim, so que com public wokd (PW) por favor.
Valeu cara.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:14
  Old Post 14-09-2001 09:14
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

I am not a programer so i don not know how to make codes.
But i got this one from a MM2 file that adds a small amount of PWs at the beginning of the game for some turns.

code:
HandleEvent(NextStrategicState) 'ChangeHumanMayorStrategy' pre { // increase PW reserve for human players int_t db_index; int_t ss_priority; db_index = StrategyDB(STRATEGY_LARGE_PW_RESERVE); ss_priority = 500; if (db_index >= 0 && IsHumanPlayer(player[0])) { ConsiderStrategicState(player[0], ss_priority, db_index); } }

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    top of page
Rate This Thread:
archivepost
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.0370 seconds (87.42% PHP - 12.58% MySQL) with 31 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