Spell Terra Crush

Hatebreeder

So many apples
Reaction score
381
There is a leak in your spell:

Code:
Set TC_NumberOfUnits = (Number of units in (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_G
You got a unit group leak there. I didn't find any other leaks, so once you fix this one and write importing instructions the spell will be approved.
But that's a Integer Value... Since when do Integers Leak? :S
And, how to I remove Integers?
I can't do
Code:
call RemoveLocation(udg_TC_NumberOfUnits)
set udg_TC_NumberOfUnits = null
Please Help out :S
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
It is an integer that counts units.

Code:
Set TC_NumberOfUnits = (Number of units in ([B]Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_G[/B]
You are creating a new group here, what you need to do is:

Code:
Set Group = (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_G)
Set TC_NumberOfUnits = (Number of units in(Group))
 

Hatebreeder

So many apples
Reaction score
381
It is an integer that counts units.

Code:
Set TC_NumberOfUnits = (Number of units in ([B]Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_G[/B]
You are creating a new group here, what you need to do is:

Code:
Set Group = (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_G)
Set TC_NumberOfUnits = (Number of units in(Group))
I use this Line
Code:
Set TC_NumberOfUnits = (Number of units in (Units within 225.00 of TC_CasterLocation matching ((((Matching unit) is a Structure) Equal to False) and ((((Matching unit) is Immun against Magic) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((((Matching unit) is in TC_Group[2] Equal to false)))))
to count the number of times it loops for my loop.
It's not possible to get rid of this Line...

Well, it should work, but it malfunctions. It doesn't pick all Units, it only picks one. :S
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
You seem to be misunderstanding me. I'm doing exactly what you are doing, only storing the group leak in a variable so I could remove it later.
 

Hatebreeder

So many apples
Reaction score
381
Oh my Bad !
I acedently declared the Unit Group as "Random 1 Unit..." xD
Srry Rheias xD
You also get a +Rep from me xD

*Updated First Post*
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
Well the leak is cleared, but I can't see any importing instructions. :rolleyes:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I reorganized the forums somewhat but I doubt anyone would notice
  • The Helper The Helper:
    Happy Friday!
    +1
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    The forum software says we have 554 members online now. We did not have that many unique visitors the whole day today. Too many bots and the disconnect between the forum counts and the stats.
  • Varine Varine:
    Currently it says 413 guests and 2 members
    +1
  • Varine Varine:
    Aww
  • The Helper The Helper:
    That is going to be mostly bots
  • The Helper The Helper:
    527 (members: 2, guests: 525)
  • The Helper The Helper:
    Happy Saturday!
    +1
  • V-SNES V-SNES:
    Happy Saturday!
    +1
  • The Helper The Helper:
    622 (members: 2, guests: 620)
  • The Helper The Helper:
    666 (members: 4, guests: 662) :)
    +1
  • Varine Varine:
    609 (members: 4, guests: 605)
  • The Helper The Helper:
    I was posting that last one because the 666 users online :)
    +1
  • The Helper The Helper:
    Happy Wednesday Night!
    +1
  • The Helper The Helper:
    Happy Thursday!
    +1
  • The Helper The Helper:
    Marathon watching The Expanse!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    leaving for the weekend in San Antonio will be gone until Sunday afternoon
    +1
  • The Helper The Helper:
    and I am back :)
    +1
  • The Helper The Helper:
    Happy Tuesday!
    +1

    The Helper Discord

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top