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

Name and character help

Status
Not open for further replies.
Level 2
Joined
Sep 13, 2011
Messages
14
How do you make it so that a unit is only usable to a person with a specific name. Such as those with skin/models in Vampirism Ultra.
 
Level 2
Joined
Sep 13, 2011
Messages
14
ah. I wanna make multiple peasants but using models. Is there a tutorial for that or do you know how i could do that?
 
Level 2
Joined
Sep 13, 2011
Messages
14
I'm helping with a vamp map and i get to do all the models for the creators xD So downloaded some cool models off here i just wasn't sure how i'd do that for each person.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
Is that x thing a trigger?

Triggering player most likely. If its a chat command, triggering player. If map initialization (or time elapsed) your gonna want to loop through however many players there is and use Picked Player
 
Level 2
Joined
Sep 13, 2011
Messages
14
Alright so i have the units <peasant> made with a dif name and each their own model. Now i can't seem to figure out how i'm supposed to trigger it that when a player joins that game (such as myself) that the unit will spawn for that person (such as me). Like in a Vampirism Ultra game.
 
Level 2
Joined
Sep 13, 2011
Messages
14
Just so there is no confusion it's kinda like this. I made a copy of a peasant, used a model on him and changed his name. I want that unit to appear only for myself when i join the hosted game
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
Please do not triple (or double) post within 48hr of eachother. Use the edit button located in the bottomright of the post.

Anyway,

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer TempInt) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Name of (Player(TempInt))) Equal to DaBomb
            • Then - Actions
              • Unit - Create 1 Footman for (Player(TempInt)) at (Center of (Playable map area)) facing Default building facing degrees
            • Else - Actions
              • Unit - Create 1 Peasant for (Player(TempInt)) at (Center of (Playable map area)) facing Default building facing degrees
There would obviously be more to that trigger (Like checking if the picked player is playing or not), but im just showing how to do it.

Name of Player is a string comparison

Player() is Conversion - Convert Player Index to Player

anything else you need to know?
 
Level 2
Joined
Sep 13, 2011
Messages
14
Hmm.. I think that will help for what i wanted to do. I'll post if i need more help. Thank Illidans911!
 
Status
Not open for further replies.
Top