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
You can see examples of this in RandomEE or StandAlone AI workshop mods.
if(b's"Title"=="MarketPlace")
if(b's"level"==1 && $GetAttribute(b, #ATTRIB_CurrentStageBuilt) == 1)
begin
$ChangeUnitType (b, "Marketplace2");
$AdjustAttribute (b, #ATTRIB_MaxHP, 50);
(b, #ATTRIB_CurrentStageBuilt, 0);
$building_upgraded (b);
$AdjustPlayerData (b, "gold", -1000);
end
Buildings change their level when player change their title name by hand or script. Titles are stored in the building_data.dat file. level is tied to building title.
Again, subscribe to randomEE workshop quest. Look up the code in its directory. VikisRule did great job commenting his code. Its clean and easy to read. You can learn >90% AI functionality from there. Mine extends that functionality but far less readable