Torchmodders

Modding => Modding Questions => Topic started by: Haxley on April 14, 2018, 06:00:06 pm


Title: Making pets cast spells
Post by: Haxley on April 14, 2018, 06:00:06 pm
Okay, so, I can make my pet proc a skill, right? Using [Cast Skill]~


However, It will only work if there is an enemy around?


Is there a way to force the skill to happen, regardless of the presence of an enemy?

Mayhaps the problem is in the skill somewhere?


Code: [Select]
<STRING>ACTIVATION_TYPE:NORMAL
<STRING>TARGET_TYPE:SELF
<FLOAT>RANDOMRANGE:0
<FLOAT>RANGE:100
<FLOAT>MANA_GRAPH_SCALE:0
<INTEGER>COOLDOWNMS:5000
<FLOAT>TURNRATEOVERRIDE:-1
<BOOL>DONT_STOP_ON_DEATH:1
<BOOL>SHOW_IN_BUFFLIST:0
<BOOL>CAN_BE_SILENCED:0
<BOOL>CAN_APPROACH:0
<INTEGER64>UNIQUE_GUID:-5954643690816597198
<STRING>TARGET:SELF
[LEVEL1]
[EVENT_START]
<STRING>FILE:media/skills/0_doton/rock_pillar_spear/rock_pillar_spear_pet.layout
<BOOL>ATTACHES:1
<FLOAT>SOAKSCALEPCT:1
<BOOL>USE_MASTER_FOR_ATTACKS:1
<BOOL>NOSTRIKEPARTICLES:1
[/EVENT_START]
[/LEVEL1]

Anyone? <3
Title: Re: Making pets cast spells
Post by: Haxley on April 14, 2018, 06:19:50 pm
I actually seems I may have solved this for myself~

Activation should be set to Proc, not Normal.

Proc makes it fires regardless of circumstances.

Thanks anyways!

You guys are great :D
Title: Re: Making pets cast spells
Post by: steffire3 on April 14, 2018, 08:40:08 pm
@Haxley I'm so glad you found a fix!

I was about to say just use what the Engineer's Heal Bot and Immobile Copter Skills use however it wasn't needed this time!  :D
Title: Re: Making pets cast spells
Post by: Sch123 on April 15, 2018, 02:55:19 am
I actually seems I may have solved this for myself~

Activation should be set to Proc, not Normal.

Proc makes it fires regardless of circumstances.

Thanks anyways!

You guys are great :D

If it fires regardless of circumstances, would it cause Mana on pet will run out quickly? (For skills / spell that have a short Cooldown time).

If you are setting up Mana cost on the existing skill / spell on pet 0 it might solve the problem, but it will make too Over Power (For a very strong skill).

Or you give a sufficient Cooldown time to replenish the "Mana" already in use.



By the way what kind of pet are you making? I was so curious about it. :D