Getting skills name

AlicanC

New Member
Reaction score
2
Code:
ActM Skill Learn
    Events
        Unit - A unit Learns a skill
    Conditions
    Actions
        Set Last_Unit = (Learning Hero)
        Set FloMes_Message = [Skill name here]
        Set FloMes = ((|cff0099cc + FloMes_Message) + (! + |r))
        Floating Text - Create floating text that reads FloMes above Last_Unit with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Floating Text - Change (Last created floating text): Disable permanence
        Floating Text - Change the .....

How can I get the name of learned skill??
 

Tom Jones

N/A
Reaction score
437
Code:
ActM Skill Learn
    Events
        Unit - A unit Learns a skill
    Conditions
    Actions
        Set Last_Unit = (Learning Hero)
[B]        Custom Script:    set udg_FloMes_Message = GetObjectName(GetLearnedSkill())[/B]
        Set FloMes = ((|cff0099cc + FloMes_Message) + (! + |r))
        Floating Text - Create floating text that reads FloMes above Last_Unit with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Floating Text - Change (Last created floating text): Disable permanence
        Floating Text - Change the .....
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
u mean getting the skill itself?
u can using custom script:
Code:
set udg_FloMes = GetLearnedSkill()
 

AlicanC

New Member
Reaction score
2
I just need skills name. I think this will solve my problem:
Code:
Custom Script:    set udg_FloMes_Message = GetObjectName(GetLearnedSkill())
Edit: Thanks Tom Jones! It worked :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top