HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

GetLearnedSkill()

12-03-2004, 06:12 PM#1
Sicknesslife
HI,


GetLearnedSkill() returns an Integer... so why is it that when i declare it in GUI and then convert it it displays:

Code:
function Trig_Cold_Embrace_Learn takes nothing returns boolean
    return ( GetLearnedSkillBJ() == 'A000' )
endfunction

'A000' is not an integer, this would not bother me so much but I have 2 custom spells and when I do


i have two seperate triggers that check if the spell learned = Bloodgout for one ColdEmbrace for the other, when i convert them to custom text the both say

return ( GetLearnedSkillBJ() == 'A000' )

both say == 'A000' that would be the same spell right, but I have 2 different spells! can anyone help me figure this out.
12-04-2004, 12:31 PM#2
Arohk
Quote:
Originally Posted by Sicknesslife
HI,


GetLearnedSkill() returns an Integer... so why is it that when i declare it in GUI and then convert it it displays:

Code:
function Trig_Cold_Embrace_Learn takes nothing returns boolean
    return ( GetLearnedSkillBJ() == 'A000' )
endfunction

'A000' is not an integer, this would not bother me so much but I have 2 custom spells and when I do


i have two seperate triggers that check if the spell learned = Bloodgout for one ColdEmbrace for the other, when i convert them to custom text the both say

return ( GetLearnedSkillBJ() == 'A000' )

both say == 'A000' that would be the same spell right, but I have 2 different spells! can anyone help me figure this out.

it takes the ability code of the ability yours are based on in my eyes. Custom abilities have 9 letters instead of 4 (A000:0001)
12-05-2004, 06:21 AM#3
Guest
Is that a hex number?
12-05-2004, 12:21 PM#4
AFB-DieHard
I have read it is the string converted in integer(the ascii code of every single character)