• 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.

[Trigger] Units don't do damage

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
Hi ^^
Well i got this trigger
  • bazooka1
    • Unit - Create 1 Bazooka_dummy for Player 1 (Red) at JackPosition facing JackFacingAngle degrees
    • Set missile_dummy[a] = (Last created unit)
    • Wait 0.01 seconds
    • Unit - Order missile_dummy[a] to Bewegen nach (JackPosition offset by 2000.00 towards (JackFacingAngle - 7.00) degrees)
    • Unit - Add a 4.00 second Generic expiration timer to missile_dummy[a]
    • Trigger - Add to bazooka2 <gen> the event (Unit - A unit comes within 150.00 of missile_dummy[a])
and this one
  • bazooka2
    • Set temppoint1 = (Position of (Triggering unit))
    • Set tempreg1 = (Region centered at temppoint1 with size (400.00, 400.00))
    • Set tempgroup = (Units in tempreg1 owned by Player 2 (Blue))
    • Unit Group - Pick every unit in tempgroup and do (Unit - Cause missile_dummy[a] to damage (Picked unit), dealing 20.00 damage of attack type Chaos and damage type General)
    • Custom script: call RemoveLocation(udg_temppoint1)
    • Custom script: call RemoveRect(udg_tempreg1)
    • Custom script: call DestroyGroup(udg_tempgroup)
    • Unit - Kill missile_dummy[a]
But somehow, the dummy unit just moves through the units means, the second trigger doesn't fire.. what am I doing wrong? o_O
 
I only help those who are willing to help themselves, which you don't seem to be...

Don't say that ... you are going the wrong way.

Squiggy, your trigger lacks an event, as Grifen said.
If that is all your trigger, than our job is done and we can no longer help you.
However, on the other hand, if it is not, we can't help you more because we don't know the source of the problem. Also, this section is safe, people won't steal your idea.

Btw, can you tells us the kind of spell you are making ?? Our spells section is huge, I am sure you can find there a map that you can learn from. But remember, if you find a map there, you better come to the forum, so we can fix it - although most of the spells need fixing they are still very handy, specially because they work =)

I don't know if you are new here, so I give you the link to the spells section:
http://www.hiveworkshop.com/resources_new/spells/

Also, there is also this website:
http://www.wc3campaigns.net/resources.php?f=616

The second website is what i call an "elite" website. Most spells there are in JASS or vJASS and it is hard to approve a spell there, mainly due their high standards. Still I believe you can find something useful there. They also have a forum you can use together with this one, in order to get more answers.

Hope it helped. Keep trying.
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • Trigger - Add to bazooka2 <gen> the event (Unit - A unit comes within 150.00 of missile_dummy[a])
I think, thats an event, isn't it?

Well the spell i was planning to do should that when the specified ability is cast, a dummy unit appears for which i was using a missile's model. The dummy moves to a specified point and if it encounters nearby enemies, it does damage (second trigger)

Anyhow, i solved the trigger using a attack detection (like event: unit by player 2 is attacked [player 2 is an enemy] and so on. Now it works so nevermind this thread.. *spreads rep*

Btw.. i'm not soo new (post count 300+ ;) )
 
Status
Not open for further replies.
Top