• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Need Help with Survival start trigger(choose evil one and add ability)

Status
Not open for further replies.
Level 5
Joined
Aug 23, 2008
Messages
116
Hi!

I tried to make a trigger for the described problem, but it dont work.

The trigger should choose a random player.
Then a special unit of this player
This special unit should get a specific ability

I tried to work with variables, but now I stop trying, because its annoying :-P

Maybe one of you know the perfect trigger that I need?

MfG

Cyrax
 
Thx it works :-)
But how can I hide the units owner so that the other players dont know that his owner is (e.g) their 'good friend blue'?
 
hm no - I mean he should run around and kill people. They should see him , but dont recognize who is the owner of the unit.
 
create a computer controlled player (e.g. player 12: the murderers) and give the control of the randomly chosen players unit to player 12, then set player 12 to share control of his units with player X. This might still be discovered, but its the best thing I can think of.
 
You mean that you do not want them to see the owner of the unit is suggest you to make an computer player which has no name use alt + 0160 to do that if it doesn't allow empty space and then use the folowing actions:
  • Player Group - Pick 1 random player from (all players) and do actions
    • Actions set Killer = picked player
    • Custom Script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit owned by Killer of type *yourspecialunit* and do:
      • Unit - Add *your* ability to picked unit
  • Player set name of "no name to something"
  • Player set name of Killer to " "
  • Player Make All Players treat Killer as an ally with shared vision
Or you could make the owner of *yourspecialunit* has the same name as some random player and make it periodic like this:
  • Every 30 second of game time
  • Action Player set name of Killer to Player name(1 Random player from all players matching matching player not equal Killer
 
Erase the entire message in Game Interface.
 
Last edited by a moderator:
hmm, first off you shouldn't make them treat the killer as an ally with shared vision, they would see him transform. Just make it "ally"

i have a map of that sort, my trigger for picking a player to be killer is:
  • Events
    • Time - Elapsed game time is 5.00 seconds
  • Conditions
  • Actions
    • Set killer = (Random integer number between 1 and 10)
    • If (((Player(killer)) slot status) Equal to Is playing) then do (Trigger - Run create death <gen> (checking conditions)) else do (Trigger - Run (This trigger) (checking conditions))
you can change the "Integer between" to whatever you want, mine is 1-10 because there are 10 players. not including the computer, which is player 12 anyway.

Then I made an identical human with the same name, except he has the Killer Form ability. I did this because when I tried the Add Ability method, once you transform back to Human as Killer, you don't have the ability anymore. Unless there's a way to change this.

What I did though, was this:

  • create death
    • Events
    • Conditions
      • ((Player(killer)) slot status) Equal to Is playing
    • Actions
      • Unit - Remove (Random unit from (Units owned by (Player(killer)) of type (real Human)) from the game
      • Unit - Create 1 (fake human) for (Player(killer)) at (Random point in spawn humans <gen>) facing Default building facing degrees
      • Player - Make (Player(killer)) treat Player 12 (Brown) as an Ally with shared vision and full shared units
      • Player - Make Player 12 (Brown) treat (Player(killer)) as an Ally with shared vision and full shared units
      • Game - Display to (Player group((Player(killer)))) the text: You are the killer.
 
Status
Not open for further replies.
Back
Top