Thanks much. I should have used the search function but I sort of gave up on that a while back. I can never find what I want.
I will use it to make sense of that nonsensical code.
Thanks much. I should have used the search function but I sort of gave up on that a while back. I can never find what I want.
I will use it to make sense of that nonsensical code.
It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
Ego is the anesthetic for the pain of stupidity.-me
It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
Click here for my Phalanx/Aquilifer mod
After much searching I am back where I have started. Nothing I found explained how to find the proper combination of hidden_resources to make a unit recruitable in the provinces of my choice.
However by logical deduction I came up with a theory on how I can accomplish this. Take Gawjam~Kimbrioz and Gawjam~Skandzawarjoz for instance, let us say that I wish to make a unit recruitable in those two settlements but nowhere else. I find the provinces in descr_regions and then find the relevent resources for the two provinces:
NW, C, y1, n2, y4, y8
and
NW, D, y1, n2, n4, n8,
respectively. Now I don't have a clue what this means, but when I take the two resources that the two have in common (y1 and n2) and give them both to my new unit as hidden_resources, then my unit will be recruitable only in those two provinces.
It sounds worse than it did five minutes ago when I thought it up. There are probably other provinces with the same two resources come to think of it. Would someone mind explaining to me how this system works?
It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
Ego is the anesthetic for the pain of stupidity.-me
It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
Click here for my Phalanx/Aquilifer mod
This is what you would need to do in order to do what you want in your example there. I'm using the Agema Hellenikon in my example, because the Agema Hellenikon are fucking epic.
recruit "eastern infantry agema hellenikon" 0 requires factions { pontus, } and hidden_resource NW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
recruit "eastern infantry agema hellenikon" 0 requires factions { pontus, } and hidden_resource NW and hidden_resource D and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
Insert those lines into the corrrect barrack entry*or entries* for a faction in the EDB and now the Saka could recruit Agema Hellenikon in Gawjam~Kimbrioz and Gawjam~Skandzawarjoz.
I shouldn't have to live in a world where all the good points are horrible ones.
Is he hurt? Everybody asks that. Nobody ever says, 'What a mess! I hope the doctor is not emotionally harmed by having to deal with it.'
Thank you kind sir,
though I would very much appreciate if you could tell me how you found the proper combination of strange number-letter figures to reach "hidden_resource NW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8" and "hidden_resource NW and hidden_resource D and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8."
It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
Ego is the anesthetic for the pain of stupidity.-me
It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
Click here for my Phalanx/Aquilifer mod
This is why I posted this table in my last post.though I would very much appreciate if you could tell me how you found the proper combination of strange number-letter figures to reach
You find province in the list (copy it to excel or other such software so its aligned properly ) and copy all columns from DIV to Red (without Red and Reg column ).
This is unique set of hidden resources that defines province.
For example Augila:
Then you have to only transform it to RTW code:Code:SW A y1 n2 y4 y8
If units should be recruitable in 3 provinces it will have 3 separate lines in EDB.Code:recruit "celtic general neitos" 0 requires {} and hidden_resource SW and hidden_resource A and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
Last edited by LorDBulA; 08-20-2008 at 06:36.
That explains it...except for one tiny problem. The code for Augila from DIV to Red is
...without the reg and red columns:Code:SW A 13 y1 n2 y4 y8 47 121
This is quite different from the code you showed me. Also, why copy the code from DIV to Red if you are just going to delete Red anyways, why not just copy from DIV to 8?Code:SW A 13 n2 y4 y8 47
It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
Ego is the anesthetic for the pain of stupidity.-me
It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
Click here for my Phalanx/Aquilifer mod
No Reg is 6th column. Check again.That explains it...except for one tiny problem. The code for Augila from DIV to Red is
Code:
SW A 13 y1 n2 y4 y8 47 121
...without the reg and red columns:
Code:
SW A 13 n2 y4 y8 47
Saying copy from DIV to Red excluding Red and saying Copy from DIV to 8 including 8 is the same.Also, why copy the code from DIV to Red if you are just going to delete Red anyways, why not just copy from DIV to 8?
I really don't see what is the problem.
Just to make everything clear, combination of this columns uniquely identifies region:
Div,Sect,1,2,4,8
Bookmarks