- Joined
- Nov 7, 2014
- Messages
- 571
Does someone have an idea what the abilityString parameter is supposed to look like for those?
And yes I know there are "ById" equivalents:
but I am intrested in the string versions.
For the Thunder Clap ability ('AHtc') I've tried:
And yes I am sure that the effecttype parameter is correct:
So... has anyone ever actually used the string version natives and got anything else except null? =)
native GetAbilityEffect takes string abilityString, effecttype t, integer index returns string
native GetAbilitySound takes string abilityString, soundtype t returns string
native AddSpellEffect takes string abilityString, effecttype t, real x, real y returns effect
native AddSpellEffectLoc takes string abilityString, effecttype t,location where returns effect
native AddSpellEffectTarget takes string modelName, effecttype t, widget targetWidget, string attachPoint returns effect
And yes I know there are "ById" equivalents:
native GetAbilityEffectById takes integer abilityId, effecttype t, integer index returns string
native GetAbilitySoundById takes integer abilityId, soundtype t returns string
native AddSpellEffectById takes integer abilityId, effecttype t,real x, real y returns effect
native AddSpellEffectByIdLoc takes integer abilityId, effecttype t,location where returns effect
native AddSpellEffectTargetById takes integer abilityId, effecttype t, widget targetWidget, string attachPoint returns effect
but I am intrested in the string versions.
For the Thunder Clap ability ('AHtc') I've tried:
JASS:
"AHtc" // yeah I was optimistic at the start..., I got (null)
"thunderclap" // again (null)
"Thunderclap" // and again
"Thunder Clap" // etc...
"Standard Abilities/Human/Heroes/Thunder Clap"
"Standard_Abilities/Human/Heroes/Thunder_Clap"
...
"Abilities\\Human\\Heroes\\Thunderclap" // nope, (null) again
And yes I am sure that the effecttype parameter is correct:
JASS:
GetAbilityEffectById('AHtc', EFFECT_TYPE_CASTER, 0) == "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl"
GetAbilityEffect("<abilityString>", EFFECT_TYPE_CASTER, 0) == null // for every <abilityString> I've tested
So... has anyone ever actually used the string version natives and got anything else except null? =)