Majesty Gold HD

Majesty Gold HD

Customize Majesty!
Create and upload new Quests and Mods for Majesty HD!
$post_message can't take custom string identifiers
The function only takes integer identifiers so we can not currently customize the text of sign posts, obelisks, etc.
< >
Showing 1-4 of 4 comments
Cyberlore Dev  [developer] 1 27 Mar, 2016 @ 4:39pm 
I will look into adding a way to set the #ATTRIB_Message_Text (what the post_message function does) so that it can take a reference to a custom string from a user defined string table.
Crazyenigma 16 27 Mar, 2016 @ 4:50pm 
Thanks again for working on this game. The new update is great!
Cyberlore Dev  [developer] 1 15 May, 2016 @ 9:52am 
Setting custom signpost text is now supported by setting the #ATTRIB_Message_Text directly with the text key you want it to display.

ex.

$SetAttribute (thisSignAgent, #ATTRIB_Message_Text, "IDTXT_MY_CUSTOM_MESSAGE" ); Then in your text XML file: <Majesty> <Language id="en_US"> <Text id="IDTXT_MY_CUSTOM_MESSAGE">Custom Sign Message.</Text> </Language> </Majesty>
Dracoceros 11 30 Mar, 2020 @ 7:00pm 
I'm getting a bad conversion to int& when doing exactly what you described. any ideas?

here's the code.

$create_sign(palace, "Sign", #sign_barren, $RandomCoord (palace, 300)); $create_sign(palace, "Sign", #sign_barren, $RandomCoord (palace, 300)); $listobjects (palace, "building", 500, signs, #checktitles, "Sign"); sign1 = $Listmember (Signs, 1); sign2 = $Listmember (Signs, 2); $SetAttribute (sign1, #ATTRIB_Message_Text, "IDTXT_LAW_1" ); $SetAttribute (sign2, #ATTRIB_Message_Text, "IDTXT_LAW_2" );

<Majesty> <Language id="en_US"> <Text id="IDTXT_LAW_1">You shall have no other gods or rulers other than me.</Text> <Text id="IDTXT_LAW_2">Do not make an idol of any form.</Text> </Language> </Majesty>
Last edited by Dracoceros; 30 Mar, 2020 @ 7:00pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50