HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Problem with item trigger...

01-16-2004, 03:31 PM#1
ABM
First of all thanks to everyone who will care to look at this and try to help me...

I have an unit (wich is a building) with item slot called mixer hole.
i would like that when i put item inside, that item mix together make a new item.
for example i put one item called red ink and 1 item called blue ink and when i put both inside the mixer hole, both item disapear and one item purple ink is created at position of mixer.

how can i trigger this? how can i recognise wich item are inside the 'mixer hole' to make different combo (like red and white= pink . blue and yellow= green etc...)

thanks if u can help (also is it possible to raise a non-hero unit in an autel, i would like an unit to not gain Xp but to be still able to raise when dead in a shrine)

please Heeeeelp........
01-16-2004, 03:43 PM#2
Vexorian
Events:
A Unit Acquires an item

Conditions:
Unit Type of triggering unit equal to (Mixer building)
(Triggering unit) has an item of type (Blue Ink) equal to true
(Triggering unit) has an item of type (Red Ink) equal to true

Actions:
Item - Remove (Item carried by (Triggering unit) of type (Red Ink)
Item - Remove (Item carried by (Triggering unit) of type (blue Ink)
wait 0 seconds
Create a Violet Ink for Triggering Unit
01-16-2004, 04:17 PM#3
ABM
Thanks again Lord Vexorian you are savior, thanks for helping so much on this forum... simple and easy thanks again.:foot:

Sorry everyone but the Lord Vexorian method is just great....
but it work best with combo of different item: A+B+C or B+C
how should i change it to make it work also with two same item such as: A+A or B+B+C or even A+A+B+B , C+C+C.

please if someone know how to detect two or three item of same type, thank vexorian for your so quick answer....
please do you know how to do it?emote_sweat
01-18-2004, 07:47 PM#4
Vexorian
Quote:
Originally posted by ABM
Thanks again Vexorian you are savior, thanks for helping so much on this forum... simple and easy thanks again.:foot:

Sorry everyone but the Vexorian method is just great....
but it work best with combo of different item: A+B+C or B+C
how should i change it to make it work also with two same item such as: A+A or B+B+C or even A+A+B+B , C+C+C.

please if someone know how to detect two or three item of same type, thank vexorian for your so quick answer....
please do you know how to do it?emote_sweat


that's different, you'll need a loop that goes from 1 to 6 and compares the item types, like (for A+A:

Events:
A Unit Acquires an item

Conditions:
Unit Type of triggering unit equal to (Mixer building)
Item type of (Item being manipulated) equal to A

Actions:
for each integer a from 1 to 6 do actions:
- If (conditions) do (actions)
-Item type comparision Item type of (Item carried by (triggering unit) in slot (integer A) equal to (A)
- (Item carried by (triggering unit) in slot (integer A) not equal to (Item being manipulated)
-- Then (actions)
Item - Remove (Item carried by (Triggering unit) of type (A)
Item - Remove (Item carried by (Triggering unit) of type (A)
wait 0 seconds
Create a Double A for Triggering Unit
(skip remaining actions)