• 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] Help; Constructible Unit Map Triggers

Status
Not open for further replies.
Level 17
Joined
Aug 19, 2007
Messages
1,380
Hi, I need some help with my map: Constructible Units. It's a very simple attempt to make a map where you can make your own units through some weapon and armor options (abilities). I've only just begon on it, and there are still only 5 options (2 weapons and 3 armors) and 5 begin units.

I got the following problems:
*Sword activates second attack type instead of first.
*Sometimes, when an armor option has been cast (/chosen), not all the other armor options are removed. Same for weapons.

Here are my triggers;

:)fp:Also, I've attached the map.)

  • Simple Armor
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Choose Simple Armor (Howl of Terror)
    • Actions
      • Unit - Add Attachment ArmorWood (+1) to (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Simple Armor (Howl of Terror) from (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Medium Armor (Tranquility) from (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Heavy Armor (Starfall) from (Casting unit)
  • Medium Armor
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Choose Medium Armor (Tranquility)
    • Actions
      • Unit - Add Attachment ArmorGothic (+2) to (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Medium Armor (Tranquility) from (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Heavy Armor (Starfall) from (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Simple Armor (Howl of Terror) from (Casting unit)
  • Heavy Armor
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Choose Heavy Armor (Starfall)
    • Actions
      • Unit - Add Attachment ArmorHeavyMetal (+3) to (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Heavy Armor (Starfall) from (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Simple Armor (Howl of Terror) from (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Medium Armor (Tranquility) from (Casting unit)
  • Weapon Sword
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Choose Sword as Weapon (War Stomp)
    • Actions
      • Unit - Add Attack Sword to (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Wand as Weapon (Roar) from (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Sword as Weapon (War Stomp) from (Casting unit)
  • Weapon Wand
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Choose Wand as Weapon (Roar)
    • Actions
      • Unit - Add Attack Wand to (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Sword as Weapon (War Stomp) from (Casting unit)
      • Wait 0.01 seconds
      • Unit - Remove Choose Wand as Weapon (Roar) from (Casting unit)
Thanks very much for taking the time, I really appreciate it!
 

Attachments

  • Constructible UnitsTEMP.w3x
    822.5 KB · Views: 16
Level 17
Joined
Aug 19, 2007
Messages
1,380
This may not make sense but use Triggering Unit instead of Casting Unit
Because Triggering Unit is local
, that did the trick, thanks and +rep for you.

I've still got one problem though; *Sword activates second attack type instead of first.
I've think this has got to do with the orb ability, can it actually enable attack index 1 (/first attack type)?
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
Need_O2 is right, and you know why?
Because every 'Unit' (Like casting unit, entering unit etc.) are removed after a wait, so either you set it in a variable, or you use Triggering unit, that one is the only that is not deleted.

Did you base the abiltys of the same one? Or different? (i think different since you have the real names behind them)
Hmm,, Check the order string in Object Editor, if they are the same, change one, if not, i really dont know,,
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
dunno
work on orb for some, try different orb, try making enable both attacks and make attack 2 has 0 dice
try and try and try lol (cant think of anything else sorry)
 
Level 17
Joined
Aug 19, 2007
Messages
1,380
Did you base the abiltys of the same one? Or different? (i think different since you have the real names behind them)
, y different
Hmm,, Check the order string in Object Editor, if they are the same, change one, if not, i really dont know,,
, it has to do with the orb or with the unit attack types (first or second). Thanks for trying to help.
dunno
work on orb for some, try different orb, try making enable both attacks and make attack 2 has 0 dice
try and try and try lol (cant think of anything else sorry)
, I'll try :)
 
Status
Not open for further replies.
Top