Majesty Gold HD

Majesty Gold HD

Customize Majesty!
Create and upload new Quests and Mods for Majesty HD!
Using .XML file info in quests
I have a list of strings in a .XML file. How do I access that info with GPL code? I can import it, but I'm looking to iterate through the list for preset hero names.
< >
Showing 1-3 of 3 comments
Enerril 16 5 Dec, 2022 @ 11:36pm 
I don't think it is possible. No listed function that returns string by ID. Maybe MessageFlag or LocalChatMessage functions return string even though it is stated that they don't.

You could, however, create a brand new agent at the start of each game and populate it with strings and then on each level up hero can reference to that agent and update its name with SpecifyName function.
Matkatamiba 3 6 Dec, 2022 @ 12:32am 
I'll try that tomorrow and get back to you
Enerril 16 6 Dec, 2022 @ 4:43am 
You need to create new prototype in .gpl file first like this
Originally posted by me:
prototype MajestyExtrasContainer ()

Declare
begin

//cached stuff

end

then in .dat file

Originally posted by me:
[ME_Manager_0]
{MajestyExtrasContainer

}
[end]

and then CreateAgent in game
< >
Showing 1-3 of 3 comments
Per page: 1530 50