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

Got some Questions! {adding/removing weapons from units | Activating 2 abilities}

Status
Not open for further replies.
Level 2
Joined
Jun 17, 2008
Messages
21
Hi,

I got some Problems in the Editor:



1. How can I add / remove a Weapon to an Unit or from an Unit?

2. How can I connect 2 ACTIVE Spells together? ( If u use the first Spell, the second will be activate too)


RuffyDX



PS.: Please only answer, if my Problems beatable without JASS or another Script Language.
 
Level 11
Joined
Feb 16, 2009
Messages
760
For question 2

Make a simple trigger like this:
  • Demo trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to [Your ability 1]
    • Actions
      • Unit - Order (Triggering unit) to [Your ability 2]
You have to use a ability that does not need a target to avoid hard triggers
 
Level 4
Joined
Jan 24, 2009
Messages
124
Debug

For question 2

Make a simple trigger like this:
  • Demo trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to [Your ability 1]
    • Actions
      • Unit - Order (Triggering unit) to [Your ability 2]
      • Variable - set SELECT targeted unit
You have to use a ability that does not need a target to avoid hard triggers
  • 1St
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ERRORZ
    • Actions
      • UNIT- order triggering unit to cast ERRORZ2
      • Trigger- Run 2nd (checking conditions)
+
  • 2Nd
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ERRORZ2
    • Actions
      • UNIT- order triggering unit to cast ERRORZ on SELECT
NOT BIG CHANGES BUT( ITS FOR DEBUGING)
Shouldn't LEAK... :mwahaha:
 
Level 2
Joined
Jun 17, 2008
Messages
21
New Question:

How Can I change an active Ability to an passive Ability (like Mjollnir in DotA - The Chain Lightning effect)?
 
Level 13
Joined
Sep 29, 2008
Messages
671
Actually dota's mjolnir uses Orb of Lightning (new) ability

create an ability based on chain lightning and another one based on Orb of lightning (new)

then set the setting of Orb of lightning (new) to:

Set all chanes to hit to 100 "if you want a 100% hit to the units, in dota's case I think the chain lightning's percent is 20% then set it to 20"
Chance to hit heroes: 100
Chance to hit summons: 100
Chance to hit units: 100
Effect Ability: "the new Chain Lightning"
Enabled attack index: 1

This ability is also used for anub'seran's Geminate Attack by basing the effect ability to searing arrow with no bonus damage. you can add cooldown to the Effect Ability spell so that it will become a passive ability with cooldown. Just an addition. Be creative with the spell but disadvatage of this that it is orb effect...

btw don't forget to remove mana cost on the chain lightning so it doesn't uses mana when used.
 
Status
Not open for further replies.
Top