• 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] Editor or Triggers fucked up?

Status
Not open for further replies.
Level 25
Joined
Oct 18, 2008
Messages
945
I tried to make some simple spells but they just dont seem to work. when i try to pick units in an area i just get one, the rest are unaffected. I have checked the triggers and they seem fine.

  • Actions
    • Unit Group - Pick every unit in (Units within 225.00 of (Target point of ability being cast)) and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage (Picked unit), dealing 30.00 damage of attack type Spells and damage type Normal
        • Unit - Create 1 Dummy Water Elemental for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Position of (Picked unit))
        • Unit - Add Pushback Dummyspel to (Last created unit)
        • Unit - Order (Last created unit) to Human Blood Mage - Banish (Picked unit)
        • Set Spell__Number = (Spell__Number + 1)
        • Set Pushback_Target[Spell__Number] = (Picked unit)
        • Unit - Set the custom value of (Last created unit) to Spell__Number
        • Unit Group - Add (Last created unit) to PushGroup
        • Unit - Add a 1.10 second Generic expiration timer to (Last created unit)
(theres another trigger that moves the units. it moves the banished one successfully.)

theres another spell that randomly fails to pick units. this has happened before aswell with other maps. it seems to have something to do with large arrays, or maybe not.

i have never heard of anyone else having this problem. is it possible that my editor is somehow fucked? how to fix that?

i attached the map. hopefully some of you can be arsed to look at it.
 

Attachments

  • ismosonni.w3x
    255.2 KB · Views: 38
Level 15
Joined
Aug 11, 2009
Messages
1,606
Something like this would be better...i'm too tired at the moment to test and fix the whole spell but i think you will get my point...
  • Pushback 1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to XX
    • Actions
      • Set Caster = (Casting unit)
      • Set CasterPoint = (Position of Caster)
      • Set Target = (Target unit of ability being cast)
      • Set TargetPoint = (Position of Target)
      • Set Temp_Group_1 = (Units within 225.00 of TargetPoint)
      • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
        • Loop - Actions
          • Unit - Cause Caster to damage (Picked unit), dealing 30.00 damage of attack type Spells and damage type Normal
          • Unit - Create 1 for (Owner of Caster) at (Position of Caster) facing (Position of (Picked unit))
          • Unit - Add Released Sword to (Last created unit)
          • Unit - Order (Last created unit) to Human Blood Mage - Banish (Picked unit)
          • Set Spell__Number = (Spell__Number + 1)
          • Set Pushback_Target[Spell__Number] = (Picked unit)
          • Unit - Set the custom value of (Last created unit) to Spell__Number
          • Unit Group - Add (Last created unit) to PushGroup
          • Unit - Add a 1.10 second Generic expiration timer to (Last created unit)
Also,i didn't change the last part cause i didn't know the reason you used the last variables.
P.S. Fix leaks...i didn't.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Are you modifying the custom value of last created unit on purpose? And you add last created unit to pushback group?

I did some modifications to your ability:

EDIT: Link removed.

(The cooldown of the ability is 3 seconds, and HP regeneration of the unit has been modified also)

I changed the "last created unit" to picked unit. I set the time interval on the pushback trigger from 0.06 to 0.03 so it looks smoother. I set the pushback trigger to be initially off, it turns on/off when needed so it's not running all the time. I gave the unit a maximum range of 300 to get pushed back. That's easy to change. I removed leaks.

Still there's some weird things going on. The caster can damage himself and allies, structures can be pushed back. Using facing angle of a unit as the pushback direction isn't the best idea.
 
Last edited:
Level 25
Joined
Oct 18, 2008
Messages
945
thanks but thats not exactly what the spell was supposed to do. because i don't know how paladons leet systems work i make stuff MUI by creating a dummy unit group and storing all values with their custom value. (or hit points and facing angle if im lazy)

then i pick them, find the unit the spell is supposed to affect and do the effects on him. your spell moves the units to his own facing angle instead of the dummy unit's.

whatever, have a rep.
 
Level 10
Joined
Oct 22, 2006
Messages
599
VergilThazaar said:
No,its not your editor...your trigger is in-accurate.My advice would be to use more variables and fix leaks.

I agree with reason, I had a similar case myself and by setting the "Casting Unit" into a variable fixed it!

So, reason 3 and I helped you, revealed the solution but you wanted to get the solution from Maker? We answered your question and you ignored us... suspicious... or just too damn lazy?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
thanks. could you also take a look at the freeze spell? changing the casting unit to triggering unit didnt work.

It should work now. I also removed the leaks :thumbs_up:

BTW, why did you include that indexing stuff in the Repel ability's pushback trigger? It isn't needed, since hahtables are used.

http://www.hiveworkshop.com/forums/pastebin.php?id=jevqn7

Also, where does the name of the map come from? It sounds like it's Finnish :)
 
Level 25
Joined
Oct 18, 2008
Messages
945
Level 16
Joined
Oct 12, 2008
Messages
1,570
So, reason 3 and I helped you, revealed the solution but you wanted to get the solution from Maker? We answered your question and you ignored us... suspicious... or just too damn lazy?
Oh boo hoo,, you want a special thanks for your BIG help? You want everybody to clap for you? You want credits in the map or whatever?
Damn let a guy choose for himself, that you got A solution doesnt mean it is the solution HE wants.
He is the guy that chooses who he wants him to help, so dont be such a crybaby for a compliment.

Ignore this post please, i just hate crybabys.
 
Status
Not open for further replies.
Top