View Full Version : need help: consult script to cast leash if mp is high enough
MacGregor
08-22-2008, 01:07 AM
i wrote an extremely basic ash script to max cast leash of linguini if my mp was > 400
if (my_mp() > 400) {
cli_execut("cast * leash of linguini")
}
now when i call the script it works
but when i set the ccs to
1: attack
2: consult leash.ash
it doesnt consult my script...i cant remember if i tried setting it to conslt the script first, i will try that tomorrow and see if it works
if that doesnt work whaat can i do to make it work?
thanks for the help
Sandiman
08-22-2008, 03:52 AM
If I recall, consult scripts only function when called as the first action. If that's the case, you'll need to make attacking part of your consult script.
you can't cast leash in combat ... so no matter what you do it won't work
Captain Kirk
08-24-2008, 09:00 AM
If I recall, consult scripts only function when called as the first action. If that's the case, you'll need to make attacking part of your consult script.
This is incorrect, consult scripts can be called wherever you want in your ccs script.
Captain Kirk
08-24-2008, 09:03 AM
you can't cast leash in combat ... so no matter what you do it won't work
Yes kain is correct. Remember that the only types of skills you can put into consult scripts are skills that
are available during combat. Next time you are in a combat, look at all of the available skills.
MacGregor
08-24-2008, 02:22 PM
so there is no way to call the script after combat either?
Veracity
08-24-2008, 04:12 PM
You can set up a betweenBattleScript to do anything you want between battles.
Taria
08-25-2008, 07:01 AM
There's also setting up an unconditional trigger in your mood that calls the script.
I seem to remember reading elsewhere that if you're using several different scripts like this, and need them in a particular order, using one or the other method makes a difference...
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.