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

Need help for spawning creeps with Items

Status
Not open for further replies.
Level 2
Joined
Oct 6, 2007
Messages
8
Hi my problem is, I dont want to spawn only one kind of unit with one kind of item, I want to have 10 players with their own different creeps which have no weapons (I removed them) and each kind of creep has different kinds of items that they can buy, the items are all weapons who add to the attachment-points, the player have all their own area for their units.
Example:
player 1:
2 "footmans" with "claws of attack" and an other item
1 "knight" with only one item
player 2:
3 "archer" with a "orb of fire"
and an other unknow unit
player 3:
... etc.
The units must spawn with the right items and the right number.

PS: sry for my english
 
Level 24
Joined
May 9, 2007
Messages
3,563
That is fairly easy. Just make a brute force trigger that uses functions like these:

  • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
  • Hero - Create Tome of Experience and give it to (Last created unit)
There are neater ways to do it but I see no real reason to do them.
 
Level 2
Joined
Oct 6, 2007
Messages
8
it isnt what i mean :cry:
I wanted the player to choose the weapons of their units.
The units should spawn in the right number and with the right items.
i dont want to make a very long trigger so I search for an easy way to realize it
 
Level 3
Joined
May 27, 2007
Messages
67
So the units will come from an item usage?
Well then there need to be a hero carrying the item. Then when used it summons x creeps. Just make a diffrent item for each player which spawns diffrent creeps.
The give all creeps the "Inventory (Hero)" ability. The make a small shop or something which sellt the items you want to be able to buy, if you want specific items for each players, simply make 10 diffrent shops.
If this doesn't do for you, then im sorry, but you will have to use a long trigger...
 
Level 2
Joined
Oct 6, 2007
Messages
8
No
the player must buy the weapons for their creeps

creep --trained:fp: spawn for the the allianz
Hero get gold :fp: --creeps by items(weapon) :fp: creeps spawn for the allianz with weapons
 
Level 5
Joined
Mar 6, 2008
Messages
206
i think i understand what you mean.

sorta like pimp my peon.

but sorry i don't know how to do that
 
Status
Not open for further replies.
Top