River_God
Member
Offline
Posts: 184
|
|
« on: March 26, 2008, 12:09:06 PM » |
|
Sorry to add two topics, I didn't want to ask questions to you and take suggestions in the same topic, it would get long for people reading it.
I have done some simple things to the script, and came across this line:
int civSpanish = 1; int civBritish = 2; int civFrench = 3; int civPortuguese = 4; int civDutch = 5; int civRussian = 6; int civGerman = 7; int civOttoman = 8; int civAztec=17; int civSioux=16; int civIroquois=15;
is there a specific reason Aztec is 17, etc. Or can I use whatever numbers I feel like? I mean I understand why Spanish is 1 and British is 2, but why jump to 17 all of a sudden?
|
|
« Last Edit: March 26, 2008, 06:11:06 PM by pftq »
|
Logged
|
"I am not sure why people are so afraid of new ideas, I am afraid of the old ones" :p
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
River_God
Member
Offline
Posts: 184
|
|
« Reply #13 on: April 25, 2008, 07:36:08 AM » |
|
Ok, you were right, yours works (except for techs of course). I think this may be the problem, because I never fully understood format for it:
var3 = rmCreateObjectDef("FortI"+i); /*RG*/ varx1="FortFrontier"; rmAddObjectDefToClass(var3, clForts); rmAddObjectDefItem(var3,"HotAirBalloon",1,0.0); rmPlaceObjectDefAtAreaLoc(var3,i,rmAreaID("PlayerBridge"+i+"_1"),1); /*RG*/ if(rmGetPlayerCiv(i)==civIndians) varx1="ypAgraFort"; /*_RG*/ else changeunit(""+var3, varx1); It's the else statement I think is wrong.
|
|
|
Logged
|
"I am not sure why people are so afraid of new ideas, I am afraid of the old ones" :p
|
|
|
|