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

Few more Questions

Status
Not open for further replies.

kj_

kj_

Level 5
Joined
Aug 1, 2008
Messages
134
Well...
1. I'm still making a human vs vampire's map and I want vampires to achieve victory when the humans die , it's simple I know but thats where it's tricky.
If a human(Main unit) dies to a vampire it turns into a vampire and against his allies.

2.When a Human(Main unit) Dies I want it to turn against all his allies and turn allied with all the vampires but this is where I'm having trouble when he dies his buildings are still there and he is still allied with Humans.

3.Training spawn trigger , a wave spawns , if they die a 15sec delay then I want another to spawn , I don't want them to spawn constantly , I used the one that Squiggly gave me and it doesn't work sometimes , like they don't spawn... And some games they do

Help apprec !
:slp:
~kj
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
Err you may have to place a unit when your main unit dies. If I understood you right, you want vampires to win the whole game if the human dies but if a human unit dies to turn into a vampire. I assume you are the humans (e.g player 1).

  • Victory Vampires
    • Events
      • Player - Player 1 (Red)'s Food used becomes Less than or equal to 0.00
    • Conditions
    • Actions
      • Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
Game - Display to (All players) the text: and Wait XX seconds then Game - Victory Player 2 if you want more than just instant victory.


  • Turns Into A Vampire
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to YourMainUnit
    • Actions
      • Unit - Create 1 Vampire for Player 1 (Red) at (Position of (Dying unit)) facing Default building facing degrees
      • Unit - Remove (Dying unit) from the game
      • Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Unit - Change ownership of (Picked unit) to Player 2 (Blue) and Change color)
I don't know if you spawn them from a building or just from the nothing. Also depends if you want it from the beginning of the game or when. You can use
  • Spawn
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Wait X (if you want it to start some time in the game) seconds /use other events if you want in other ways to happen/
      • Unit - Create XX WhateverUnits for Player 2 (Blue) (assuming they are Vampires) at (WhereyouWantit) facing Default building facing degrees
      • Wait 15.00 seconds
      • Unit - Create XX WhateverUnits for Player 2 (Blue) (assuming they are Vampires) at (WhereyouWantit) facing Default building facing degrees
      • Trigger - Turn off (This trigger)
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
Hmm, I think you should use Player Groups to change their alliance.
Make 2 player groups in the variables. One called Humans and one called Vampires.
Now as a start you add all humans to playergroup Humans and all Vampires to playergroup Vampires. Make playergroup Humans treath playergroup Humans as allies (this will make all humans allied if they were not) and do the same for the vampires.
Now make playergroup humans treath playergroup vampires as a enemy and playergroup vampires treath humans as a enemy.

That was setting up the basics..
Now when a human dies you do this.
You remove him from playergroup humans and add him to playergroup vampires.
You make humans treath humans as allies and treath vampires as enemies.
You make vampires treath vampires as allies and treath humans as enemies.

Now you pick all units owned by player (ownder of dieing unit) and remove them from the game.
Now you can create a vampire for the human player that has died. It will be enemies with the humans and allied with the vampires.
That was your problem right?

I would create a trigger for you to show but I don't have a editor handy atm.
 

kj_

kj_

Level 5
Joined
Aug 1, 2008
Messages
134
"Bump"
I can't seem to get the building thing working... (Main unit dies and all buildings die and then turn into vamp) I've tried the Unit - Remove , then create, it doesn't work at all...
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
This should do it, I didn't include the whole change player group thing in the trigger because you understand it (well, u didn't say u didn't understand it).

  • Removing Buildings
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Paladin
    • Actions
      • -------- Just replace the Paladin unit with your main human unit. --------
      • Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Wait 20.00 seconds
      • -------- Wait time is just the time you need to wait before you get a Vampire. --------
      • Unit - Create 1 Dreadlord for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
This trigger is not leak free, cause I have no clue how to remove them sorry bout that. :sad:
 
Status
Not open for further replies.
Top