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

Arena System - sending fallen heroes to prison & exp-gain

Status
Not open for further replies.
Level 8
Joined
Sep 9, 2007
Messages
114
Is there anyway throught triggers to make it so when, you kill say a bandit, *i was planning of making it like an arena system, when u slay an opponent on the battlefield u have a chance of sending him to your prison where from there u can pit him against your own fighters so they will gain XP* problem is i want it so when i kill one unit. i'm only able to buy that single unit one time until i get a kill or 2
 
Level 8
Joined
Jan 23, 2008
Messages
334
Well you could just add some interger and unit varibles, but is there anyway that you could add more info to the last sentense.

Unless this what you mean,

bandit owned by player 2 dies
hero owned by player 1 kills 2 units
player 1 can train banits

or

bandit owned by player 2 dies
player 2 cannot train bandits anymore
hero owned by player 1 kills 2 units
player 2 can train bandits
 
Level 8
Joined
Sep 9, 2007
Messages
114
Footman Owned by player 2 dies
Player 1; (orc) can now use said footman to throw into an arena, kind of like a gladiator to pit your heroes against so they level up faster without having to go out into the battlefield where they have a higher chance to die
I'd use the Mercenary camp

Player 2 unit dies
Player one can spawn that 1 said unit so he can pit a hero one on one against it so the hero gains xp

I just wanna know if i could make a trigger like this

Event: Unit dies
Condition: Dying unit is killed by a unit controlled by player 1
Action: Add 1 to stock = (unit killed) in Mercenary Camp

Hopefully that clears it up, but its really hard to describe
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
i don't know if it works with the stock, but if you just make the unit available for building it should work
Event: Unit dies
Condition: Dying unit is killed by a unit controlled by player 1
Action: make killed unit unit-type available for player 1
set <integer variable> to <integer variable>+1
limit training of <killed unit unit-type> to <integer variable>

integer variable is just a number and has to be 0 in the beginning, problem is you would have to make a trigger for every unit-type you have and you need a second trigger to decrease the variable when you have killed your unit
 
Status
Not open for further replies.
Top