• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Custom Script Question

Status
Not open for further replies.
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:
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.
Back
Top