View Single Post
  #4  
Unread 11-29-2011, 03:52 PM
Darqwood's Avatar
Darqwood Darqwood is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Aug 2005
Posts: 965
Default

I agree, and it would not have to be a whole new system -- it could be as simple as adjusting the existing map2_add_poi routine to not require going through the popup_add_poi window. That one step would take away 90% of the extraneous code and frustration IMO. Map2 commands using simple name/value pairs:

map2_add_var filename pagename varname value
map2_get_var filename pagename varname
map2_delete_var filename pagename varname

So for example, a one-line command like:


map2_set_var "darqui_notes.xml" Parent.CharName.Text "Note1" Parent.Textbox1.Text


would translate into:

Code:

<?xml version="1.0" encoding="utf-8"?>
<Page Name="VAR">
    <Page Name="Baldaor">
        <Data Name="Note1" Value="This is Baldaor&apos;s note 1." />
    </Page>
    <Page Name="Slizzik">
        <Data Name="Note1" Value="This is Slizzik&apos;s note 1." />
        <Data Name="Note2" Value="This is Slizzik&apos;s note 2." />
    </Page>
</Page>

The game could easily set and unset the filename instead of relying on the author to put everything back where it belongs. Map2_get_var would read the variable back into the structure on-demand instead of relying on the <include>. Problem solved.


Maybe in EverQuest III....


__
Reply With Quote