Warcraft III resources & community, 2003–2006 · archived

more Local Variable troubles

4 posts
#1

more Local Variable troubles

Floating Text - Create floating text that reads (String((Number of units in TempGroup))) above Satyr 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
        Custom script:   local texttag udg_LocalText
        Set LocalText = (Last created floating text)
        Custom script:   call DestroyGroup(udg_TempGroup)
        Wait 4.00 seconds
        Custom script:   call DestroyTextTag( udg_LocalText )


Obviously I've done something wrong here, but how do i find out, I've never gotten local variables to work, can anyone give me a detailed explaination?

I know it's in the declaration of the local (expected endif is the reson I get)

thanks.
#2
I don't know much about custom scripts, but isn't there a suffix after calling a CS?
#3
I think you have to put it as the VERY FIRST action in the trigger