Advertisement
ALazov

GBR - Ultimate Cheat Sheet

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