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.
 
ah. I wanna make multiple peasants but using models. Is there a tutorial for that or do you know how i could do that?
 
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.
 
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
 
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.
 
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
 
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?
 
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.
Back
Top