• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] How do i remove unit groups?

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
How do i remove unit groups?

Variables
floatingtextpoint : (Line: 8) Location - Removed: Yes
TempFloatText : (Line: 13) Unit Group - Removed: No
pyroblastpoint : (Line: 14) Location - Removed: Yes

Set floatingtextpoint = (Position of (Casting unit))
Set TempFloatText = (Last created floating text)
Set pyroblastpoint = (Position of (Casting unit))

Custom script: call RemoveLocation( udg_floatingtextpoint )
Custom script: call Removeunitgroup( udg_TempFloatText )
Custom script: call RemoveLocation( udg_pyroblastpoint )
 
Level 10
Joined
Apr 3, 2006
Messages
535
Thanks everyone for the replys. Altohugh i now have 2 answers so im not to surw hich to go with, here is the trigger - sorry for the long wall o' text:

Pyroblast Casting Bar
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Pyroblast
Actions
Set pyroblastpoint = (Position of (Casting unit))
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = 10
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.80 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.60 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.80 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.60 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.80 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.60 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.80 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.60 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.65 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.65 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.60 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.60 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.65 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 0.65 seconds
Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Wait 2.00 seconds
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = 10
Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
Set TempReal = 0.00
Set floatingtextpoint = (Position of (Casting unit))
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real(((Intelligence of (Triggering unit) (Include bonuses)) x 8))) damage of attack type Hero and damage type Normal
Set TempReal = (Real(((Intelligence of (Triggering unit) (Include bonuses)) x 8)))
Floating Text - Create floating text that reads ((|cffff0000 + (String((Integer(TempReal))))) + !) at floatingtextpoint with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Set TempFloatText = (Last created floating text)
Trigger - Run Floating Text Fadeout <gen> (ignoring conditions)
Custom script: call RemoveLocation( udg_floatingtextpoint )
Custom script: call RemoveLocation( udg_pyroblastpoint )
Custom script: call DestroyGroup( udg_TempFloatText )

Which would you advise i go with the GroupClear( udg_TempFloatText ) or Custom script: call DestroyGroup (udg_TempFloatText), thanks and + rep all
 
Level 10
Joined
Jun 1, 2008
Messages
485
Thanks everyone for the replys. Altohugh i now have 2 answers so im not to surw hich to go with, here is the trigger - sorry for the long wall o' text:

  • Pyroblast Casting Bar
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Pyroblast
    • Actions
      • Set pyroblastpoint = (Position of (Casting unit))
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = 10
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.80 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.60 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.80 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.60 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.80 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.60 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.80 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.60 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.65 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.65 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.60 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.60 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.65 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 0.65 seconds
      • Floating Text - Create floating text that reads (|cffc3dbff[ + (((Substring(Strings[1], 1, Integers[((Player number of (Owner of (Casting unit))) + 9)])) + (|CFFFF0000 + ((Substring(Strings[1], Integers[((Player number of (Owner of (Casting unit))) + 10)], 10)) + |r))) + |cffc3dbff]|r)) at pyroblastpoint with Z offset 100.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 5.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.85 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Wait 2.00 seconds
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] - 1)
      • Set Integers[((Player number of (Owner of (Casting unit))) + 9)] = 10
      • Set Integers[((Player number of (Owner of (Casting unit))) + 10)] = (Integers[((Player number of (Owner of (Casting unit))) + 9)] + 1)
      • Set TempReal = 0.00
      • Set floatingtextpoint = (Position of (Casting unit))
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real(((Intelligence of (Triggering unit) (Include bonuses)) x 8))) damage of attack type Hero and damage type Normal
      • Set TempReal = (Real(((Intelligence of (Triggering unit) (Include bonuses)) x 8)))
      • Floating Text - Create floating text that reads ((|cffff0000 + (String((Integer(TempReal))))) + !) at floatingtextpoint with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Set TempFloatText = (Last created floating text)
      • Trigger - Run Floating Text Fadeout <gen> (ignoring conditions)
      • Custom script: call RemoveLocation( udg_floatingtextpoint )
      • Custom script: call RemoveLocation( udg_pyroblastpoint )
      • Custom script: call DestroyGroup( udg_TempFloatText )
Which would you advise i go with the GroupClear( udg_TempFloatText ) or Custom script: call DestroyGroup (udg_TempFloatText), thanks and + rep all
Err.... Do you really think TempFloatText is a Unit Group Variable? You set it to (Last created floating text), so is it a Floating Text Variable? You can't destroy Floating Text variable with "DestroyGroup" function nor "GroupClear" function.
If you do same thing many time like above, don't copy n paste it, use Loop instead (Use For Each Integer Function).
Don't use Wait if you want it to MUI (Multi-Unit Instanceable) use Periodic trigger instead.
Don't use (Casting Unit), use (Triggering Unit) instead.
And, Add [hidden][/hidden] and [trigger][/trigger] tag to your trigger, it make your trigger easier to read, like I do in your quote.
 
Last edited:
Level 10
Joined
Apr 3, 2006
Messages
535
thanks for your feed back, im sorry im still noob at triggering spells and stuff. So to remove the variabke would the following work?

Custom script: call DestroyTextTag( udg_Your_Variable )


Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Destroy (Last created floating text)

Also how do i make Periodic trigger instead?

I also didnt realise using(Casting Unit), instead (Triggering Unit) made that much differnce, but i shall change this. Thanks again for all your help
 
Level 10
Joined
Jun 1, 2008
Messages
485
thanks for your feed back, im sorry im still noob at triggering spells and stuff. So to remove the variabke would the following work?

Custom script: call DestroyTextTag( udg_Your_Variable )


Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Destroy (Last created floating text)
All of it will work, but the second is recommended if you want it to appear for a while, not destroyed instantly.

okay im stuck i have no idea how to use the periodic event to make this MUI
Err... I can't explain this, you can read [thread=34393]This tutorial[/thread], or [thread=96460]This One[/thread], or [thread=121558]This[/thread].
 
Status
Not open for further replies.
Top