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

Dual hero

Status
Not open for further replies.
Level 2
Joined
Jan 24, 2014
Messages
16
Hello, i need to make Dual Hero for my map, if you know X Hero Siege then you know what i mean, only one hero can be used at same time, they have shared invetories, they have same levels, know anybody how to make it?
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
First you let player choose 2 hero, I skip this part.

Now your player has first hero on F1(most top left), second hero on F2(top left under first hero).

Use 2 unit variables for heroes, (I am assuming their names are FirstHero and SecondHero) and a boolean variable with name FirstHeroSelected(set this to true at map initialization, or initial value true).

When a player selects his second hero, if FirstHeroSelected equal to true, give all items of first hero to second hero and set second hero's exp to the same amount of first hero.

The above thing also applies for other way.
 
Level 14
Joined
Jun 27, 2008
Messages
1,325
No.

Either create 2 heroes and always hide one (e.g. teleport it away and change its owner to neutral) or whenever the player swaps heroes remove the current one and create a new one.

Then, when swapping, use triggers to move the items from one hero to the other, adjust the exp, etc.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Instructions:
1. Double-click a unit to select it.
2. After you have selected 2 units, you will be able to test the Dual System.
3. Press F1 and F2 to switch between heroes.

NOTE:
I followed like the ones in X Hero Siege, where your reserved Hero is still seen in the map, but kept away in a single location, am I right ?
 

Attachments

  • X Hero Siege.w3x
    15.6 KB · Views: 57
Status
Not open for further replies.
Top