📄 upgrade.ccl
字号:
(define-modifier 'upgrade-slow '(apply-to unit-mage) '(apply-to unit-khadgar))(define-modifier 'upgrade-invisibility '(apply-to unit-mage) '(apply-to unit-khadgar))(define-modifier 'upgrade-polymorph '(apply-to unit-mage) '(apply-to unit-khadgar))(define-modifier 'upgrade-blizzard '(apply-to unit-mage) '(apply-to unit-khadgar));;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;=============================================================================;;;; Define which units/upgrades are allowed.;; A: allowed, E: enabled, F: forbidden, R: researched;;;; (define-allow unit/upgrade "AAAAAAAAAAAAAAAA");; ^- player 0 ... 15;;;; NOTE: Save can generate this table.;;;; - units(define-allow 'unit-footman "AAAAAAAAAAAAAAAA")(define-allow 'unit-peasant "AAAAAAAAAAAAAAAA")(define-allow 'unit-ballista "AAAAAAAAAAAAAAAA")(define-allow 'unit-knight "AAAAAAAAAAAAAAAA")(define-allow 'unit-archer "AAAAAAAAAAAAAAAA")(define-allow 'unit-mage "AAAAAAAAAAAAAAAA")(define-allow 'unit-paladin "AAAAAAAAAAAAAAAA")(define-allow 'unit-dwarves "AAAAAAAAAAAAAAAA")(define-allow 'unit-attack-peasant "AAAAAAAAAAAAAAAA")(define-allow 'unit-ranger "AAAAAAAAAAAAAAAA")(define-allow 'unit-alleria "AAAAAAAAAAAAAAAA")(define-allow 'unit-kurdan-and-sky-ree "AAAAAAAAAAAAAAAA")(define-allow 'unit-khadgar "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-oil-tanker "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-transport "AAAAAAAAAAAAAAAA")(define-allow 'unit-elven-destroyer "AAAAAAAAAAAAAAAA")(define-allow 'unit-battleship "AAAAAAAAAAAAAAAA")(define-allow 'unit-gnomish-submarine "AAAAAAAAAAAAAAAA")(define-allow 'unit-gnomish-flying-machine "AAAAAAAAAAAAAAAA")(define-allow 'unit-gryphon-rider "AAAAAAAAAAAAAAAA")(define-allow 'unit-turalyon "AAAAAAAAAAAAAAAA")(define-allow 'unit-danath "AAAAAAAAAAAAAAAA")(define-allow 'unit-lothar "AAAAAAAAAAAAAAAA")(define-allow 'unit-uther-lightbringer "AAAAAAAAAAAAAAAA")(define-allow 'unit-farm "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-barracks "AAAAAAAAAAAAAAAA")(define-allow 'unit-church "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-watch-tower "AAAAAAAAAAAAAAAA")(define-allow 'unit-stables "AAAAAAAAAAAAAAAA")(define-allow 'unit-gnomish-inventor "AAAAAAAAAAAAAAAA")(define-allow 'unit-gryphon-aviary "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-shipyard "AAAAAAAAAAAAAAAA")(define-allow 'unit-town-hall "AAAAAAAAAAAAAAAA")(define-allow 'unit-elven-lumber-mill "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-foundry "AAAAAAAAAAAAAAAA")(define-allow 'unit-mage-tower "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-blacksmith "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-refinery "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-oil-platform "AAAAAAAAAAAAAAAA")(define-allow 'unit-keep "AAAAAAAAAAAAAAAA")(define-allow 'unit-castle "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-start-location "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-guard-tower "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-cannon-tower "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-wall "AAAAAAAAAAAAAAAA")(define-allow 'unit-peasant-with-gold "AAAAAAAAAAAAAAAA")(define-allow 'unit-peasant-with-wood "AAAAAAAAAAAAAAAA")(define-allow 'unit-human-oil-tanker-full "AAAAAAAAAAAAAAAA");; - upgrades(define-allow 'upgrade-sword1 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-sword2 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-arrow1 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-arrow2 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-human-shield1 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-human-shield2 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-human-ship-cannon1 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-human-ship-cannon2 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-human-ship-armor1 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-human-ship-armor2 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-catapult1 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-catapult2 "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-ranger "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-longbow "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-ranger-scouting "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-ranger-marksmanship "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-paladin "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-holy-vision "RRRRRRRRRRRRRRRR")(define-allow 'upgrade-healing "AAAAAAAAAAAAAAAA")(if extensions(define-allow 'upgrade-area-healing "FFFFFFFFFFFFFFFF"); JOHNS: engine didn't support it yet;(define-allow 'upgrade-area-healing "AAAAAAAAAAAAAAAA"))(define-allow 'upgrade-exorcism "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-flame-shield "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-fireball "RRRRRRRRRRRRRRRR")(define-allow 'upgrade-slow "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-invisibility "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-polymorph "AAAAAAAAAAAAAAAA")(define-allow 'upgrade-blizzard "AAAAAAAAAAAAAAAA");;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;=============================================================================;; Define the dependencies;;;; (define-dependency unit/upgrade;; '( required-unit/upgrade count ... ) ['or ...] );;;; Define the dependencies of an unit or upgrade.;;;; unit/upgrade Dependencies for this unit or upgrade.;; required-unit/upgrade Units required to build or research.;; count Number of units required.;; 'or Alternative set of units/upgrades required.;;;; NOTE: Save can generate this table.;; - human land forces(define-dependency 'unit-archer '(unit-elven-lumber-mill))(define-dependency 'unit-ballista '(unit-human-blacksmith unit-elven-lumber-mill))(define-dependency 'unit-knight '(unit-stables unit-human-blacksmith))(define-dependency 'unit-ranger '(upgrade-ranger unit-elven-lumber-mill))(define-dependency 'unit-paladin '(upgrade-paladin unit-stables unit-human-blacksmith));; - human naval forces(define-dependency 'unit-gnomish-submarine '(unit-gnomish-inventor))(define-dependency 'unit-human-transport '(unit-human-foundry))(define-dependency 'unit-battleship '(unit-human-foundry));; - human air forces(define-dependency 'unit-gnomish-flying-machine '(unit-elven-lumber-mill));; - human buildings(define-dependency 'unit-human-guard-tower '(unit-elven-lumber-mill))(define-dependency 'unit-human-cannon-tower '(unit-human-blacksmith))(define-dependency 'unit-human-shipyard '(unit-elven-lumber-mill))(define-dependency 'unit-human-foundry '(unit-human-shipyard))(define-dependency 'unit-human-refinery '(unit-human-shipyard))(define-dependency 'unit-keep '(unit-human-barracks))(define-dependency 'unit-gnomish-inventor '(unit-castle) 'or '(unit-keep))(define-dependency 'unit-stables '(unit-castle) 'or '(unit-keep))(define-dependency 'unit-castle '(unit-stables unit-human-blacksmith unit-elven-lumber-mill))(define-dependency 'unit-mage-tower '(unit-castle))(define-dependency 'unit-church '(unit-castle))(define-dependency 'unit-gryphon-aviary '(unit-castle));; - human upgrades/research(define-dependency 'upgrade-sword2 '(upgrade-sword1))(define-dependency 'upgrade-arrow2 '(upgrade-arrow1))(define-dependency 'upgrade-human-shield2 '(upgrade-human-shield1))(define-dependency 'upgrade-catapult2 '(upgrade-catapult1))(define-dependency 'upgrade-human-ship-cannon2 '(upgrade-human-ship-cannon1))(define-dependency 'upgrade-human-ship-armor2 '(upgrade-human-ship-armor1))(define-dependency 'upgrade-ranger '(unit-keep) 'or '(unit-castle))(define-dependency 'upgrade-longbow '(unit-castle upgrade-ranger))(define-dependency 'upgrade-ranger-scouting '(unit-castle upgrade-ranger))(define-dependency 'upgrade-ranger-marksmanship '(unit-castle upgrade-ranger));; - human spells(define-dependency 'upgrade-holy-vision '(upgrade-paladin))(define-dependency 'upgrade-healing '(upgrade-paladin))(if extensions(define-dependency 'upgrade-area-healing '(upgrade-paladin upgrade-healing)))(define-dependency 'upgrade-exorcism '(upgrade-paladin))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -