HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Msg appears when item is obtained

04-07-2007, 06:43 AM#1
Hsinker
I attempted write a trigger that when a unit, not always a hero, obtains a tome, a msg will appear; obviously i failed.

Trigger:
Warning
Collapse Events
Unit - A unit Acquires an item
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse And - All (Conditions) are true
Collapse Conditions
(Item being manipulated) Equal to (Item carried by (Buying unit) of type Tome of Agility)
Collapse Then - Actions
Game - Display to (All players controlled by a ((Owner of (Hero manipulating item)) controller) player) for 5.00 seconds the text: Using tomes on Peng...
Collapse Else - Actions
Do nothing
04-07-2007, 06:58 AM#2
Chocobo
Trigger:
Warning
Collapse Events
Unit - A unit Acquires an item
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Item-type of (Item being manipulated)) Equal to Tome of Agility
Collapse Then - Actions
Game - Display to (All players controlled by a ((Owner of (Triggering unit)) controller) player) for 5.00 seconds the text: Using tomes on Peng...
Else - Actions

Use this instead.
04-07-2007, 08:08 AM#3
Hsinker
Thanks, works nicely.