Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Please add some info on how to "modify" a script by making a copy of the original and including only the edited portions of the script to a mod.
Something like the following:
* Copy one of the base game scripts into your local Scripts folder. For example, make a copy of the DiplomaticScripts.cs file.
* Edit the top portion of the script as follows: Keep the boilerplate up to "namespace MOMScripts" unchanged. Change the next line from, for example, "public class DiplomaticScripts : ScriptBase" to something like "public class Hijacked_MyCoolMod_DiplomaticScripts : ScriptBase".
* The rest of the file should be a bunch of "static public void" functions. Edit the functions you want to change. Delete the functions that you don't need to change (so that you won't be overriding any future MuHa changes or changes from other mods).
Thanks for your reply. I have now found the issue: i kept the original file with a slightly altered name (DB_TOWNorg) in the same folder. I presumed only DB_TOWN would be read. Once i removed this file and ONLY kept the changed file things work. Not sure how the game works but it seems it checks for ANY DB_TOWN file (rest of name doesnt matter) and probably reads the oldest. Many thanks to all who responded, your help is greatly appreciated.
Added this line to their list:
<PossibleBuildings VALUE="BUILDING-UNIVERSITY"/>
I am aware of the prerequirements. I tried adding sages guild and alchemists guild to goblins and trolls. Plus university to Dwarves. All races meet the reqs for that, i simply added the respective lines in DB_TOWN. However, none of these changes work. I disabled all mods and workshop items but i cannot get this done. Other changes, to units or heroes, work just fine ... so its not my editing skills. I guess I am missing something here?! Any idea?
Buildings have prerequirements, so i would check if in DB of your edited race all buildings toward University are listed there. You can't just add wanted building.
I simply copied the towndata from another race. University for Dwarves should be easy as they have all prerequisites ... but it doesnt work?!