Spidermine - ability doesnt work!

BoterhaM

New Member
Reaction score
2
hi guys im trying to create an ability called spider mine from the terran vulture but it doesnt work XD surely has many errors in it:

Code:
Untitled Trigger 005
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Spidermine 
    Actions
        Unit - Create 1 spider mine for (Owner of (Triggering unit)) at (Position of (Casting unit)) facing Default building facing degrees
        Set PointSpiderMine = ((Position of (Casting unit)) offset by (0.00, 0.00))
        Set Spidermine[1] = (Last created unit)
        Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is in (Units within 500.00 of PointSpiderMine)) Equal to True
                    Then - Actions
                        Unit - Add Crow Form to Spidermine[1]
                        Unit - Add Kaboom! (Goblin Sapper) to Spidermine[1]
                        Unit - Order Spidermine[1] to Neutral - Kaboom! (Picked unit)

but i cant figure out what :(
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
1: It can override itself.
2: It leaks
3: It's pretty inefficient.
4: And it's probably not casting Kaboom!, since it's in the air. Try putting a tiny wait, then ordering it to cast.
 

ThePlague

New Member
Reaction score
14
Code:
Trigger 1
  Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Spidermine 
    Actions
        Unit - Create 1 spider mine for (Owner of (Triggering unit)) at (Position of (Casting unit)) facing Default building facing degrees
       Add (last created unit) to group (SpiderMineGrouP)
Code:
Trigger 2
   Events
       Every .5 seconds of game time
Actions
       Unit Group - Pick every unit in (SpiderMineGroup) and do (Actions)
            Loop - Actions
set Targets=Units in (Playable map area) matching (matching unit) belongs to an enemy of (Owner of (picked unit))
Unit - Order (Picked Unit) to Neutral - Kaboom! (Random unit from (Targets))
custom script: call DestroyForce (Targets)
why are you adding kaboom in the trigger? just give it the ability to start

also to avoid a point leak you should create a point variable called Map and set it to playable map area and always se that in place of playable map area
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Code:
custom script: call DestroyForce (Targets)

You may want to change it to:

Code:
Custom script: call DestroyGroup (udg_Targets)
 

BoterhaM

New Member
Reaction score
2
i added storm crow form so it would be abe to move/fly, cause spider mines run to their target and then explode upon hit.

thanks for advice tho ^^
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I can make you a triggered Spell like this, just hold on.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
You could use the ability "Item place goblin land mine".
It's usually an item ability but can be used on units too.
And, well, it places a goblin land mine...
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I've got it working, but it isn't showing any special effects on cast.
 

ThePlague

New Member
Reaction score
14
aha sorry about that mistake.
Did my trig work for you with renendaru's fix?

i added storm crow form so it would be abe to move/fly, cause spider mines run to their target and then explode upon hit.
I meant why are you adding kaboom in the trigger, instead of giving it the ability to start?

btw Acehart in Starcraft the spiders move to their target
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
How about giving the "Spidermine" the "Suicidal" classification and make it auto-cast Kaboom?
It'll make them run into nearby targets and Kaboom them.
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
if you want it to be as spider mines in starcraft i ll post a step by step turtorial how i would do it:

1)Make your spider mine unit. (i would use goblin land mine as model/no shadow)
2)Make your spider mine able to move (you can select the speed as you want)
3)Enable a melee attack of your spider mine and set the aquisation range to how close you want enemys to come before the spider mine attacks
4)Add the skill 'Locust' (ID: Aloc) to your unit to make it move through other units, destructibles and other objects and to make it uncontrolable for the owning player.
5)Make a custom spell based on 'Water elementals'
6)Change the unit to your spider mine, change range and area of effect to 0 to place it below the caster.
7)make a trigger like this:
Code:
Spider Mine
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacking unit)) Equal to SpiderMine
    Actions
        Set SpiderMinePoint = (Position of (Attacked unit))
        Unit - Cause (Attacking unit) to damage circular area after 0.00 seconds of radius 'YourAreaOfEffect' at SpiderMinePoint, dealing 'YourDamage' damage of attack type Siege and damage type Normal
        Special Effect - Create a special effect at SpiderMinePoint using Abilities\Weapons\Mortar\MortarMissile.mdl
        Special Effect - Destroy (Last created special effect)
        Custom script: call RemoveLocation (udg_SpiderMinePoint)
        Unit - Remove (Attacking unit) from the game
'YourAreaOfEffect' is the radius of the explosion (damage dealt to everyone within that range)
'YourDamage' is the amount of damage dealt to everyone within the range

8)And finally test your game and be happy...

Edit: I have checked it out and it worked perfectly.
 

BoterhaM

New Member
Reaction score
2
just gonna ask a related question in the same thread:

i imported 3 .wav files for the spider mine and i want a trigger to play the spidermine walking file as long as my spidermine unit is walking, tried several triggers but i just dont seem to find the right one...
 

BoterhaM

New Member
Reaction score
2
Here you go Accname

btw: the skeleton firemage is the one that lays mines (its a really messy map xD)
 

Attachments

  • MAffe game.w3x
    300.7 KB · Views: 113
General chit-chat
Help Users
  • No one is chatting at the moment.

      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