HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

health bonus trigger

02-20-2005, 08:43 AM#1
grd
is there any trigger to add health to a unit..
units health value 100...... event --> condition --> matching units health value 200
02-20-2005, 09:18 AM#2
grd
while I have a thread open how do you create an item in a units inventory..

player types -kvah --> player has greater than or equal to 1000 gold --> Add -1000 gold to players current gold --> right now I have create kvah in position of unit
02-20-2005, 09:21 AM#3
Guest
1) Unit - set health of (unit) equal to (current health of (unit)) + (100)

2)
E
A player types -kvah
C
Gold of (triggering player) superior to 999
A
Set gold of (triggering player) to (current gold of (triggering player)) - (1000)
Create kvah at position of unit

3) use edit to your posts, don't double post
02-20-2005, 09:39 AM#4
grd
thanks for your help.. but read the first line of my second post..
02-20-2005, 10:03 AM#5
Kamux
just create the item somewhere on the map, and then give it to your unit.
02-20-2005, 12:49 PM#6
Guest
Yes its what Kamux says

events:
Create item at position of (unit that needs item)
Give (last created item) to (unit that needs item)
02-20-2005, 06:47 PM#7
shadow1500
u can just use Hero - Create item for hero.
02-21-2005, 08:48 AM#8
grd
BadFurDay you are pulling triggers out of your ass.. try and test shit b4 you post it..
02-21-2005, 09:59 AM#9
Guest
Actually I tried it a lot of times before, and this trigger works.
Now you pull bad rep out of your ass. Help yourself.
02-21-2005, 11:47 AM#10
Anitarf
Quote:
Originally Posted by shadow1500
u can just use Hero - Create item for hero.
This is the better solution.
02-21-2005, 11:52 AM#11
Guest
Yes, but grd said create an item for a unit, not for a hero, and this triggers only works for heroes.
02-21-2005, 12:10 PM#12
Anitarf
Nope, this trigger works for units just as well (it only says "hero" because back in RoC, only heroes could carry items), and if they have a full inventory or no inventory at all, the item just gets dropped to the ground at their feet.