Вы находитесь на странице: 1из 11

22/12/13

[Tool] Excel Traitgenerator


Welcome, nikossaiz

Home

What's New?

Forum

New Posts Private Messages FAQ Calendar

Forum

Medieval II: Total War

Text Editing & Scripting

Notifications

Rules
Community

FAQ
Forum Actions

Medieval II Mod Workshop

My Profile

Wiki

My Account

Awards

Log Out

Downloads
Advanced Search

Quick Links

Tools, Tutorials, and Resources

[Tool] Excel Traitgenerator

Results 1 to 12 of 12

+ Reply to Thread
Thread: Excel Traitgenerator
Thread Tools

Search Thread

Rate This Thread

Display

#1

May 08, 2009, 11:10 PM

konny

Excel Traitgenerator

The MS Excel Trait Generator


Artifex

This is a trait generator, or editor, that was done with Excel. You
need Excel 97-2003 or higher to get it running. I couldnt find
anything of the like in the download section, so I made one myself.
May be youll find it useful too.

Join Date: Jul 2007


Location: Germania Inferior
Posts: 3,660

1. Getting started

When you start the Traitgenerator youll see several tabs. The
green one is your worksheet. It is blank because you will copy stuff
from the orange tabs here. The red tabs you should not touch, and
you should not edit anything in the orange sections.
www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

1/11

22/12/13

[Tool] Excel Traitgenerator

2. Creating a new trait


Now, lets make a new trait. In our example we want to make a
trait GoodJudge with three levels, a gain- and a loose-message
and an epithet for the third level, an anti-trait with the name
BadJudge also with three levels a gain- and a loose-message and
an epithet for the third level. Each level should give or take one
additional point in law.

To do so open the Trait-tab. Here youll see a complete trait with


the name Traitname, five levels, gain- and lose-messages, that
gives lots of Unorthodoxy, plus a corresponding anti-trait.

Further down youll see the part for export-vnvs.txt, the entries
with the { } brackets.

Because we do not want to edit anything in the orange zone, we


copy this entire sheet into the Worksheet.

Now we are ready to start. The first you do is to replace the name
Traitname with the name of the trait you wanted to make,
GoodJudge. As you can see, the Traitgenerator automatically
changed the names of the levels and descriptions accordingly. This
is nearly where we wanted to go, but you still have a few things to
do.

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

2/11

22/12/13

[Tool] Excel Traitgenerator

Because we wanted this trait to add law, you can click into the cell
with effect. This will open a list with all possible effects. Pick the
one of your choice. It is obvious that, even though you can assign
each attribute to each character, not all combinations make sense;
like Command for a princess. But some modders use this to store
information on characters that way. When needed change the
values behind the effect to the amounts you wish.

You can change the character in the same way. When you need
more characters, you need to add them by hand.
Now lets go to the anti-trait. Its name was to be BadJudge, so
change that accordingly. After that make all the changes in effects
you need here, i.e. change the first effect line to law.

As you can see, the Traitgenerator has exported the name of your
anti-trait to the respective line of the GoodJudge.
Now we still have a lot of stuff we dont need on this worksheet,
like the gain descriptions for the lower levels, the additional two
levels, the Hidden remark. Delete these things in two steps:

First delete the contents of the cells you dont need, but do not
delete the respective lines.

Then select the entire worksheet and copy & paste the contents
value. After that you can delete the lines you dont need.

Why this is done in two steps youll see when you come to the
export_vnvs.txt section: The parts not used have left lines starting
with empty brackets {}. That way you dont have to scroll up and
down to find the entries that are not needed. Delete these lines.
You also see that the Traitgenerator has exported the name of your
www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

3/11

22/12/13

[Tool] Excel Traitgenerator

levels, created generic descriptions and gain/loose-massages,


exported the correct effect (it does so for maximum the pre-defined
three effect lines) and created a generic epithet. You certainly wish
to edit the visible texts, but dont do here.

It is time to get your trait into the game! Copy the upper part of
your worksheet into export_descr_character_traits.txt into the
traits section.

The lower section goes into export_vnvs.txt. Here you can edit the
visible texts if you like. But do not edit anything that is {inside the
brackets}! For now we leave everything as it is, because this is
just a test-trait.

3. Creating a Trigger
A trait alone wont help you much because no one would be able to
acquire it. For that youll need a trigger. To make one, open the
Trigger sheet.

