HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Old Weapon System trigger doesn't work

12-22-2003, 03:51 PM#1
Redesh
This trigger that Lord Vexorian gave me doesn't work for me ever since 1.13

Events:
Unit- A unit aquires an item
Conditions:
Actions:
set life of (item being manipulated) to 1000000
for each integer A from 1 to 6 do actions:
--if conditions do actions
--- (life of (item in (triggering unit) slot (integer A)) equal to (life of (item beign manipulated)
-----Actions:
.........Drop (item in (triggering unit) slot (integer A)) from (triggering unit)

Any other ideas on how to do one?
12-22-2003, 04:00 PM#2
Vexorian
That is probably because setting an item's life to 1000000 no longer make it get its maximum life, Damn you blizzard, your only possible solution is to delete the first line and make every item invulnerable (damn you blizzard again)
12-22-2003, 04:03 PM#3
Ligature
Why can't you just do "Drop (item being manipulated) from (triggering unit)"?
12-22-2003, 11:49 PM#4
Zechnophobe
Bazaar. I have a similar system in my current map, and have no real problems with it after 1.13.

Of course, it may be easier to solve your problem if we know more than 'doesn't work'. What I'* guessing would happen with that, is that you go to pick the item up, and immediately put it back down? Is that right? I'* pretty sure that if you have an empty inventory list, and pick up an item, that it will be in slot 1 when you do that for loop. I threw in an item comparison (If 'acquiring item != item in slot (Int A)').
12-23-2003, 12:19 AM#5
ObsidianTitan
Well if your right this ruins all my stuff with weapon durability and repairing weapons.
12-23-2003, 01:22 AM#6
Redesh
When I pick up the item with or with the first line it makes it disapear.
12-23-2003, 06:45 AM#7
Zechnophobe
Quote:
Originally posted by Redesh
When I pick up the item with or with the first line it makes it disapear.


Sounds like I'm correct then, you are immediately dropping the item because it is immediately identifying itself as a duplicate of.. itself.

Try changing the If condition to include:
Item in slot (Int A) not equal to Item(Manipulating Item)

Events:
Unit- A unit aquires an item
Conditions:
Actions:
set life of (item being manipulated) to 1000000
for each integer A from 1 to 6 do actions:
--if conditions do actions
--- (life of (item in (triggering unit) slot (integer A)) equal to (life of (item beign manipulated)
---(item being manipulated not equal to item in (triggering unit) slot (integer A)
-----Actions:
.........Drop (item in (triggering unit) slot (integer A)) from (triggering unit)
12-23-2003, 01:43 PM#8
Vexorian
Redesh: Now that I think all about it , it looks like you have a corrupted patch or something (kinda like the way you had those hero inventory problems)