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

Dont know wich player is.

Status
Not open for further replies.
Level 2
Joined
Jul 1, 2007
Messages
15
I want to make a game where you can get attacked by player and don't know who he is! Or better only some units of the player to be like this.

Well again to tell I want some of units of (example) player 1 red to be such units that others cant tell which units are.
And there maybe a place or a magic or another unit which can see which unit is.
 
Level 2
Joined
Jul 1, 2007
Messages
15
Well please try :) for me and... oh yeah rep+ :p cause if i manage to do this i will make real my idea for a really nice map :)
 
Level 8
Joined
Sep 15, 2006
Messages
426
Ok. To answer the part about making it so you don't know which player is attacking, you will need to change the game interface to not show the player name above the unit. The problem with this is that you won't be able to se ANY player names. To make it so that you can't tell what unit is attacking you is a bit easier.

I assume you are just trying to make it so that you can't see what the unit is from looking at it ingame or reading its name ingame. First, make your unit, and use the model for whatever you want the unidentified unit to look like. Then, make this trigger:

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to <whatever the name of the unit is>
    • Actions
      • Selection - Clear selection for (Triggering player)
If you want to make a spell that reveals the unit:

Take your base unit and copy it, so you have 2 identicle units. Then change the model of the copy to whatever you want it to look like in game when identified. Then make an ability that has no effect, and call it Reveal Unit or something. Then make this trigger:

  • Untitled Trigger 002
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Reveal Unit
    • Actions
      • Unit - Replace (Target unit of ability being cast) with a <revealed version of unit> using The old unit's relative life and mana
      • Set revealtarget = (Last replaced unit)
      • Wait <whatever reveal's durration is> seconds
      • Unit - Replace revealtarget with a <unidentified version of unit> using The old unit's relative life and mana
      • Set revealtarget = No unit
Hope this helps.
 
Level 4
Joined
Jun 1, 2007
Messages
92
I know a way you can do it, but it may be confusing to some who might be playing, but you can use triggers to change the name of all players to the same name so the only way you can identify someone is by looking at their color. And the specific units that you don't want to be revealed can be changed to black team color so no one would know who's unit it belongs to. But before you start all of this, you may want to create a string array (12) variable and fill it with each player's name and possibly create a multi/leaderboard representing the names/colors. (So people won't be confused who is what color.)

For a spell, you could make an ability which targets an enemy unit and it will show a text message to the casting unit that says "This Unit belongs to (Player's Name(The string variable which has the names.))
I'll add a trigger later if you need one.
 
Level 2
Joined
Jul 1, 2007
Messages
15
Thanks the second is easier i think but only one thing how to make black team color?
And the trigger i think i can handle it myself :)
 
Level 4
Joined
Jun 1, 2007
Messages
92
If its a specific unit only, then look in the object editor and change team color to neutral - Hostile/Passive.
 
Status
Not open for further replies.
Top