Here you can see all possible events for traits sorted into groups,
like Military, Governors and the like. Under each event you find
the conditions. These are also grouped into things like Character
Religion, Faction Economy, Settlement and the like. You see
that not all groups of conditions appear under each event. In this
case this event cannot export to that group. For example
SettlementName works with CharacterTurnEnd but not with
CharacterTurnStart, therefore youll find the group Settlement
listed under the event CharacterTurnEnd but not under
CharacterTurnStart.
But beware! This is not fool proved, so to speak. There are still a
couple of combinations allowed by this sheet that wont work, wont
make any sense or wont give you results.
You can open a list for each group when clicking in the respective
cell. The conditions are listed in the sample form of the Docus. That
is to remind you that some conditions need additional information to
work, like the name of a trait.

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

4/11

22/12/13

[Tool] Excel Traitgenerator

At the end of the sheet youll find the head- and base-lines of your
trigger. Copy this to the worksheet.

For our GoodJudge trait we want to make a simple test trigger that
assigns one level to the faction leader every turn. So search for the
event CharacterTurnStart and copy the entire block into
worksheet between the head- and base-lines of your trigger.

Give your trigger a name. After that search in the cell of the
Character Family group for the condition IsFactionLeader. Copy
this into the Condition line.

After that search in the same group for the Trait condition. It
says Trait Girls even though we want Trait GoodJudge, but this
can be changed later. Add the trait GoodJudge to the Affects-line.
It also needs a value (1, 2 etc). You can copy and delete lines to
create or remove additional conditions in this worksheet without
causing trouble, the values are not exported anywhere.

When you are done, copy this trigger to the end of the file
export_descr_character_traits.txt. Here you can make the final
edit, like changing the Girls into Goodjudge, adding the value to
the Affects line or changing the value of the chance.
Save everything, start your game, search for your faction leader.
He should have the first level GoodJudge already now for starting
his first turn:

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

5/11

22/12/13

[Tool] Excel Traitgenerator

Happy Traiting!
Attached Files
Traitgenerator.rar (27.3 KB, 289 views)

Team member of: Das Heilige Rmische Reich, Europa Barbarorum, Europa Barbarorum II, East of
Rome
Modding help by Konny: Excel Traitgenerator, Setting Heirs to y our preference
dHRR 0.8 beta released! get it here
New: Nativ e A merica! A mini-mod for Kingdoms A merica

Reply

Reply With Quote

#2

May 08, 2009, 11:15 PM

S-te-Fan

Re: Excel Traitgenerator


This is soooo cool! Awesome work!

Equites Cohortales
Join Date: Jun 2008
Location:
Diessen, The Netherlands, Near the
belgium border.
Posts: 4,039

Reply

Reply With Quote

#3

May 09, 2009, 09:59 PM

toluas

Re: Excel Traitgenerator


Wonderful work!

Banzai jden-ki
Join Date: Oct 2008
Posts: 2,462

Reply

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

Reply With Quote

#4

6/11

22/12/13

[Tool] Excel Traitgenerator

#4

May 12, 2009, 01:23 PM

Gorrrrrn

Re: Excel Traitgenerator


Loads OK into Open Office 3.0!
(not tried it out yet.)

Citizen

Join Date: Jan 2007


Location: here
Posts: 5,712

Reply

Reply With Quote

#5

May 26, 2009, 03:24 PM

LuckyNinja

Re: Excel Traitgenerator


Hmmm...I have followed the instructions to the letter, yet in order
to get the GoodJudge trait, I have to manually use the console and
type it in

Taih no heishi
Join Date: Mar 2009
Location: England
Posts: 466

To the person who is using/used my TATW signature - who are you? You
never left a name with the rep comment, and I'm really curious
Reply

Reply With Quote

#6

May 26, 2009, 03:53 PM

konny

Re: Excel Traitgenerator


