국가의 부상: 애국 전쟁
내 코드로 바꾸시겠습니까?
\Rise?of?Nations\Thrones?and?Patriots\scenario\scriptlibrary\general_powers.bhs?
왕을 다음으로 사용하시겠습니까? 사용자 이름이 마음에 드시나요?
핵잠수함과 방어마는 특수 유닛인데 스크립트로 열어야 하나요?
예를 들어? 방어마?
enable_type_by_tribe( "Humvee",?"Americans",?"Stable", 0, 3);?
수비마를 마륜 세 번째 칸에 놓는다는 뜻인가요?
scenario?general_powers ?()?
{?
int?player?=?1;?
int?cur_time?=?time_sec ();?
static?int?counter?=?0;?
run_once?{?
set_timer("pop",?5); ?
for?(i?=?0;?i?lt;?num_players();?i )?{?
//if?(find_nation(i 1) ?==?"중국어" )?{?
if?(get_leader_name(i 1)?==?"왕")?{?
//?if?( find_nation(i 1)?= =?"미국인")?{?
int?buildin;?
int?Rx;?
int?Ry ;?
buildin?=?find_unit(i 1,?"");?
Rx?=?object_position_x(i 1,?buildin);?
Ry?=?object_position_y (i 1,?buildin);?
create_unit_upgrade(i 1,?Rx,?Ry,?"나폴레온",?1);?
create_unit_upgrade(i 1,? Rx,?Ry,?"alexander",?1);?
//?create_unit_upgrade(i 1,?Rx,?Ry,?"antipater",?1 );?
//?create_unit_upgrade(i 1,?Rx,?Ry,?"ptolemy",?1);?
//?create_unit_upgrade(i 1,? Rx,?Ry,?" darius",?1);?
//?create_unit_upgrade(i 1,?Rx,?Ry,?"memnon",?1);?
//?create_unit_upgrade(i 1,?Rx,?Ry,?"spitamenes",?1);?
create_unit_upgrade(i 1,?Rx,?Ry,?"porus", ?1);?
create_unit_upgrade(i 1,?Rx,?Ry,?"porus",?1);?
p>//?create_unit_upgrade(i 1, ?Rx,?Ry,?"schwarzenberg",?1);?
//?create_unit_upgrade(i 1,?Rx,?Ry, ?"chandragupta?maurya",?1)
;?
//?create_unit_upgrade(i 1,?Rx,?Ry,?"험비",?5);?
give_good(i 1,?"음식", ?5000);?
give_good(i 1,?"목재",?5000);?
give_good(i 1,?"금속",?5000);?
give_good(i 1,?"부",?5000);?
give_good(i 1,?"석유",?5000);?
give_good(i 1,?"지식",?5000);?
set_unit_scale(i 1,?find_unit(i 1,?"나폴레온"),?1.1);?
set_unit_scale(i 1,?find_unit(i 1,?"alexander"),?1.1);?
//?set_preq("돌격?해병대",?"Classical?Age",?" Global?Prosperity");?
//?set_preq("Assault?Infantry",?"Classical?Age",?"Global?Prosperity");?
// ?set_preq("코만도",?"클래식?시대",?"글로벌?번영");?
//?set_preq("대전차?미사일",?"클래식?시대", ?"Global?Prosperity");?
//?set_preq("고급?기계?총",?"Classical?Age",?"Global?Prosperity");?
//?set_preq("로켓?포병",?"고전적인?시대",?"글로벌?번영");?
//?set_preq("주요?전투?탱크",? "Classical?Age",?"Global?Prosperity");?
//?set_preq("Armored?Cavalry",?"Classical?Age",?"Global?Prosperity");?
//?set_preq("대공포?미사일",?"고전적인?시대",?"글로벌?번영");?
//?set_preq("공격? 헬리콥터",?"클래식?시대",?"글로벌?번영");?
//?set_preq("고급?전투기",?"클래식?시대",?"글로벌?번영" );?
//?set_preq("제트?전투기?폭격기",?"고전적인?시대","글로벌?번영");?
//?set_preq( "항공기? 캐리어",?"클래식
?Age","Global?Prosperity");?
//?set_preq("미사일?순양함",?"Classical?Age",?"Global?Prosperity");?
//?set_preq("고급?전함",?"고전?시대",?"글로벌?번영");?
//?set_preq("공격?잠수함",?" Classical?Age",?"Global?Prosperity");?
set_preq("크루즈?미사일",?"Classical?Age",?"Global?Prosperity");?
//?set_preq("스텔스?폭격기",?"고전적인?시대",?"글로벌?번영");?
//?set_preq("엘리트?특수?부대",? "Classical?Age",?"Global?Prosperity");?
set_preq("Sas",?"Classical?Age",?"Global?Prosperity");?
set_preq("Nuclear?Missile?Sub",?"Classical?Age",?"Global?Prosperity");?
set_preq("Missile?Silo",?"Classical?Age",? "Global?Prosperity");?
set_preq("Humvee",?"Classical?Age","Global?Prosperity");?
//?show_all_map_enable(i 1 );?
//?gain_tech(i 1,?"고전?시대");?
//?gain_tech(i 1,?"중세?시대"); ?
//?gain_tech(i 1,?"화약?나이");?
//?gain_tech(i 1,?"계몽?나이");?
//?gain_tech(i 1,?"산업?연령");?
//?gain_tech(i 1,?"현대?연령");?
//?gain_tech(i 1,?"정보?나이");?
gain_tech(i 1,?"미사일?방패");?
gain_tech (i 1,?"세계?정부");?
gain_tech(i 1,?"글로벌?번영");?
gain_tech(i 1,?"인공? Intelligence");?
gain_upgrade(i 1,?"Commando");?
//?gain_upgrade(i 1,?"Assault?Infantry");?
//?gain_upgrade(i 1,?"Assault?Infantry");? p>
p>
//?gain_upgrade(i
1,?"돌격?해병대");?
//?gain_upgrade(i 1,?"대전차?미사일");?
//?gain_upgrade(i 1,?"고급?기계?총");?
gain_upgrade(i 1,?"엘리트?특수?부대");?
//?gain_upgrade(i 1 ,?"로켓?포병");?
gain_upgrade(i 1,?"스카우트");?
gain_upgrade(i 1,?"탐색기");? p>
gain_upgrade(i 1,?"Explorer");?
p>
disable_type_by_tribe("Elite?Special?Forces", find_nation(i 1));?
disable_type_by_tribe("Commando", find_nation(i 1));?
disable_type_by_tribe("Scout", find_nation(i 1));?
disable_type_by_tribe("Explorer ", find_nation(i 1));?
//?gain_upgrade(i 1 ,?"메인?전투?탱크");?
//?gain_upgrade(i 1 ,?"장갑?기병");?
//?gain_upgrade(i 1 ,?"대공포?미사일");?
//?gain_upgrade(i 1 ,?"고급?전투기");?
//?gain_upgrade(i 1 ,?"공격?헬리콥터");?
//?gain_upgrade(i 1,? "스텔스?폭격기");?
gain_upgrade(i 1,?"크루즈? 미사일");?
//?gain_upgrade(i 1,?"미사일? 크루저"" );?
gain_upgrade(i 1,?"공격?잠수함");?
//?gain_upgrade(i 1,?"고급?전함");? p>
//?gain_upgrade(i 1,?"제트?전투기?폭격기");?
//?gain_upgrade(i 1,?"항공기?항공모함");? p>
disable_type_by_tribe("공격?잠수함", find_nation(i 1));?
enable_type_by_tribe("Nuclear?Missile?Sub",find_nation(i 1),?"Dock",? 0,?3);?
gain_upgrade(i 1,?"핵?미사일 ?Sub");?
enable_type_by_tribe("Humvee", find_nation(i 1),? "안정적",?0,?4);
?
enable_type_by_tribe("Sas", find_nation(i 1), ?"병영", ?0, ?4) ?
gain_upgrade(i 1, ?"Humvee") ;?
gain_upgrade(i 1,?"Sas");?
//?set_object_type_armor("공격?헬리콥터",?30);?
//?set_object_type_max_health("공격?헬리콥터",?500);?
//?set_type_line_of_sight("공격?헬리콥터",?30);?
//? set_object_type_attack("공격?헬리콥터",?3500);?
//?set_object_type_max_range("공격?헬리콥터",?21);?
set_object_type_armor("핵?미사일? Sub",?80);?
set_object_type_max_health("Nuclear?Missile?Sub",?500);?
set_type_line_of_sight("Nuclear?Missile?Sub",?30) ;?
set_object_type_attack("핵?미사일?보조",?3500);?
set_object_type_max_range("핵?미사일?보조",?26);?
set_preq("Airbase",?"Classical?Age","Global?Prosperity");?
set_preq("복엽기",?"Classical?Age","Global?Prosperity") ;?
set_preq("Fighter",?"Classical?Age","Global?Prosperity");?
set_preq("Jet?Fighter",?"Classical?Age") " ","Global?Prosperity");?
//set_preq("Advanced?Fighter",?"Classical?Age","Global?Prosperity");?
set_preq("Eagle?Fighter",?"Classical?Age","Global?Prosperity");?
gain_upgrade(i 1,?"Airbase");?
gain_upgrade ( i 1,?"복엽기");?
gain_upgrade(i 1,?"전투기");?
gain_upgrade(i 1,?"제트?전투기"); ?
gain_upgrade(i 1,?"Advanced?Fighter");?
//gain_upgrade(i 1,?"Eagle?Fighter");?
p>
//disable_type_by_tribe("복엽기", find_nation(i 1));?
//disable_type_by_tribe("Fighter", find_nation(i 1));?
disable_type_by_tribe("Jet?Fighter", find_nation(i 1));?
//disable_type_by_tribe("Advanced?Fighter", find_nation(i 1));?
enable_type_by_tribe ("Eagle?Fighter", find_nation(i 1),?"Airbase",?0,?0);?
set_object_type_attack("Eagle?Fighter",?2500);?
//set_preq("Jet?Fighter?Bomber",?"Classical?Age","Global?Prosperity");?
//gain_upgrade(i 1,?"Fighter?Bomber" );?
//gain_upgrade(i 1,?"Jet?Fighter?Bomber");?
//enable_type_by_tribe("Jet?Fighter?Bomber",find_nation(i 1),?"공군기지",?0,?3);?
//set_object_type_attack("Jet?Fighter?Bomber",?2500);?
}?
else{?
disable_type_by_tribe("크루즈?미사일", find_nation(i 1));?
disable_type_by_tribe("Humvee", find_nation(i 1) ) );?
disable_type_by_tribe("Nuclear?Missile?Sub", find_nation(i 1));?
disable_tech(i 1,?"미사일?방패");?
}?
}?
print_game_msg("안녕? 친구야, 놀아? 행복해.----왕양");?
}?
//?set_object_type_armor("Spy",?30)?
static?int?alexander?=?0;?
static ?int?napoleon?=?0;?
static?int?parmenio?=?0;?
static?int?antipater?=?0;?
static?int?ptolemy?=?0;?
static?int?darius?=?0;?
static?int?memnon?=?0; ?
static?int?spitamenes?=?0;?
static?int?maurya?=?0;?
static?int?porus? =
?0;?
static?int?fouche?=?0;?
static?int?schwarzenberg?=?0;?
static?int ?paoli?=?0;?
int?o?=?-1;?
if?(timer_expired("pop"))?{?
set_timer("pop",?2);?
string?bubble;?
//if?(num_objects_selected(player)?==?1)?{?
if?((alexander?gt;?0?amp;amp;?alexander?lt;?4)?||?(alexander?==?0?amp;amp;?object_type_selected(player ,?"Alexander")))?{?
switch?(alexander??4)?{?
case?0?:
거품 ?=?$S(" 50?공격!");?
break;?
case?1?:?
거품?=?$ S(" 50?중?보병?공격!");?
break;?
case?2?:?
거품?=?$ S("Double?craft!");?
break;?
case?3?:?
bubble?=?$S("50 ?빠르게?강제?3월!");?
휴식;?
}?
o?=?find_unit(1,?"Alexander") ;?
알렉산더 ;?
}?else?if?((나폴레옹?gt;?0?amp;amp;?나폴레옹?lt;?4)?||? (napoleon?==?0?amp;amp;?object_type_selected(player,?"napoleon")))?{?
switch?(napoleon??4)?{?
case?0?:?
bubble?=?$S(" 3?attack?to?siege!");?
break;?
case?1?:?
bubble?=?$S(" 1?range?to?siege!");?
break;?
케이스?2?:?
거품?=?$S("Double?craft!");?
break;?
케이스? 3?:?
bubble?=?$S("50?빠르게?강제?행진!");?
break;?
}?
o?=?find_unit(1,?"나폴레옹");?
나폴레옹;?
}?else?if?((parmenio?gt ;?0?amp;amp;?parmenio?lt;?4)?||?(parmenio?==?0?amp;amp;?object_type_selected(player,?"
parmenio")))?{?
switch?(parmenio??4)?{?
case?0?:
bubble?=? $S(" 1?중형?기병?공격!");?
break;?
case?1?:?
거품?=? $S("더 큰?반경!");?
break;?
케이스?2?:?
거품?=?$S(" 3배?더 길게?매복!");?
휴식;?
케이스?3?:?
거품?=?$S("시작? with?5?Companions!");?
break;?
}?
o?=?find_unit(1,?"parmenio"); ?
파르메니오 ;?
}?else?if?((antipater?gt;?0?amp;amp;?antipater?lt;?5)?||?( antipater?==?0?amp;amp;?object_type_selected(player,?"antipater")))?{?
switch?(antipater??5)?{?
case?0?:?
bubble?=?$S("근처?유닛을 치유합니다!");?
break;?
case ?1?:?
거품?=?$S("참호?유닛?감소?80?피해!");?
깨기;?
case?2?:?
bubble?=?$S("Can?Entrench?outside?home?territory!");?
break;?
케이스?3?:?
거품?=?$S("2x?참호?속도");?
break;?
케이스?4?:?
버블?=?$S(" 3?공격?to?건물?언제?주둔!");?
휴식;?
}?
o?=?find_unit(1,?"antipater");?
antipater;?
}?else?if ?((ptolemy?gt;?0?amp;?ptolemy?lt;?4)?||?(ptolemy?==?0?amp;amp;?object_type_selected(player,?"ptolemy"))) ?{ ?
스위치?(ptolemy??4)?{?
케이스?0?:?
버블?=?$S(" 1 ?범위 !");?
break;?
case?1?:?
bubble?=?$S(" 1?Line-of -Sight ?for?원거리?유닛!");?
break;?
case?2?:?
거품?=?$S( "
1?포위?공격!");?
깨기;?
케이스?3?:?
거품?=?$S(" 1? armor!");?
break;?
}?
o?=?find_unit(1,?"ptolemy");?
프톨레미;?
}?else?if?((darius?gt;?0?amp;amp;?darius?lt;?3)?||?(darius?== ?0?amp;&?object_type_selected(player,?"darius")))?{?
switch?(darius??3)?{?
case?0 ? :?
bubble?=?$S(" 1?defense!");?
break;?
case?1?:?< / p>
bubble?=?$S("Prevents?attrition!");?
break;?
case?2?:?
bubble?=?$S("Enables?the?War?Chariot!");?
break;?
}?
o? ?find_unit(1,?"darius");?
darius;?
}?else?if?((memnon?gt;?0?amp;amp;? memnon ?lt;?4)?||?(memnon?==?0?amp;amp;?object_type_selected(player,?"memnon")))?{?
switch?(memnon? ? 4)?{?
case?0?:?
bubble?=?$S("Always?cloaked!");?
break ; ?
케이스?1?:?
거품?=?$S("2x?craft?regeneration!");?
break;? /p>
case?2?:?
bubble?=?$S("증가?그리스?용병'?공격!");?
break ?
case?3?:?
bubble?=?$S("증가?그리스?용병'?갑옷!");?
break ; ?
}?
o?=?find_unit(1,?"memnon");?
memnon ;?
} ?else?if?((spitamenes?gt;?0?amp;amp;?spitamenes?lt;?4)?||?(spitamenes?==?0?amp;amp;?object_type_selected(player,?" spitamenes ")))?{?
스위치?(스피타메네스??4)?{?
케이스?0?:
버블?=? $ S(" 1?말?궁수?공격!");?
break;?
case?1?:?
거품
?=?$S("20?더 빠른?기병!");?
break;?
case?2?:?
거품?= ?$S("증가?건물?약탈!");?
break;?
case?3?:?
거품?=?$ S("Gains?plunder?from?enemy?units!");?
break;?
}?
o?=?find_unit(1 ,?"스피타메네스");?
스피타메네스 ;?
}?else?if?((maurya?gt;?0?amp;amp;?maurya?lt;? 2)?||?(maurya?==?0?amp;amp;?object_type_selected(player,?"Chandragupta?Maurya")))?{?
switch?(maurya??2) ?{?
케이스?0?:?
거품?=?$S("2x?craft!");?
break;?
케이스?1?:?
거품?=?$S("Prevents?attrition!");?
break;?
}?
o?=?find_unit(1,?"chandragupta?maurya");?
maurya;?
}?else?if ?((porus?gt;?0?amp;?porus?lt;?4)?||?(porus?==?0?amp;amp;?object_type_selected(player,?"porus"))) ?{ ?
switch?(porus??3)?{?
case?0?:?
bubble?=?$S("감지 ?은폐 ?units!");?
break;?
case?1?:?
bubble?=?$S("Double?hit ?points ");?
break;?
case?2?:?
bubble?=?$S("Creates?2x?decoys" ); ?
break;?
case?3?:?
bubble?=?$S("20?빠르게?코끼리!") ?
break;?
}?
o?=?find_unit(1,?"porus");?
porus ;?
}?else?if?((fouche?gt;?0?amp;amp;?fouche?lt;?2)?||?(fouche?==?0?amp; amp; ?object_type_selected(player,?"fouche")))?{?
스위치?(fouche??2)?{?
case?0?:? p>
bubble?=?$S("모든?적을 드러냅니다!");?
break;?
case?1?:?
버브
ble?=?$S("트리플?크래프트!");?
break;?
}?
o?=?find_unit(1, ?"fouche");?
fouche ;?
}?else?if?((paoli?gt;?0?amp;amp;?paoli?lt;?3 )?||?(paoli?==?0?amp;amp;?object_type_selected(player,?"paoli")))?{?
switch?(paoli??3)?{?
case?0?:?
bubble?=?$S("Instant?snipe!");?
break;?
사례?1?:?
거품?=?$S("즉시? 방해 행위!");?
깨짐;?
사례 ?2?:?
bubble?=?$S("Double?craft!");?
break;?
}?
o?=?find_unit(1,?"paoli");?
paoli;?
}?else?if?((schwarzenberg?gt;?0 ?amp;amp;?schwarzenberg?lt;?3)?||?(schwarzenberg?==?0?amp;amp;?object_type_selected(player,?"schwarzenberg")))?{?
switch?(schwarzenberg??3)?{?
case?0?:?
bubble?=?$S("두 배의?적중?포인트!");?
break;?
case?1?:?
bubble?=?$S("Double?craft!");?
break;?
case?2?:?
bubble?=?$S("Starts?with?4?Commandos!");?
break;?
}?
o?=?find_unit(1,?"schwarzenberg");?
schwarzenberg;?
}?
for?(i?=?0;?i?lt;?num_players();?i )?{?
//?if? (find_nation(i 1)?==?"러시아인")?{?
if?(get_leader_name(i 1)?==?"왕")?{?
//?if?(find_nation(i 1)?==?"미국인")?{?
//?enable_type_by_tribe("Humvee", find_nation(i 1),?"Stable",? 0,?3);?
//?enable_type_by_tribe("핵?미사일?Sub",find_nation(i 1),?"Dock",?0,?3);?
//?gain_tech(i 1,?"클래식?Age");?
//?gain_tech(i 1,?"중세?Age");?
//?gain_tech(i 1,?"Gunpowder?Age");?
// ?gain_tech(i 1,?"계몽?나이");?
//?gain_tech(i 1,?"산업?나이");?
//?gain_tech (i 1,?"현대?나이");?
//?gain_tech(i 1,?"정보?나이");?
//?gain_tech(i 1,?"미사일?방패");?
//?gain_tech(i 1,?"세계?정부");?
//?gain_tech(i 1, ?"글로벌?번영");?
//?gain_tech(i 1,?"인공?지능");?
//?give_good(i 1,?" Food",?3000);?
//?give_good(i 1,?"목재",?3000);?
//?give_good(i 1,?" 금속",?3000);?
//?give_good(i 1,?"부",?3000);?
//?give_good(i 1,?" 석유",?3000);?
//?give_good(i 1,?"지식",?3000);?
//?set_object_type_armor("공격?헬리콥터" ,?30);?
//?set_object_type_max_health("공격?헬리콥터",?500);?
//?set_type_line_of_sight("공격?헬리콥터",?30) ;?
//?set_object_type_attack("공격?헬리콥터",?3500);?
//?set_object_type_max_range("공격?헬리콥터",?21);?
//?set_object_type_max_range("공격?헬리콥터",?21);?
//? p>
p>
for?(n?=?0;n?lt;num_military_buildings(i 1);?n )?
{?
건물 ?=?find_build( i 1, "");?
set_object_health(i 1, 건물,?100);?
}?
for? (a?=? 0;?a?lt;?num_units(i 1);?a )?{?
unit_heal?=?find_unit(i 1,?"");?
unit_max_craft(i 1,?unit_heal);?
set_unit_craft(i 1,?unit_heal,100);?
if?(object_health(i 1,unit_heal) ?lt;?100 )?{?
heal_object(i 1, un
it_heal, 100);?
}?
}?
}?
}?
if ?(length(bubble)?gt;?0)?{?
bubble_text_obj(bubble,?player,?o);?
}?
}?
}