• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

select a unit button, what would be equivalent for orpg?

Status
Not open for further replies.
Level 1
Joined
Aug 7, 2009
Messages
5
For single player rpg it is very easy to set the hero in trigger by simply choosing [select a unit] button and selecting a unit for example blademaster001<gen>

What is the equivalent for that in orpgs or multiplayer rpg? Since I cannot select a hero like mentioned above as it hasn't even spawned in the beginning of the map or 2 people may choose the same hero.

I made a custom skill system that works wonderfully in single player but i have no idea how to get it work for a multiplayer version of the map due to having lack of knowledge.

Please enlighten, and guide me to the right way. Thank you
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Create variables, of type unit. Name them something like P1Hero, P2Hero. Or you can create an array.

Then when a player selects his unit, just set the selected unit to the corresponding variable.

  • Actions
    • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing (270.0) degrees
    • Set Hero1 = (Last created unit)
If you're using an array, set HeroArray[1] = hero of player 1 for example.

Is this what you're asking?
 
Level 1
Joined
Aug 7, 2009
Messages
5
I am SO grateful for your help. You set me in the right direction. It worked like a charm. :thumbs_up:
I just got it to work and I immediately came back here to post to let you know that your advice really helped me. Thanks so much. It's exactly what I was looking for and its working perfectly.:cute:
Repped you and I feel a bit embarrassed that I have such little reps to give to you, you deserve way more.
 
Status
Not open for further replies.
Top