HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help create trigger item carry limit

05-17-2004, 08:11 PM#1
thedevil
I want each hero cant carry same type item but i cant find condition about it could anyone help me
05-17-2004, 08:53 PM#2
DaKaN
Basicly you would need to write a trigger that fires when a unit obtains an item. Then check the item being manipulated with all 6 hero slots and check to see if Hero has item of Type in the slot

you also need add a condition to exlucde the item he just picked up something along the lines of Item in slot 1 not = to Item Being Manipulated

There is a Item Type compasison
And you need to use a For Each Integer A loop from 1-6
05-17-2004, 09:25 PM#3
thedevil
Quote:
Originally Posted by DaKaN
Basicly you would need to write a trigger that fires when a unit obtains an item. Then check the item being manipulated with all 6 hero slots and check to see if Hero has item of Type in the slot

you also need add a condition to exlucde the item he just picked up something along the lines of Item in slot 1 not = to Item Being Manipulated

There is a Item Type compasison
And you need to use a For Each Integer A loop from 1-6
I see but i'm not good at use interger A could you give me trigger thread or tutorial map about this,please
05-17-2004, 09:35 PM#4
MysticGeneral
What is so hard about using Integer A? Here's a sample.

For Loop Integer A From 1 to 2 (DOES THE ACTIONS IN THE BRACKETS TWICE)
[Enable Visibility Modifier Across Entire Playable Map Area For Player(IntegerA)]

NOTE: The brackets aren't shown in the editor, but everything that's nested inside the loop will be repeated.
05-17-2004, 11:05 PM#5
ThyFlame
http://www.wc3campaigns.com/showthre...570#post519570


Specificly this
Attached Files
File type: txtinputwar3map.txt (5.3 KB)
05-18-2004, 08:51 PM#6
thedevil
Thanks,i will give you credit in my map.could you help me create and destroy time window ^_^