ALazov

GBR - Ultimate Cheat Sheet

Nov 4th, 2023 (edited)
1,113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.52 KB | None | 0 0
  1. /*
  2.  README
  3.  This cheatsheet is a combination of data and commands, that can be
  4.  executed via both Chat windows or as a code in scenario (using the built-in editor).
  5.  
  6.  For more content give a look at https://github.com/MillenniumDev/tpwMapScripts or contact me.
  7.  
  8. ___________________
  9. #### Buildings ####
  10. ___________________
  11. selb.Damage(5000)
  12.  
  13. _____________________
  14. #### Settlements ####
  15. _____________________
  16.  
  17. Instead of sels, can be used the following reference: selo.AsSettlement()
  18.     sels.SetGold(1000000)
  19.     sels.SetFood(1000000)
  20.     sels.AddToPopulation(100000)
  21.     sels.AddToMaxPopulation(100000)
  22.  
  23. Train military units with no cooldown
  24.     EnvWriteInt(sels,"BarrackTrainTimeDecrease",100)
  25.  
  26. Research
  27.     S1.obj.AsBuilding.Research("Barrack Level 3");
  28.     sels.Research("Nobility")
  29.  
  30. _______________
  31. #### Units ####
  32. _______________
  33. Kill all selected units
  34.     if (!IsMultiplayer()) {int i; for (i = _GetSelection().count() - 1; i >= 0; i = i - 1) _GetSelection()[i].AsUnit().Damage(100000);}
  35.  
  36. Set level of selected units to 36
  37.     if (!IsMultiplayer()) {int i; for (i = _GetSelection().count() - 1; i >= 0; i = i - 1) _GetSelection()[i].AsUnit().SetLevel(36);}
  38.  
  39. Set Add Special skill of selected units
  40.     if (!IsMultiplayer()) {int i; for (i = _GetSelection().count() - 1; i >= 0; i = i - 1) _GetSelection()[i].AsUnit().SetSpecial(8, true);}
  41.  
  42. Mutate / swap units with another class
  43.     if (!IsMultiplayer()) {int i; for (i = _GetSelection().count() - 1; i >= 0; i = i - 1) _GetSelection()[i].AsUnit().Mutate("RLiberatus");}
  44.  
  45. Set food of given Unit
  46.     selu.SetFood(999)
  47.  
  48. Set Unit's level
  49.     selu.SetLevel(99)
  50.  
  51. AddItem
  52.     selu.AddItem("Veteran Guild")
  53.  
  54. Create effect/feedback of timie 900000000
  55.     CreateFeedback('Frenzy', selu.AsUnit,900000000)
  56.  
  57. ________________
  58. #### Heroes ####
  59. ________________
  60. Set level of selected Hero's units to 36
  61.     if (!IsMultiplayer()) {int i; for (i = selu.AsHero().army.count() - 1; i >= 0; i = i - 1) selu.AsHero().army[i].AsUnit().SetLevel(36);}
  62.  
  63. Mutate hero's units to mountaineers, set their level to highest so far, and remove feeding status. Also remove freedom status and add toughness special skill
  64.     {int i; i = selu.AsHero().army.count() - 1; for (i; i >= 0; i = i - 1){ selu.AsHero().army[i].AsUnit().Mutate("IMountaineer"); selu.AsHero().army[i].AsUnit().SetLevel(EnvReadInt(1,"BestMountaineerLevel")); selu.AsHero().army[i].AsUnit().SetFeeding(false); selu.AsHero().army[i].AsUnit().SetSpecial(9,true);  selu.AsHero().army[i].AsUnit().SetSpecial(30,false);} }
  65.  
  66. Mutate hero's units to viking lords, remove freedom status, add toughness and ferocity skills and set level to 25.
  67.     {int i; Unit u; for (i = selu.AsHero().army.count() - 1;  i >= 0; i = i - 1){u = selu.AsHero().army[i].AsUnit() ;  u.Mutate("BVikingLord"); u.SetLevel(25); u.SetSpecial(9,true);  u.SetSpecial(2,true); u.AsUnit().SetSpecial(30,false);} }
  68.  
  69. Transfer hero and army to player 2
  70. {int i; Unit u; Hero h; h=selh; i=h.army.count - 1; for (i; i >= 0; i = i - 1){ u=h.army[i].AsUnit(); u.SetLevel(24); u.SetPlayer(2); }; selh.SetPlayer(2);  }
  71.  
  72. Allow autocast
  73.     selh.SetAutocast(true)
  74. ________________
  75. #### Wagons ####
  76. ________________
  77. selo.AsWagon().SetFood(1000)
  78. selo.AsWagon().LoadGold(5000)
  79. selo.AsWagon().LoadFood(5000)
  80.  
  81. _____________________
  82. #### Environment ####
  83. _____________________
  84.  
  85. Shows the whole map as if it is already explored.
  86.     ExploreAll
  87.  
  88. Toggles the map fog.
  89.     ToggleFog
  90.  
  91. Starts a mini map.
  92.     MiniMap
  93.  
  94. Overwrite global variable for player 1 to value 28
  95.     EnvWriteInt(1,"BestMountaineerLevel",28)
  96.  
  97. Read global env value BestMountaineerLevel for player 1
  98.     EnvReadInt(1,"BestMountaineerLevel")
  99.  Activate effect
  100. TODO::test
  101.  
  102. ________________________
  103. #### List of Heroes ####
  104. ________________________
  105. BHero1
  106. BHero1a
  107. BHero1b
  108. BHero1c
  109. BHero2
  110. BHero2a
  111. BHero2b
  112. BHero2c
  113. BHero3
  114. BHero3a
  115. BHero3b
  116. BHero3c
  117. BritonHero
  118. Caesar
  119. CarthaginianHero
  120. CHero1
  121. CHero1a
  122. CHero1b
  123. CHero1c
  124. CHero2
  125. CHero2a
  126. CHero2b
  127. CHero2c
  128. CHero3
  129. CHero3a
  130. CHero3b
  131. CHero3c
  132. CHero4
  133. EgyptianHero
  134. EHero1
  135. EHero1a
  136. EHero1b
  137. EHero1c
  138. EHero2
  139. EHero2a
  140. EHero2b
  141. EHero2c
  142. EHero3
  143. EHero3a
  144. EHero3b
  145. EHero3c
  146. GaulHero
  147. GermanHero
  148. GHero1
  149. GHero1a
  150. GHero1b
  151. GHero2
  152. GHero2a
  153. GHero2b
  154. GHero3
  155. GHero3a
  156. GHero3b
  157. GHero4
  158. GHero4a
  159. GHero4b
  160. GHero5
  161. GHero6
  162. GHero7
  163. GHeroWoman
  164. Hero
  165. HeroFootman
  166. HeroMounted
  167. IberianHero
  168. IHero1
  169. IHero1a
  170. IHero1b
  171. IHero1c
  172. IHero2
  173. IHero2a
  174. IHero2b
  175. IHero2c
  176. IHero3
  177. IHero3a
  178. IHero3b
  179. IHero3c
  180. IHero4
  181. ImperialRomanHero
  182. Keltill
  183. Larax
  184. MHero1
  185. MHero1a
  186. MHero1b
  187. MHero1c
  188. MHero2
  189. MHero2a
  190. MHero2b
  191. MHero2c
  192. MHero3
  193. MHero3a
  194. MHero3b
  195. MHero3c
  196. MHero4
  197. NHero1
  198. RepublicanRomanHero
  199. RHero1
  200. RHero1a
  201. RHero1b
  202. RHero1c
  203. RHero2
  204. RHero2a
  205. RHero2b
  206. RHero2c
  207. RHero3
  208. RHero3a
  209. RHero3b
  210. RHero3c
  211. RHero4
  212. THero1
  213. THero1a
  214. THero1b
  215. THero1c
  216. THero2
  217. THero2a
  218. THero2b
  219. THero2c
  220. THero3
  221. THero3a
  222. THero3b
  223. THero3c
  224.  
  225. _______________________
  226. #### List of Units ####
  227. _______________________
  228. BBowman
  229. BBronzeSpearman
  230. BCatapultUnit
  231. BHighlandar
  232. BHighlander
  233. BJavelineer
  234. BSentry
  235. BShieldBearer
  236. BSwordsman
  237. BVikingLord
  238. BVillager
  239. BVillagerAmbient
  240. BWVillager
  241. BWVillagerAmbient
  242. CBerberAssassin
  243. CJavelinThrower
  244. CLibyanFootman
  245. CMaceman
  246. CMacemen
  247. CNoble
  248. CNumidianRider
  249. CSentry
  250. CVillager
  251. CVillagerAmbient
  252. CWarElephant
  253. CWVillager
  254. CWVillagerAmbient
  255. EAnubisWarrior
  256. EArcher
  257. EAxetrower
  258. EChariot
  259. EGuardian
  260. EHorusWarrior
  261. ESentry
  262. ESwordsman
  263. EVillager
  264. EVillagerAmbient
  265. EWVillager
  266. EWVillagerAmbient
  267. GArcher
  268. GAxeman
  269. GHorseman
  270. GSentry
  271. GSpearman
  272. GSwordsman
  273. GTridentWarriar
  274. GTridentWarrior
  275. GVillager
  276. GVillagerAmbient
  277. GWomanWarrior
  278. GWVillager
  279. GWVillagerAmbient
  280. IArcher
  281. ICavalry
  282. IDefendar
  283. IDefender
  284. IEliteGuard
  285. IMilitiaman
  286. IMountaineer
  287. IScout
  288. ISentry
  289. ISlinger
  290. IVillager
  291. IVillagerAmbient
  292. IWVillager
  293. IWVillagerAmbient
  294. MSentry
  295. MVillagerAmbient
  296. MWVillagerAmbient
  297. OldManA
  298. OldManE
  299. RArcher
  300. RChariot
  301. RGladiator
  302. RHastatus
  303. RLiberatas
  304. RLiberatus
  305. RPraetorian
  306. RPrinciple
  307. RScout
  308. RSentry
  309. RTribune
  310. RVelit
  311. RVillager
  312. RVillagerAmbient
  313. RWVillager
  314. RWVillagerAmbient
  315. TArcher
  316. TAxeman
  317. TCatapultUnit
  318. THuntress
  319. TMaceman
  320. TSentry
  321. TSwordsman
  322. TTeutonArcher
  323. TTeutonRider
  324. TTeutonWolf
  325. TValkyria
  326. TValkyrie
  327. TVillager
  328. TVillagerAmbient
  329. TWVillager
  330. TWVillagerAmbient
  331.  
  332. _______________________________
  333. #### List of Unit Specials ####
  334. _______________________________
  335.  selu.SetSpecial(int_id, bool)
  336.  selu.SetSpecial(1, true)
  337.  selu.SetSpecial(2, false)
  338.  
  339.  
  340. 0  Parry - When activated the warrior does not deal damage but gains 1 stamina instead. Enemy attacks are deflected for 1 stamina each
  341. 1  Drain - Reduces the enemy's stamina by 2 each time the warriors hits
  342. 2  Ferocity - The warrior fully restores his stamina upon killing an enemy
  343. 3  Triple strike - The warrior triples his damage
  344. 4  Deflection - Avoids enemy attacks
  345. 5  Active   - The warrior restores stamina twice as fast
  346. 6  Life steal - Increases the warrior's health by the amount of damage he inflicts
  347. 7  Determination - Increases the warrior's stamina by 1 each time an enemy hits him
  348. 8  Combat skill - Each time the warrior damages an enemy he receives 1 stamina point
  349. 9  Toughness - The warrior's health increases by 5 points per level
  350. 10 Offensive tactics - Adds the warrior's level to his damage
  351. 11 Defensive tactics - Adds the warrior's level to his armor
  352. 12 Penetration - The warrior ignores the enemy armor and Deflection special
  353. 13 Spike armor - Returns the melee damage to the attacker
  354. 14 Bleeding attack - The enemy attacked by the warrior loses 10% of his health in addition to the inflicted damage (does not work on heroes)
  355. 15 Attack skill - Increases the warrior's damage by twice his current stamina
  356. 16 Defense skill - Increases the warrior's armor by twice his current stamina
  357. 17 Death blow - Kills the target if it has 50% or less health left after the damage is applied (does not work on heroes)
  358. 18 Power strike - Kills the target with one strike if the target is damaged and its maximum health is twice less than that of the warrior (does not work on heroes
  359. 19 Expertise - Instantly kills an enemy when the warrior damage is increased after adjustments with enemy armor and level modifier (does not work on heroes)
  360. 20 Charge - The warrior deals 6 times his normal damage (after enemy armor is applied). The time since the warrior's last attack must be at least 5 seconds)
  361. 21 Regeneration - The warrior restores 20 health every 5 seconds
  362. 22 Rage - Increases the warrior's damage by the amount of health he has above 50%. That health, however, is lost after the attack (does not work against heroes)
  363. 23 Revenge - When the warrior is killed by an enemy in melee, that enemy suffers 100 damage
  364. 24 Triumph - The warrior gets healed upon killing an enemy
  365. 25 Disease attack - The warrior infects his target with a disease upon dealing damage
  366. 26 Sneak - The warrior becomes hidden if he remains idle for 20 sec
  367. 27 Invisibility - Hides the target from the eyes of all enemies
  368. 28 Learning - The warrior receives 1 experience when attacking a more experienced enemy
  369. 29 Teaching - Gives 1 experience to an ally
  370. 30 Freedom - The warrior cannot be attached to a hero
  371. 31 Cripple - The target loses all of its stamina
  372. 32 Healing - Heals the target with 20 plus the level of the healer
  373. 33 Keen sight - Reveals all hidden enemies in sight
  374. 34 Trample - Inflicts damage to all surrounding enemies
  375. 35 Curse - Curses the warrior to miss his next attack
  376.  
  377. _____________________________
  378. #### List of Hero skills ####
  379. _____________________________
  380.  selh.SetSkill(int_id,int_level)
  381.  selo.AsHero().SetSkill(1,10)
  382.  selh.SetSkill((selh.GetSkill(5)),10)   - set Administration to 10 (for RHeroes)
  383.  selh._EnableAllSkills - Enables All Heroes skills
  384.  
  385. 0  Administration
  386. 1  Team Attack
  387. 2  Team Defense
  388. 3  Quick March
  389. 4  Epic Endurance
  390. 5  Discipline
  391. 6  Leadership
  392. 7  Epic Attack
  393. 8  Battle Cry   - active
  394. 9  Healing  - active
  395. 10 Ceasefire    - active
  396. 11 Vigor    - more stamina while eating
  397. 12 Frenzy   - active
  398. 13 Rush     - active
  399. 14 Egoism
  400. 15 Wisdom
  401. 16 Recovery - more health while eating
  402. 17 Survival - reduce need of food
  403. 18 Charge   - active - increase stamina of all wariors
  404. 19 Scout    - increase hero's sight
  405. 20 Assault(cry) - active - ignore enemy armor
  406. 21 Epic Armor
  407. 22 Concealment  - chance for evading an enemy attack
  408. 23 Defensive Cry- active
  409. 24 Euphoria - chance for stamina regen upon killing an enemy
  410.  
  411. /*
  412. Set to -1 to delete it
  413. */
  414.  
  415. _______________________________________
  416. #### List of Settlement Researches ####
  417. _______________________________________
  418. Attack focus
  419. Battle tactics
  420. Belts of Might
  421. BNobility
  422. BTribute
  423. CTribute
  424. Cult of Anubis
  425. Cult of Horus
  426. ETribute
  427. Food Tax
  428. Free Beer
  429. Free Drinks
  430. Free Trade
  431. Free Wine
  432. Gambler's Day
  433. Gambler's Luck
  434. Gambler's Test
  435. Gambling
  436. Gaul Training 1
  437. Gaul Training 2
  438. Gaul Training 3
  439. GrainTrade
  440. GTribute
  441. Heroes' Wisdom
  442. Housing
  443. Import horses
  444. ITribute
  445. Learning
  446. Legendary Valkyries
  447. Liberati guild
  448. Light of Horus I
  449. Light of Horus II
  450. Light of Horus III
  451. Mercenary pact
  452. MGladiator Shows
  453. Military Academy
  454. Mountain Clan
  455. Mountain Clan Legacy
  456. MTribute
  457. Nobility
  458. Noble Defence
  459. Noble Offence
  460. Nordic trade routes
  461. Path of the dead I
  462. Path of the dead II
  463. Path of the dead III
  464. People's Assembly
  465. ReligiousFeast
  466. RGladiator Shows
  467. RNobility
  468. Rome Training 1
  469. Rome Training 2
  470. RTribute
  471. Shared Strength
  472. Shared Triumph
  473. Slavery
  474. Standartization I
  475. Standartization II
  476. Standartization III
  477. Statue of Amon-Ra
  478. Statue of Isis, mother of Anubis
  479. Statue of Osiris, father of Horus
  480. Teuton Master
  481. TFoodTax
  482. TGrainTrade
  483. Tournaments
  484. TReligiousFeast
  485. TTribute
  486. Veteran Defence
  487. Veteran Health
  488. Veteran Offence
  489. Warriors' Wisdom
  490.  
  491.  
  492. ___________________________________________________
  493. #### List of Effects / Feedbacks               ####
  494. ___________________________________________________
  495. AdditionalDefense
  496. Assault
  497. Assault2
  498. BattleCry
  499. BattleCry2
  500. BleedingAttack
  501. Ceasefire
  502. Ceasefire2
  503. CGule_explosion
  504. CGule_fire
  505. Charge
  506. Curse
  507. Damage1
  508. Damage2
  509. Death
  510. Death_Magic
  511. Death_Magic2
  512. DefensiveCry
  513. DefensiveCry2
  514. DefensiveStand
  515. Deflection
  516. Disease
  517. Disease2
  518. Exclamation_Mark
  519. Experience
  520. Frenzy
  521. Frenzy2
  522. GetItem
  523. Gule_explosion
  524. Gule_fire
  525. Heal
  526. IGule_explosion
  527. IGule_fire
  528. Invisibility
  529. Lightning
  530. Lightning2
  531. Lightning3
  532. OffensiveTactics
  533. Parry
  534. Penetration
  535. Rage
  536. Revenge
  537. SpikedArmor
  538. StaminaBoost
  539. StaminaLoss
  540. TripleStrike
  541. Watersteps
  542.  
  543. _____________________________
  544. #### Other               ####
  545. _____________________________
  546. DumpFuncToXML
  547.     Lists all script functions in a XML file.
  548.  
  549. /*
  550. Latest scripts
  551. // Spawn 10 Praetorians in the current position, for player 1
  552. {int i; i=10; point p; Unit u; p=ViewPos(); for (i; i>0; i = i - 1 ) { u=Place("RPraetorian", p, 1);} }
  553. */
Advertisement
Add Comment
Please, Sign In to add comment