Hey everybody !
I'm trying to load a project XML file (which mean it's imported in Files folder in contruct 2) using AJAX.
But here's what make me stuck : the name of the file i load depends on the parameter i give to the function which make the AJAX request, by doing so i can't use the AJAX:Request Project File built in function since it require to choose the file before.
The XML file is supposed to contain dialogs, to load appropriate one when interacting with an NPC i got a few variable to sort my files :
The function is : SpeakWith( NPC.Name, NPC.ActiveQuest, NPC.ActiveQuestStatus )
If i want to load the XML for the NPC "NPCtest", with ActiveQuest to "TestQuest" and ActiveQuestStatus to "starting", the file name willl be :
? "NPCtest TestQuest starting.xml"
? (Function.Param(0) &" "& Function.Param(1) &" "& Function.Param(2) &".xml")
I'm looking for a way to use AJAX to request such a file using those parameters.
I tested lots of URLs and read lots of post but still havn't found something that work.
I can post the .capx if needed.
Thanks for any help !