• 🏆 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!

Two questions...

Status
Not open for further replies.
Level 3
Joined
Dec 26, 2004
Messages
43
Excuse-me ... I have 2 unrelated questions.

1-) I wanted to see if it was possible to create a temporary effect when combining 2-3 items. Example:

My hero has the X Coat, It grants nothing
He has the x Belt, it grants nothing
but when he has the X Coat + X Belt, he gets + 10 Strength .
If he loses one of the items, he loses the + 10 strength.

Anybody know how to do this ?

2- I want to make it so that for every creature my Hero kills, my allied soldiers deal more damage.

Example : Hero kills unit => footman gain + 1 damage.

I can't seem to find the trigger for ''add damage attack to unit'' ...
Any ideas ?
 
2)
  • Trigger
  • Events
    • Unit - A unit dies
  • Conditions
  • Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Level of Claws of Attack for (Killing unit)) Greater than 0
      • Then - Actions
        • Unit - Set level of Claws of Attack for (Killing unit) to ((Level of Claws of Attack for (Killing unit)) + 1)
      • Else - Actions
        • Unit - Add Claws of Attack to (Killing unit)
Basically, you will copy and paste the Item Damage Bonus ability, add levels to it and use this trigger. In case an icon of the ability shows up, use a Spell book to hide it. To do so, go to Abilities, find "Spell book", copy and paste it, set Data - Minimum Spells and Data - Maximum Spells to 1, Data - Shared Cooldown to False and edit the abilities field to contain your custom Item Damage Bonus ability. Then, use this trigger:
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (IntegerA) from 1 to 12, do (Actions)
      • Loop - Actions
        • Player - Disable Spell book (custom) from (Player(IntegerA))
To get Player(IntegerA), when it asks you for a player, scroll to Conversion - Convert player index to player.

1)
  • TR
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Coat
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Triggering unit) has an item of type Key of Belt) Equal to True
                • Then - Actions
                  • Hero - Modify Strength of (Triggering unit): Add 10
                • Else - Actions
            • Else - Actions
  • TR2
  • Events
    • Unit - A unit loses an item
  • Conditions
    • Or - Any (Conditions) are true
      • Conditions
        • (Item-type of (Item being manipulated)) Equal to Belt
        • (Item-type of (Item being manipulated)) Equal to Coat
  • Actions
    • Hero - Modify Strength of (Triggering unit): Substract 10
 
Level 3
Joined
Dec 26, 2004
Messages
43
Hum ... For the 1)
If I put this trigger, doesn't the hero gain + 10 strength for every Item he picks if the conditions are met ?
I only want to get a bonus of 10 strength when the 2 items are carried ...
 
Level 3
Joined
Dec 26, 2004
Messages
43
Nop, Doesn't work as expected ... I Get + 10 strength for every item I pick up after having the 2 items ... I wanted to limit the bonus for the 2 items only, but if I pick up any random item (Example potion: I get + 10 strength if I have the 2 items) ...

Any other idea ??
 
Status
Not open for further replies.
Top