Page 1 of 1

Few waypoint problems

Posted: Wed Jun 23, 2010 3:10 am
by drakerpg
Hello, I'm working on a 10-20 level pack and have a few questions/problem's that I would like some help with.

First up, I wanted to make a starter.xml that went to an area based on level.

Code: Select all

if( player.Level < 15) then
		load_paths("10-14_travel.xml");
  	end
This error's and it seems that the < variable doesn't work, or maybe there's another way around it?

Setting that problem aside; If I connect the starter waypoint with the 10-14 waypoint file it works fine, then runs the waypoints its suppose to, until it gets to this line

Code: Select all

if( player.Level > 13) then
		load_paths("10-14_travel.xml");
  	end
It completely ignores this line and proceeds to run the waypoint's again, even tho my character is level 14. I'm assuming its because I did not actually hit 14 while doing the run (I was already 14 before starting), is there something I'm missing?

I'm new to micromacro so this is my first actual "project", any help is appreciated.

Re: Few waypoint problems

Posted: Wed Jun 23, 2010 4:52 am
by Restler
I am noobish, so mb all my post is spam..but
First up, I wanted to make a starter.xml that went to an area based on level.
AFAIK this is not necessary- you can put all such "IF" @ "onload" part of profile or in main option part(subst the normal "path line").....

or in to "base" waypoint file .. the question is-how to put "check sequence" b4 going to waypoint...

Re: Few waypoint problems

Posted: Wed Jun 23, 2010 5:04 am
by rock5
drakerpg wrote:

Code: Select all

if( player.Level < 15) then
I don't know why it happens but to avoid it I always turn it around ie.

Code: Select all

if( 15 > player.Level) then
drakerpg wrote:If I connect the starter waypoint with the 10-14 waypoint file it works fine, then runs the waypoints its suppose to, until it gets to this line

Code: Select all

if( player.Level > 13) then
		load_paths("10-14_travel.xml");
  	end
It completely ignores this line and proceeds to run the waypoint's again, even tho my character is level 14. I'm assuming its because I did not actually hit 14 while doing the run (I was already 14 before starting), is there something I'm missing?
I recently noticed that when waypoints get missed, their code still gets executed so I don't think it's because it missed that waypoint. Look for some other reason i think.

Re: Few waypoint problems

Posted: Wed Jun 23, 2010 8:55 am
by drakerpg
I *think* I found the problem with the level check

Code: Select all

if( player.Level > 15) then
      			load_paths("shana16-19_travel.xml");
    		end
The check came after the last waypoint so I'm guessing it just moves back to waypoint 1 once it reaches the last waypoint, ignoring any code afterwards. Haven't had a chance to check it though I cant see any other reason for it failing

Re: Few waypoint problems

Posted: Wed Jun 23, 2010 9:00 am
by rock5
drakerpg wrote:I *think* I found the problem with the level check

Code: Select all

if( player.Level > 15) then
      			load_paths("shana16-19_travel.xml");
    		end
The check came after the last waypoint so I'm guessing it just moves back to waypoint 1 once it reaches the last waypoint, ignoring any code afterwards. Haven't had a chance to check it though I cant see any other reason for it failing
Sounds right. Code has to be between <waypoint> and </waypoint> tags or it doesn't get executed.