clouds12 wrote: ↑Mon Mar 06, 2017 6:44 pm
This is what I use for Fissure, its not perfect but works for my needs.
Code: Select all
--[[
--------------------------------------------------
Copyright (C) 2016 Clouds12
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
--------------------------------------------------
]]--
--- Perform the attack routine on the selected target.
--
-- @param Entity Contains the entity we have targeted.
-- @param double Contains the distance to the target
-- @param bool Indicates whether or not the target is stunned.
-- @return bool
function Attack( Entity, Range, Stunned )
-- Wind
if Entity:GetName() == "Special Forces Commander Gegares" and Helper:CheckAvailable( "Fierce Gale" ) then
Helper:CheckExecute( "Fierce Gale" );
return false;
end
if Helper:CheckAvailable( "Field of Lightning" ) then
Helper:CheckExecute( "Field of Lightning" );
return false;
end
if Helper:CheckAvailable( "Electro Bolts" ) then
Helper:CheckExecute( "Electro Bolts" );
return false;
end
-- Fire
if Helper:CheckAvailable( "Rush of Flames" ) then
Helper:CheckExecute( "Rush of Flames" );
elseif Helper:CheckAvailable( "Fan of Flames" ) then
Helper:CheckExecute( "Fan of Flames" );
elseif Helper:CheckAvailable( "Inferno's Embrace" ) then
Helper:CheckExecute( "Inferno's Embrace" );
return false;
end
-- Water
if Helper:CheckAvailable( "Icewind Gale" ) then
Helper:CheckExecute( "Icewind Gale" );
return false;
end
if Helper:CheckAvailable( "Ice Spike" ) then
Helper:CheckExecute( "Ice Spike" );
return false;
end
if Helper:CheckAvailable( "Wave of Bitter Cold" ) then
Helper:CheckExecute( "Wave of Bitter Cold" );
return false;
end
if Helper:CheckAvailable( "Healing Rain" ) and Player:GetHealth() < 85 then
Helper:CheckExecute( "Healing Rain" );
return false;
end
-- Earth
if Helper:CheckAvailable( "Powerful leap" ) then
Helper:CheckExecute( "Powerful leap" );
elseif Helper:CheckAvailable( "Roar of the Earth" ) then
Helper:CheckExecute( "Roar of the Earth" );
elseif Helper:CheckAvailable( "Ground Smash" ) then
Helper:CheckExecute( "Ground Smash" );
return false;
end
end
tyvm clouds! I will give it a try and let you know the results, tho tbh im seeing quite a lot of similarities as to my own script other than the return false additions.
*update: your script has same problem as mine. It doesnt launch electro bolts when using avatar of wind.
*update: when using avatar of flames, only the skill Rush of flames will activate. the other 3 skill doesnt activate once.
*update: when using avatar of earth, only the skills Ground Smash and Roar of the earth will be activated. the other first 2 skills, didnt.
*update: avatar of water, only icewind gale and wave of bitter cold activates. the other 2 skills didnt work.
so can you try again on your AS and see if everything is still still in order? or maybe theres something wrong with my skill.na file or settings, that it doesnt launch properly?