• 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.

JASS Error

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
function SetCheck takes ability a returns nothing
if ( not ( a == 'ANab' ) ) then

says

Comparing two variables of different primitive types is not allowed.

How do i fix this? lol. i just want to check if the ability is this specific ability
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
Erm. remove the solved tag because i misunderstood what you said. That function doesn't work for my needs. I need to get an ability variable's rawcode. Is that so hard..
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
Why are you using ability type anyway? Ability codes are integers. Why does your function take ability? I always use integers, never ability type.

The base trigger is GUI and im using the function to set some variables based on what the ability is I guess u can reset this as solved because cant i use GetSpellAbilityId() as the integer in GUI?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Just like to get Raw ID for Items and Units from the Object Editor
  • Custom script: set udg_IntegerVariable = udg_YourItem
This is to get the Raw ID of Item from the Object Editor.

  • Custom script: set udg_IntegerVariable = udg_YourUnit
This is to get the Raw ID of Unit from the Object Editor.
 
Status
Not open for further replies.
Top