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

Editor - restricting abilities help

Status
Not open for further replies.
Level 1
Joined
Dec 3, 2015
Messages
5
Hello, I work on a custom map that relates to a Dota gaming style.
I can not figure out where in the editor, or even if I am able to "restrict hero abilities for each player." By restrict I mean... in the game a player can pick abilities from shops to make their own combos and unique strategies. For example: one shops sells all human hero abilities that a player may invest into and purchase. A player is able to occupy all available slots with different spells. Now here is my deeper point: As you know, there are several summon, aoe, and single shot spells considered a nuke if looking at all the hero abilities. Here I want to state my point... "having several summon or nuke spells eventually gets out of hand when upgrading it's value." What I want to restrict is for players not being able to mass spells of the same type. I would like to keep it standard when players pick their spells. (1 summon, 1 aoe, 1 single targer, 1 ulti, maybe 2 passives, and a supportive spell.) Ex: Summon bear, entangling roots, thorns aura, devotion aura, flame strike, star fall, holy light.) Instead of focusing on pure damage from related spells.

If there is somebody who can help me set this up I would appreciate so much. Sending regards.
 
Last edited:
You would have to create a system for doing this.
You would set classes of ability-types.
Then make it so a hero can have only 1 ability in each class.
I did this with item-types in this map. Maybe that will help.
You might use an event like 'A unit learns an ability.'
Then a condition, Ability = Passive
Then set a bool variable like, PassiveFull = true.
Now when a hero goes to buy an ability, have the trigger check the type.
If PassiveFull=true then don't give that unit another passive ability.

Notice in my demo here, how I set item types. If a unit picks up another item of the same type, it will drop the old one.

What you want is very similar. You want to set Ability types. Then make it so once a unit has one of a type, it cannot get another.
 

Attachments

  • Equipment System.w3x
    33.9 KB · Views: 41
Last edited:
Level 1
Joined
Dec 3, 2015
Messages
5
I will have to look through all this. If I will have any questions then I will ask you to explain things further for me.
 
Status
Not open for further replies.
Top