ExecutePower

Post Reply
Cimpi1966
Basic Botter
Basic Botter
Posts: 5
Joined: Sun Feb 28, 2016 9:38 pm

ExecutePower

Post by Cimpi1966 »

Hi everyone.
How is ExecutePower configured to use mount power in combat? Thanks for the replies
michaelprog
Contributor
Contributor
Posts: 605
Joined: Wed Aug 31, 2016 7:32 am

Re: ExecutePower

Post by michaelprog »

I think the only way can work is manual edition of xml-file of ucc-profile.
You have to know id of the concrete mount power to do this.
I am not shure that way works.
Cimpi1966
Basic Botter
Basic Botter
Posts: 5
Joined: Sun Feb 28, 2016 9:38 pm

Re: ExecutePower

Post by Cimpi1966 »

michaelprog wrote: Tue Feb 14, 2023 5:21 pm I think the only way can work is manual edition of xml-file of ucc-profile.
You have to know id of the concrete mount power to do this.
I am not shure that way works.
Thanks for your answer.
I made this UCC for the classes I use. They are not optimized but run decently for what I do.
I would also like to enter the combat power of the mount but I have no idea how to do it. It's just that it's possible to do it with the command ExecutePower.
I keep lurking the forum for answers but in the meantime if you have any suggestions I would be very grateful.
You do not have the required permissions to view the files attached to this post.
michaelprog
Contributor
Contributor
Posts: 605
Joined: Wed Aug 31, 2016 7:32 am

Re: ExecutePower

Post by michaelprog »

What mount's power do you use?
Write the power and the mount names, please
Cimpi1966
Basic Botter
Basic Botter
Posts: 5
Joined: Sun Feb 28, 2016 9:38 pm

Re: ExecutePower

Post by Cimpi1966 »

michaelprog wrote: Wed Feb 15, 2023 12:32 am What mount's power do you use?
Write the power and the mount names, please
Explosive Equalizer
michaelprog
Contributor
Contributor
Posts: 605
Joined: Wed Aug 31, 2016 7:32 am

Re: ExecutePower

Post by michaelprog »

Cimpi1966 wrote: Wed Feb 15, 2023 4:24 pm
michaelprog wrote: Wed Feb 15, 2023 12:32 am What mount's power do you use?
Write the power and the mount names, please
Explosive Equalizer
I tries this way.
It doesn't work with mont spell "Mount_Generic_Damage_Aoe_Activate"
Cimpi1966
Basic Botter
Basic Botter
Posts: 5
Joined: Sun Feb 28, 2016 9:38 pm

Re: ExecutePower

Post by Cimpi1966 »

michaelprog wrote: Wed Feb 15, 2023 7:36 pm
Cimpi1966 wrote: Wed Feb 15, 2023 4:24 pm
michaelprog wrote: Wed Feb 15, 2023 12:32 am What mount's power do you use?
Write the power and the mount names, please
Explosive Equalizer
I tries this way.
It doesn't work with mont spell "Mount_Generic_Damage_Aoe_Activate"
thanks for trying :)
ezharel
Advanced Member
Advanced Member
Posts: 31
Joined: Mon May 03, 2021 7:24 pm

Re: ExecutePower

Post by ezharel »

If you know how to write a plugin, this class will add a new UCC Action to trigger the Mount Power:

code: Select all

using Astral.Logic.UCC.Classes;

namespace QuesterPack.UCC.Actions
{
    public class MountPower : Astral.Logic.UCC.Classes.UCCAction
    {
        public new string ActionName { get; set; } = "Mount Power";

        public override bool NeedToRun => true;

        public override UCCAction Clone() => new Astral.Logic.UCC.Actions.Spell();

        public override bool Run()
        {
            // might not need both, but never bothered to test
            MyNW.Internals.GameCommands.ToggleMount();
            MyNW.Internals.GameCommands.Execute("+Mount");

            return true;
        }
    }
}
michaelprog
Contributor
Contributor
Posts: 605
Joined: Wed Aug 31, 2016 7:32 am

Re: ExecutePower

Post by michaelprog »

This is not enough.
Different mount spells have different targets and you should define correct target to activate it.
Something like PluggedSkill in my plugin EntityTools.
Moreover the standard Ucc-Editor does not recognize extended ucc-action from any plugins.

PS. Method GameCommands.MountToggle() call GameCommands.Execute("+Mount") therefore the calling last one doesn't have reason.
ezharel
Advanced Member
Advanced Member
Posts: 31
Joined: Mon May 03, 2021 7:24 pm

Re: ExecutePower

Post by ezharel »

I know it's not a super "clean" solution, but it works for me in most cases for basic leveling and grinding. For more complex situations I agree with you.
Post Reply