• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Custom Script Question

Status
Not open for further replies.
Level 13
Joined
May 10, 2009
Messages
868
In fact, there is a function which returns what you are asking for. However, it is mainly used for abilities in GUI. You'll have to use custom script anyway.

"Game - Ability Effect Art Path", which is this function in JASS text:
JASS:
native GetAbilityEffectById takes integer abilityId, effecttype t, integer index returns string
Instead of giving an ability's raw data as the first parameter, put a specific unit's raw data. Example:

JASS:
call BJDebugMsg(GetAbilityEffectById('hsor', EFFECT_TYPE_MISSILE, 0))
That line will display the sorceress's missile path.

OR
upload_2018-11-24_21-46-54.png


  • Events
    • Player - Player 1 (Red) skips a cinematic sequence
  • Conditions
  • Actions
    • Custom script: set udg_AbilityVar = 'hsor'
    • Game - Display to (All players) the text: (Art path of AbilityVar Missile Art (index 0))
upload_2018-11-24_21-43-42.png


By the way, press Ctrl + D in Object Editor and you'll be able to see the raw data of all units.
 
Last edited:
Level 5
Joined
Dec 25, 2014
Messages
109
In fact, there is a function which returns what you are asking for. However, it is mainly used for abilities in GUI. You'll have to use custom script anyway.

"Game - Ability Effect Art Path", which is this function in JASS text:
JASS:
native GetAbilityEffectById takes integer abilityId, effecttype t, integer index returns string
Instead of giving an ability's raw data as the first parameter, put a specific unit's raw data. Example:

JASS:
call BJDebugMsg(GetAbilityEffectById('hsor', EFFECT_TYPE_MISSILE, 0))
That line will display the sorceress's missile path.

OR
View attachment 310531

  • Events
    • Player - Player 1 (Red) skips a cinematic sequence
  • Conditions
  • Actions
    • Custom script: set udg_AbilityVar = 'hsor'
    • Game - Display to (All players) the text: (Art path of AbilityVar Missile Art (index 0))
View attachment 310530

By the way, press Ctrl + D in Object Editor and you'll be able to see the raw data of all units.
Cool, thanks for the trick.
 
Status
Not open for further replies.
Top