HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item Trigger Help

11-19-2003, 03:38 AM#1
zwing
Is there a way where I could have the item to be more specific? So I could have more triggers with the same events, but for different items.
Example: The item must be "Claws of Attacks +9"
What should I add for the condition? Anybody?

OK, heres one of my triggers
Events - A unit acquires an item
Conditions -
Actions - Add 3 food cap

Events - A unit loses an item
Conditions -
Actions - Add -3 food cap
11-19-2003, 04:48 AM#2
FerretDruid
In Object Editor, change the life of the item to whatever you want (all items are 75 life by default), and refer to the item's life in the condition. So make it 50 life for that item and condition (Real): Life of item being manipulated equal to 50

Just make sure all items you use in your map have a different amount of life, and you can use that for all kinds of triggers as a condition.
11-19-2003, 02:19 PM#3
Vexorian
Quote:
Originally posted by FerretDruid
In Object Editor, change the life of the item to whatever you want (all items are 75 life by default), and refer to the item's life in the condition. So make it 50 life for that item and condition (Real): Life of item being manipulated equal to 50

Just make sure all items you use in your map have a different amount of life, and you can use that for all kinds of triggers as a condition.


just add 1000000 life to the item before checking its life ( that will make the item recover its maximum life) just to avoid class shifting when somebody attacks an item
11-19-2003, 05:42 PM#4
Ligature
Or, if you don't have that many kinds of items in your map (fewer than 10) you could always use the item's Item Level instead of its Life.
11-19-2003, 06:34 PM#5
Shark
have u played warchasers ? well, when u pick up certain items, it gives u gold and takes it away from you...so, look it up...
i think it something like "item being manipulated equals to <item>", but i'm not sure...check it out :)
11-19-2003, 06:36 PM#6
Ekkruker
Quote:
Originally posted by Shark
have u played warchasers ? well, when u pick up certain items, it gives u gold and takes it away from you...so, look it up...
i think it something like "item being manipulated equals to <item>", but i'm not sure...check it out :)


Yeah thats what it is, what are you guys talking about item life?
11-19-2003, 06:47 PM#7
Shark
well, why do it simple when we can do it complicated :)))
i only read the first post, and now i read it all :)
why using item life when u can do everything with triggers and dummy units...i would have never remembered that item life thingy :)))
live 'n' learn :)
11-19-2003, 10:06 PM#8
zwing
Thnx, wow you guys answer fast heh =D