• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Plz take a look

Status
Not open for further replies.
Level 3
Joined
May 11, 2009
Messages
42
For me, this looks as a perfect set of triggers, plz tell me whats wrong T_T

  • Uses equip Copy
    • Events
      • Unit - A unit Uses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item being manipulated) Equal to ItemMelee[(Player number of (Owner of (Hero manipulating item)))]
          • UnitLeader[(Player number of (Owner of (Hero manipulating item)))] Not equal to UnitMeleeLeader[(Player number of (Owner of (Hero manipulating item)))]
        • Then - Actions
          • Set TempPoint1 = (Position of (Hero manipulating item))
          • Set TempPoint2 = (Center of leaders hangout <gen>)
          • Unit - Change ownership of (Hero manipulating item) to Neutral Hostile and Change color
          • Unit - Move (Hero manipulating item) instantly to TempPoint2
          • Unit - Change ownership of UnitMeleeLeader[(Player number of (Owner of (Hero manipulating item)))] to (Owner of (Hero manipulating item)) and Change color
          • Unit - Move UnitMeleeLeader[(Player number of (Owner of (Hero manipulating item)))] instantly to TempPoint1, facing (Facing of (Hero manipulating item)) degrees
          • Unit - Set life of UnitMeleeLeader[(Player number of (Owner of (Hero manipulating item)))] to (Life of (Hero manipulating item))
          • For each (Integer B) from 1 to 6, do (Actions)
            • Loop - Actions
              • Hero - Give (Item carried by (Hero manipulating item) in slot (Integer B)) to UnitMeleeLeader[(Player number of (Owner of (Hero manipulating item)))]
          • Set UnitLeader[(Player number of (Owner of (Hero manipulating item)))] = UnitMeleeLeader[(Player number of (Owner of (Hero manipulating item)))]
          • Selection - Select UnitMeleeLeader[(Player number of (Owner of (Hero manipulating item)))] for (Owner of (Hero manipulating item))
          • Hero - Modify Strength of UnitLeader[(Player number of (Owner of (Hero manipulating item)))]: Set to (Strength of (Hero manipulating item) (Exclude bonuses))
          • Hero - Modify Agility of UnitLeader[(Player number of (Owner of (Hero manipulating item)))]: Set to (Agility of (Hero manipulating item) (Exclude bonuses))
          • Hero - Modify Intelligence of UnitLeader[(Player number of (Owner of (Hero manipulating item)))]: Set to (Intelligence of (Hero manipulating item) (Exclude bonuses))
          • Custom script: call RemoveLocation(udg_TempPoint1)
          • Custom script: call RemoveLocation(udg_TempPoint2)
        • Else - Actions
          • Do nothing
 
Level 3
Joined
May 11, 2009
Messages
42
ok, thing is this... you choose a spot, build your main structure and choose a hero...

when you have trained the hero there are 2 clones spawned for neutral hostile at a location not used in the game. The dummies are the melee leader and ranged leader.

There are melee and ranged items, but you need to use them for them to take effect, and you then swap your hero for the appropriate clone. This way you can switch between using a ranged attack or melee attack.

The damn thing doesn't work... The clones refuse to switch owner, and only the hero manipulating item is moved, not the clone
 
Level 9
Joined
Jun 3, 2009
Messages
486
You're using unit arrays correct?

Edit: send me the map an ill fix it for you ;), it will take like 10 minutes
 
Level 3
Joined
May 11, 2009
Messages
42
Y, but i figured it out now =D
Seemed that changing the ownership of the "hero manipulating item" in the beginning messed up the whole thing, as all variable arrays were referring to the player number of the owner of that unit ^^

Thx for the quick replies though ^.-
 
Level 9
Joined
Jun 3, 2009
Messages
486
Y, but i figured it out now =D
Seemed that changing the ownership of the "hero manipulating item" in the beginning messed up the whole thing, as all variable arrays were referring to the player number of the owner of that unit ^^

Thx for the quick replies though ^.-

Any time man :D
 
Status
Not open for further replies.
Top