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-Creation/AI/Mods/Scenarios-Archive > Unit names
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
Turambar is offline Turambar
Prince
England
Apr 2002
time: 05:21
  Old Post 03-08-2002 18:50 Visit Turambar's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Unit names Support Apolyton buy from Amazon

Is it possible to change the name of a unit during a game? For example if I've got 2 archers and during the game I want to change ones name from Archer to Dave and the other to Bob.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 03-08-2002 19:24 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton buy from Amazon

Only by amking an army of one and then naming the army. But then it means you cannot stack Dave and Bob together without losing their identities.

HuangShang is offline HuangShang
King
USA, SoCal, L.A.
Jul 2002
time: 21:21
  Old Post 03-08-2002 23:57
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Avatar Enlargement: We've got the solution

thats tight

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:21
  Old Post 06-08-2002 00:30 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

yes you can kill the arches and reincarnate as freed, bob ,Dave, and or sue. ( by turning them into special units with different name from archer).


It works well in the Samaria scenario. Only deferens in that is skill upgrade but look into it, it is possible

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 06-08-2002 01:42 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization 2

You'd need an extra unit for every name of every normal unit. I think that option is a little unfeasable.

Turambar is offline Turambar
Prince
England
Apr 2002
time: 05:21
  Old Post 10-09-2002 00:42 Visit Turambar's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Full PM-box? Change here!

Just saw this page http://apolyton.net/ctp2/modificati...icbuiltin.shtml which contains:

quote:
UnitRecord array
unitrecord.name - the unit type's name
unitrecord.attack - the unit type's attack value
unitrecord.defense - the unit type's defense value
unitrecord.cost - the production cost of the unit type
unitrecord.ranged - the unit type's ranged attack value
unitrecord.movement - the unit type's move points


Is it then possible to change unitrecord.name to call a unit Bob? Or unitrecord.attack etc to change a units stats during the game?

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 10-09-2002 01:07 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Avatar Enlargement: We've got the solution

They're read-only.

The unitrecord.name just accesses its name in gl_str.txt, for example:
UNIT_WAR_CHIEF "War Chief"

The unit stats should theoretically be able to be changed using the mod_UnitAttack() function, but its a weird function that probably does not work properly (ie. returns 1 - normal attack, or 0 - no attack)

So really, there is no way to alter any unitrecord array members, sorry.

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:21
  Old Post 10-09-2002 05:04
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Got spare money?

Actually, unitrecord.name is only a string, not an int or anything. So technically, what IW said is not 100% correct. The stored element in unitrecord.name = "Archer" for an archer, not ID_UNIT_ARCHER, and so forth.

This is the same for player.name, city.name and many other permanent array members.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:21.
Apolyton Time is 00:21.
    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.0425 seconds (88.52% PHP - 11.48% 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