In this case you have made something wrong. Because the Trait is
there (otherwise you wouldn't be able to grant it via console), it
must be something in the trigger section. Could you please post
how your trigger looks.

Artifex

Join Date: Jul 2007


Location: Germania Inferior
Posts: 3,660

Team member of: Das Heilige Rmische Reich, Europa Barbarorum, Europa Barbarorum II, East of
Rome
Modding help by Konny: Excel Traitgenerator, Setting Heirs to y our preference
dHRR 0.8 beta released! get it here
New: Nativ e A merica! A mini-mod for Kingdoms A merica

Reply

May 26, 2009, 04:20 PM

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

Reply With Quote

#7

7/11

22/12/13

[Tool] Excel Traitgenerator

LuckyNinja

Re: Excel Traitgenerator


Okay, cheers for the response. Here it is:

Taih no heishi
Join Date: Mar 2009
Location: England
Posts: 466

;-----------------------------------------Trigger Test_GoodJudge
WhenToTest CharacterTurnStart
Condition IsFactionLeader
and Trait GoodJudge < 3
Affects GoodJudge Chance 100
;-----------------------------------------(obviously there are indents)

To the person who is using/used my TATW signature - who are you? You
never left a name with the rep comment, and I'm really curious
Reply

Reply With Quote

#8

May 26, 2009, 04:29 PM

konny

Re: Excel Traitgenerator


Originally Posted by LuckyNinja

Okay, cheers for the response. Here it is:


Artifex

Join Date: Jul 2007


Location: Germania Inferior
Posts: 3,660

;-----------------------------------------Trigger Test_GoodJudge
WhenToTest CharacterTurnStart
Condition IsFactionLeader
and Trait GoodJudge < 3
Affects GoodJudge Chance 100
;-----------------------------------------(obviously there are indents)

Affects GoodJudge 1 Chance 100

Team member of: Das Heilige Rmische Reich, Europa Barbarorum, Europa Barbarorum II, East of
Rome
Modding help by Konny: Excel Traitgenerator, Setting Heirs to y our preference
dHRR 0.8 beta released! get it here
New: Nativ e A merica! A mini-mod for Kingdoms A merica

Reply

May 26, 2009, 04:49 PM

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

Reply With Quote

#9

8/11

22/12/13

[Tool] Excel Traitgenerator

LuckyNinja

Re: Excel Traitgenerator


Added that, but now the game is just CTDing without even an error
message. Just starts to load up and then goes off......

Taih no heishi
Join Date: Mar 2009
Location: England
Posts: 466

To the person who is using/used my TATW signature - who are you? You
never left a name with the rep comment, and I'm really curious
Reply

Reply With Quote

#10

May 26, 2009, 06:07 PM

konny

Re: Excel Traitgenerator


What does the error log say?

Artifex

Join Date: Jul 2007


Location: Germania Inferior
Posts: 3,660

Team member of: Das Heilige Rmische Reich, Europa Barbarorum, Europa Barbarorum II, East of
Rome
Modding help by Konny: Excel Traitgenerator, Setting Heirs to y our preference
dHRR 0.8 beta released! get it here
New: Nativ e A merica! A mini-mod for Kingdoms A merica

Reply

Reply With Quote

#11

May 26, 2009, 06:41 PM

LuckyNinja

Re: Excel Traitgenerator


Checked it, and I got it to work again. transpired that my
computer(may it be damned for all eternity) thought it'd be mighty
funny to add in some lines which I had deleted (and proceeded to
save having been deleted) which caused the error. Its all working
now. Well done Knny, this has been very helpful and brilliant

Taih no heishi
Join Date: Mar 2009
Location: England
Posts: 466

To the person who is using/used my TATW signature - who are you? You
never left a name with the rep comment, and I'm really curious
Reply

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

Reply With Quote

9/11

22/12/13

[Tool] Excel Traitgenerator

#12

May 26, 2009, 09:59 PM

konny

Re: Excel Traitgenerator

Artifex

Join Date: Jul 2007


Location: Germania Inferior
Posts: 3,660

Team member of: Das Heilige Rmische Reich, Europa Barbarorum, Europa Barbarorum II, East of
Rome
Modding help by Konny: Excel Traitgenerator, Setting Heirs to y our preference
dHRR 0.8 beta released! get it here
New: Nativ e A merica! A mini-mod for Kingdoms A merica

Reply

Reply With Quote

+ Reply to Thread
Quick Reply

Post Quick Reply

Go Advanced

Cancel

Previous Thread | Next Thread


Thread Information

There are currently 1 users browsing this thread. (1 members and 0 guests)
nikossaiz
Posting Permissions

You may post new threads


You may post replies
You may post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
[VIDEO] code is On
HTML code is Off
Forum Rules

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

10/11

22/12/13

[Tool] Excel Traitgenerator


---- TWCenter

Contact Us Total War Center Archive


Privacy Statement Terms of Service
Top

All times are GMT +2. The time now is 03:25 PM.
Forums powered by vBulletin Version 4.2.0 - Copyright 2000 - 2013, Jelsoft Enterprises Ltd.

vBulletin Optimisation provided by vB Optimise (Lite) - vBulletin Mods & Addons Copyright 2013 DragonByte Technologies Ltd.

www.twcenter.net/forums/showthread.php?259316-Excel-Traitgenerator

11/11