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
Function Harted()
declare
list Palaces;
agent AIRootAgent, palace;
begin
AIRootAgent = $RetrieveAgent ( "GplAIRoot" );
palaces = $Listpalaces ();
palace = $listmember(palaces,1);
$setup_random_treasure ( 20, 3000 );
end
and this Harted.mqxml file:
<Majesty>
<Quest id="{45DC54AC-AE30-4A06-81D2-E196307A75E0}">
<DataConfiguration>
<Dataset base="MajestyExpansion">
<Load>
<Template>Harted.q</Template>
<GPL>
<Target>GPL\bytecode.bcd</Target>
<Source>GPL\Harted.gpl</Source>
</GPL>
<GPLSource>GPL</GPLSource>
</Load>
</Dataset>
</DataConfiguration>
<DisplayName lang="en_US">Harted</DisplayName>
<Description lang="en_US">
<Short>Quest</Short>
<Long>Quest</Long>
</Description>
<Difficulty>Easy</Difficulty>
<Name>Harted</Name>
</Quest>
</Majesty>
But at the start of the quest( after compiling .bcd file, of course), treasures are not created.
What am I doing wrong?
The function needs to be called somewhere in the script in order for it to execute. The two functions that execute at the start of the game are InitializeGPL and GPLKickoff. You can probably try to splice your custom event into either one of those to make it work. Their code is: