• 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.

[Spell] How to make the comment to summon unit ?

Status
Not open for further replies.
Maybe it needs to have required item and a chat message to activate the effect?
  • Temp Item
    • Events
      • Player - Player 1 (Red) types a chat message containing -comment as An exact match
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units owned by (Triggering player) matching ((((Matching unit) is alive) Equal to True) and (((((Matching unit) is A Hero) Equal to True) and (((Matching unit) has an item of type [item]) Equal to True)) and (((Matching unit) is selected by (Triggering Player) Equal to True) and do (Actions)
        • Loop - Actions
          • Do your actions
 
Level 2
Joined
Feb 11, 2013
Messages
22
I need a trigger. It like when i type $summon the monster i can summon monster for my player and it need the item request :D :vw_death:
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
You're not explaining it properly.

So you type "-summon" (the dash is recommended).
Then, if you have a certain item, some monster will summon?
If that is your request, then why not make it an active item (so you left-click the item and it will summon the monster)? Typing it only makes it more complicated.

Edit: please take your time writing the next message.
I don't want to spend a lot of time trying to understand you if you're not taking the time to explain what you want.
 
Level 2
Joined
Feb 11, 2013
Messages
22
it must cooldown @@ but i not thing it can. Because i summon not 1 monster it is a group ~~ so pls help me with trigger and teach me how to do that tks :goblin_boom:
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Have you thought about my idea yet?
Not using triggers. Just clicking the item will summon a group of creeps.
Heh, I'll just upload a test-map. I have a feeling this might take a while if I don't.

In the test-map: CLICK THE ITEM.
"-summon" doesn't work because I don't want it to (it's slower and more annoying for the player).
Unless you've got a good reason why "-summon" would be better in your map, let's keep it this way.
 

Attachments

  • Summon.w3x
    12.2 KB · Views: 46
Level 28
Joined
Jan 26, 2007
Messages
4,789
An item can have 4 different spells attached to it. That summon-spell can have 2 summons, so that's 8 total summons.
The one thing you need to keep in mind, is that only the last spell added to the item may have a cooldown (all the other cooldowns must be 0 sec).

So if the item has SummonA, SummonB, SummonC and SummonD.
Then SummonD can have a 20 sec cooldown, but A, B and C must have a 0 sec cooldown.
This will result in the item having a 20 sec cooldown, yet spawning all the 8 monster types.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
An item can have 4 different spells attached to it. That summon-spell can have 2 summons, so that's 8 total summons.
The one thing you need to keep in mind, is that only the last spell added to the item may have a cooldown (all the other cooldowns must be 0 sec).

So if the item has SummonA, SummonB, SummonC and SummonD.
Then SummonD can have a 20 sec cooldown, but A, B and C must have a 0 sec cooldown.
This will result in the item having a 20 sec cooldown, yet spawning all the 8 monster types.

It's also possible to put a spellbook in the item. That way the amount of spells is quite about unlimited.
 
Status
Not open for further replies.
Top