View Single Post
  #6  
Old 12-11-2009, 11:39 PM
blacklegionary blacklegionary is offline
Approved Member
 
Join Date: Oct 2008
Posts: 55
Default

You are right, you need to convert it back to *.loc for the game to recognize it . The 2nd line in the editor menu will do the job, and i don't think a new *.embryos.loc file will work, each of these file is used for certain location, ie: debir,embryos.loc is used for the upper ground area of Debir. Well as for the shop data let's have a look .
*The entire information for a shop's slot should look like this :

{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 1 elements
{
{Y}{units}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{1} // 1 elements
{
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 5 elements
{
{A}{races} = {}
{A}{units} = {beholder,100:5:300,beholder2,100:5:300,bear2,100: 5:300,graywolf,100:5:300}
{A}{level} = {}
{A}{kolvo} = {}
{U}{prob} = {10}
}
}
}

It means this slot can have 100-300 beholder, evil beholder (which codename is beholder2 if some1 don't know), ancient bear (codename bear2) and gray wolf. The number 5 put between them mean the number will always be able to divide for 5.If you see something like this:
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 1 elements
{
{Y}{units}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{1} // 1 elements
{
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 5 elements
{
{A}{races} = {demon}
{A}{units} = {beholder,100:5:300,beholder2,100:5:300,bear2,100: 5:300,graywolf,100:5:300}
{A}{level} = {2:5}
{A}{kolvo} = {100:200}
{U}{prob} = {10}
}
}
}

It mean this slot may have 100-200 demon unit lv 2-5 as well as those troops listed before. If remove the info in the unit line then this slot can only have demon unit lv 2-5. The kolvo line is used to determine the number of troops may appear if it's not in the unit line. Now about this prob line, first let's have a look at this :
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 1 elements
{
{Y}{units}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{1} // 2 elements
{
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 5 elements
{
{A}{races} = {undead}
{A}{units} = {thorn,1000:10:3000,thorn_warrior,1000:10:3000,kin gthorn,20:50,hyena,1000:10:3000}
{A}{level} = {1:2}
{A}{kolvo} = {200:500}
{U}{prob} = {10}
}
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 5 elements
{
{A}{races} = {}
{A}{units} = {}
{A}{level} = {}
{A}{kolvo} = {}
{U}{prob} = {10}
}
}
}
It means this slot can have 1000-3000 thorn warrior, thorn hunter, hyena, 20-50 royal thorn OR it can be a blank slot. Let's look at another example:
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 1 elements
{
{Y}{units}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{1} // 3 elements
{
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 5 elements
{
{A}{races} = {undead}
{A}{units} = {}
{A}{level} = {1:2}
{A}{kolvo} = {500:1000}
{U}{prob} = {10}
}
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 5 elements
{
{A}{races} = {undead}
{A}{units} = {}
{A}{level} = {3}
{A}{kolvo} = {200:500}
{U}{prob} = {10}
}
{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 5 elements
{
{A}{races} = {undead}
{A}{units} = {}
{A}{level} = {4}
{A}{kolvo} = {10:30}
{U}{prob} = {10}
}
}
}

It means this slot can have 1000-2000 undead unit lv 1-2 or 200-500 lv 3 undead or 10-30 level 4 ones (this suck imo), not all of them. The prob line is used in these condition, the higher the prob value the higher the chance it will appear in a lot. If you want to add a new slot to the shop remember to check it carefully, it must end with 3 }, the embryos.loc file is often long so it's not easy to find the error and fix it. If you habe anymore questions just ask, I'll try to answer.
Note: rancor misunderstand me, I mean most of the crap units lv 1-2 are human/neutral (ie:bowman, swordsman, robber, dragon fly,hyena, spider...) not the entire human race is crap, those knight, paladin along with black knight on the other hand is too strong (although very expensive so they're worth the price) in player's hand while they can be easily isolated in the AI's command .
Reply With Quote