Log in

View Full Version : Targeting.Setting("priority", "If Stuck")



brindeds
12-14-2015, 08:13 PM
The example in the title was only one of several configuration modes that can be done.
I was looking for something that could change the enemy's priority depending on your condition, unfortunately I did not think and do not think there also. So my suggestion is to create a function called Config for some basic things so it can be set a few things depending on the current condition.

Targeting.Setting("priority", "If Stuck")

shadowart
12-14-2015, 08:31 PM
You can do Targeting.StartIgnoring() / Targeting.StopIgnoring() if you want to temporarily change all monsters to if-stuck. Doing more advanced changes requires you to use loadSettings to load a new xbst file (that may be created by the script but that's too advanced atm).

brindeds
12-14-2015, 11:56 PM
You can do Targeting.StartIgnoring() / Targeting.StopIgnoring() if you want to temporarily change all monsters to if-stuck. Doing more advanced changes requires you to use loadSettings to load a new xbst file (that may be created by the script but that's too advanced atm).

Where has this documentation? From what I understand the wiki is well out of date :/.
But I still think that my suggestion will greatly facilitate the lives of scripter hehe.

jollebollen
12-16-2015, 08:20 AM
You can do Targeting.StartIgnoring() / Targeting.StopIgnoring() if you want to temporarily change all monsters to if-stuck. Doing more advanced changes requires you to use loadSettings to load a new xbst file (that may be created by the script but that's too advanced atm).

how to add this? just paste Targeting.StartIgnoring() in the settings file on beofre a waypoint?

brindeds
12-16-2015, 09:54 AM
how to add this? just paste Targeting.StartIgnoring() in the settings file on beofre a waypoint?

Me did not work as expected. I made a module which checks if the character is trapado, if not I give to stop targeting, otherwise I give start in targeting.
If you want I later put to you (I'm at work).

jollebollen
12-16-2015, 10:43 AM
okay i can try it i guess :p!

brindeds
12-16-2015, 02:20 PM
I decided to have lunch at home today, so I took advantage and grabbed the module.

-----Inital Module checkStopped
local checkStopped = Module.New('checkStopped', function(checkStopped)
if(Walker.IsStuck() == true) then
print("Possible trapped. Go enabled Targeting.")
Targeting.Start()
elseif (Walker.IsStuck() == false) then
Targeting.Stop()
end
end, false)
-----End Module checkStopped

By default it is not to boot, that is when you need to use the checkStopped:Start() if you want to stop the use checkStopped:Stop()
I recommend that before you use it you use the Self.StopAttack()

I'm finding that will add the get function / set in the settings soon. This would facilitate many, many scripts.