Page 1 of 1

ISO ideas on how to implement something to do with WP

Posted: Sun Jan 16, 2011 5:59 am
by lisa
I have an idea I am working on at the moment, just having trouble deciding how to actually make it work.

Idea is this, I have a very long WP that goes from 1 side of map to the other side. Along the way I have setup loadpaths at intervals to tell the bot to go kill stuff and then back to the same long WP to keep travelling along.

That part works just fine, the next bit is the issue. I want to have a setting to tell the bot to take certain loadpaths.

Code: Select all

wp 1 
wp2 
wp3 loadpaths 1
wp4
wp5
wp6 loadpaths 2
wp7
wp8
Ok so I want to tell a character to only loadpaths 1 and I want to be able to tell a different character to only loadpaths 2. So 2 characters using the exact same WP but going to different areas to kill.

My first thought on making it 'easy' would be to copy paste the long WP, alter name slightly and take out the loadpaths I don't want it to use, would mean changing the 1.xml to send it back to long1 and the 2.xml to send back to long2.xml, which would mean rewriting the whole WP's.

long1.xml is one WP
long2.xml is another WP
so long1.xml sends that character to loadpaths 1
long2.xml sends that character to loadpaths 2.

I am hoping there is a way to do it without having more WP.
I was thinking along the lines of having a

Code: Select all

<option name="waypoint2" value="true" >
then having an if statement at the loadpaths2 to only load it if options.waypoints2 == true. Something along those lines anyway.

Any other ideas?

Re: ISO ideas on how to implement something to do with WP

Posted: Sun Jan 16, 2011 8:50 am
by rock5
Your thinking is good but you don't have to use the xml option. Just assign a variable in the onLoad section of your profile.

Code: Select all

<onLoad>
    waypointpath = 1 (or 2)
</onLoad>

Code: Select all

wp3 if waypointpath == 1 then loadpaths 1
wp4
wp5
wp6 if waypointpath == 2 then loadpaths 2

Re: ISO ideas on how to implement something to do with WP

Posted: Sun Jan 16, 2011 8:56 am
by lisa
I like it, nice and simple =)
I tend to overthink things sometimes lol