|
Post by steammagic on Nov 11, 2006 13:42:47 GMT -6
You did a tremendous amount of work in the scenario gs files (as elsewhere), ManTera.
This one concerns the formula used for the AI buildings and you have indicated
getdifficultylevel MEDIUM_LEVEL eq{p{BUILDING_EXPERIENCE 4 6 gamerand 100 mul 0 1 gamerand 1 eq{75 add}{50 add}ifelse setbuildingdata}enumplayerbuildings}if
How does this work?-- it seems to be some sort of random dynamic varible going on
wheras the patched game has it: p{BUILDING_EXPERIENCE 350 setbuildingdata}enumplayerbuildings
Where here it just seems to add 350 experience to the building
|
|
|
Post by Boaster on Nov 11, 2006 22:36:45 GMT -6
getdifficultylevel MEDIUM_LEVEL eq{p{BUILDING_EXPERIENCE 4 6 gamerand 100 mul 0 1 gamerand 1 eq{75 add}{50 add}ifelse setbuildingdata}enumplayerbuildings}if It is a very dynamic of randomi values. 4 6 gamerand: random number between 4 and 6. 100 mul: multiply by 100. At this point we have 400, 500, or 600 experience in the building. 0 1 gamerand 1 eq: if a random number between 0 and 1 is equal to 1, then we'll take the first set. First set is 75. Second set is 50. All possible experience set for Buildings on medium difficulty. 400 + 75 = 475 400 + 50 = 450 500 + 75 = 575 500 + 50 = 550 600 + 75 = 675 600 + 50 = 650 Each building will be calculated individually due to randomization of numbers. Does this help you any?
|
|
|
Post by steammagic on Nov 12, 2006 20:11:45 GMT -6
This is great stuff, I was looking thru the mpq editing guide and just couldn't quite figure it out, these examples help and should be added to the guide.
thank you
|
|