News:

SMFNew Installed

+-+-

User+-

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

Site Stats+-

Members
Total Members: 728
Latest: Cho
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 10932
Total Topics: 795
Most Online Today: 389
Most Online Ever: 854
(September 18, 2024, 07:49:37 am)
Users Online
Members: 0
Guests: 293
Total: 293

Author Topic: [SKILL] Applying Affixes to Multiple Targets  (Read 899 times)

0 Members and 76 Guests are viewing this topic.

[SKILL] Applying Affixes to Multiple Targets
« on: »
Hi @Lord Nyriox this is an attempt to answer your question on the Discord about applying the "Share the wealth" skill's effects to monsters as well as allies and self...

A quick look at the code suggest to me that you should be able to set-up an additional AFFIX block like the ones already there, except have the <STRING>TARGET: set to ENEMY...

Code: [Select]
[LEVEL1]
<TRANSLATE>DESCRIPTION:Shared Charge benefits: 20%
<FLOAT>RANDOMRANGE:0
[EVENT_START]
<STRING>FILE:media/skills/wanderer/sharethewealth/sharethewealth.layout
<BOOL>FOLLOWS:true
<BOOL>NOSTEALEFFECTS:false
<BOOL>STATSHIDDEN:true
[AFFIXES]
<STRING>TARGET:FRIEND
<STRING>AFFIX:WANDERER_SHARE_THE_WEALTH
[STATWATCHER]
<STRING>STAT:PLAYER CHARGE PERCENT
<STRING>PRIMARY_TARGET_TYPE:SELF
<STRING>SECONDARY_TARGET_TYPE:VALUE
<STRING>WATCH_TYPE:GREATER THAN
<FLOAT>SECONDARY_VALUE:0
[/STATWATCHER]
[/AFFIXES]
[AFFIXES]
<STRING>TARGET:SELF
<STRING>AFFIX:WANDERER_SHARE_THE_WEALTH
[STATWATCHER]
<STRING>STAT:PLAYER CHARGE PERCENT
<STRING>PRIMARY_TARGET_TYPE:SELF
<STRING>SECONDARY_TARGET_TYPE:VALUE
<STRING>WATCH_TYPE:GREATER THAN
<FLOAT>SECONDARY_VALUE:0
[/STATWATCHER]
[/AFFIXES]
[/EVENT_START]
[/LEVEL1]

Haven't tried it myslef yet tho...

Share on Bluesky Share on Facebook


Re: [SKILL] Applying Affixes to Multiple Targets
« Reply #1 on: »
A quick look at the code suggest to me that you should be able to set-up an additional AFFIX block like the ones already there, except have the <STRING>TARGET: set to ENEMY...

EDIT:  Dang it!  Using a UnitTheme on the Affix, I can confirm that "TARGET:ENEMY" is not enough to make it affect monsters.  It apparently affects friendly NPCs (including pets and town guards) just fine, though.  :} 

I will attempt setting "TARGET_ALIGNMENT" to "ALL" next. 
« Last Edit: June 19, 2018, 11:58:51 pm by Lord Nyriox »
I am off to Tamriel, seeking new adventures, great and small.  One day, I might return to Novastraia and show what I have learned.

Re: [SKILL] Applying Affixes to Multiple Targets
« Reply #2 on: »
Yes, good call! I missed that :o


 

Recent Topics+-