HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with two triggers!

08-15-2004, 06:30 PM#1
andrewandrew
some please help me with some triggers, very noob at making them so please make it simple if you can, first is that im trying to make a footmen wars type map and that i need to know how to do random hero, another is when a player leaves/defeated i want the string (player is defeated) for the player name is colour of what team slot hes in (e.g Joe- team 6 (in orange) has left the game.
08-15-2004, 06:35 PM#2
Hound Archon
ok i think i can help you wait a min ^_^
08-15-2004, 06:38 PM#3
Hound Archon
PLayer Leaves
Events
Player - Player 1 (Red) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + Has left the game!)

but the other one
08-15-2004, 06:46 PM#4
Hound Archon
Random Hero
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Sold unit)) Equal to Random Hero
Actions
Unit - Create 1 RANDOM_HERO_ARRAY[(Random integer number between 1 and NUM_HEROES)] for (Owner of (Sold unit)) at ((Owner of (Sold unit)) start location) facing Default building facing (270.0) degrees
Hero - Create Scroll of Town portal and give it to (Last created unit)
Hero - Create Jaood's Amulet of Power and give it to (Last created unit)
Unit - Remove (Sold unit) from the game


you will need this too


Setup Game
Events
Map initialization
Conditions
Actions
-------- Melee Init --------
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
-------- Set up Random Hero Array --------
Set RANDOM_HERO_ARRAY[1] = Paladin
Set RANDOM_HERO_ARRAY[2] = Archmage
Set RANDOM_HERO_ARRAY[3] = Mountain King
Set RANDOM_HERO_ARRAY[4] = Blood Mage
Set RANDOM_HERO_ARRAY[5] = Blademaster
Set RANDOM_HERO_ARRAY[6] = Tauren Chieftan
Set RANDOM_HERO_ARRAY[7] = Shadow Hunter
Set RANDOM_HERO_ARRAY[8] = Far Seer
Set RANDOM_HERO_ARRAY[9] = Death Knight
Set RANDOM_HERO_ARRAY[10] = Lich
Set RANDOM_HERO_ARRAY[11] = Dread Lord
Set RANDOM_HERO_ARRAY[12] = Crypt Lord
Set RANDOM_HERO_ARRAY[13] = Keeper of the Grove
Set RANDOM_HERO_ARRAY[14] = Priestess of the Moon
Set RANDOM_HERO_ARRAY[15] = Demon Hunter
Set RANDOM_HERO_ARRAY[16] = Warden
Set RANDOM_HERO_ARRAY[17] = Naga Sea Witch
Set RANDOM_HERO_ARRAY[18] = Beastmaster
Set RANDOM_HERO_ARRAY[19] = Dark Ranger
Set RANDOM_HERO_ARRAY[20] = ( just assign ur own here)
Set NUM_HEROES = 20


i just copied it from a footman i didnt have time to do it myslef
08-15-2004, 06:47 PM#5
andrewandrew
damn im gonna need to be more specific, i said their name goes according to their team colour (red,blue,teal, etc.) and i still need help with the random hero choice thingy (doesnt anyone play footmen frenzy?)
08-15-2004, 06:47 PM#6
andrewandrew
ooo thank you for the random hero but the colour thing once more!
08-15-2004, 06:48 PM#7
Hound Archon
what do you mean??
08-15-2004, 06:50 PM#8
andrewandrew
btw could you send me that file cause i dont want to redo everything :S
08-15-2004, 06:52 PM#9
Hound Archon
the footman ?????+
08-15-2004, 06:56 PM#10
andrewandrew
Quote:
Originally Posted by >†ReapeR†<
the footman ?????+

yes the footmen map, thanks!
08-15-2004, 06:56 PM#11
Hound Archon
ok of course

OFF TOPIC: Rep?
08-15-2004, 07:00 PM#12
andrewandrew
i need the map cause i dont even know what variable randomheroarray is suppose to even be, plus im too lazy to remake this long trigger so once again please the unprotected footmen please!
08-15-2004, 07:03 PM#13
Hound Archon
easy!!!!!:\ o_O
08-16-2004, 12:39 AM#14
TheBlackMage01
You do realize he just asked for terrain for his footman wars as well..... its kind of pathetic just asking 2 people for terrain and triggers then putting it all together.
08-16-2004, 01:20 AM#15
andrewandrew
Quote:
Originally Posted by TheBlackMage01
You do realize he just asked for terrain for his footman wars as well..... its kind of pathetic just asking 2 people for terrain and triggers then putting it all together.

wth are you talking about? i wanted the map for the trigger and the terrain i would never use because well look at the map and you will see (unbalanced)