I have recently started to map make again, but I'm having a little trouble with this trigger.
I used an array of variables to identify the player color, from player red 1, to player yellow 5.
-
Give Item 1
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Unit-type of (Hero manipulating item)) Equal to Rich Girl
-
Actions
- Set Players_LoseItem_Bianca[1] = Player 1 (Red)
- Set Players_LoseItem_Bianca[2] = Player 2 (Blue)
- Set Players_LoseItem_Bianca[3] = Player 3 (Teal)
- Set Players_LoseItem_Bianca[4] = Player 4 (Purple)
- Set Players_LoseItem_Bianca[5] = Player 5 (Yellow)
- Set GiveItem1_Bianca[1] = This doesn't amuse me.
- Set GiveItem1_Bianca[2] = Do you really think I would be interested in that?
- Set GiveItem1_Bianca[3] = My daddy can buy me something more valuable than that.
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Broadsword
- (Item-type of (Item being manipulated)) Equal to Rusty Axe
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Item - Remove (Item being manipulated)
- Floating Text - Create floating text that reads GiveItem1_Bianca[(Random integer number between 1 and 3)] at (Position of (Hero manipulating item)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Players_LoseItem_Bianca[1]
- Player_Gift_Bianca[1] Equal to 0
-
Then - Actions
- Hero - Create Heart Piece Bianca and give it to Heart Level Meter 0166 <gen>
- Set Player_Gift_Bianca[1] = 1
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Players_LoseItem_Bianca[2]
- Player_Gift_Bianca[2] Equal to 0
-
Then - Actions
- Hero - Create Heart Piece Bianca and give it to Paladin 0168 <gen>
- Set Player_Gift_Bianca[2] = 1
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Else - Actions
-
If - Conditions
-
Events
-
Player Gives Item
-
Events
- Unit - A unit Loses an item
- Conditions
-
Actions
- Set Players_LoseItem_Bianca[1] = (Owner of (Triggering unit))
- Set Players_LoseItem_Bianca[2] = (Owner of (Triggering unit))
- Set Players_LoseItem_Bianca[3] = (Owner of (Triggering unit))
- Set Players_LoseItem_Bianca[4] = (Owner of (Triggering unit))
- Set Players_LoseItem_Bianca[5] = (Owner of (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Last dropped item) Equal to (Item carried by (Triggering unit) of type Broadsword)
- (Last dropped item) Equal to (Item carried by (Triggering unit) of type Rusty Axe)
-
Conditions
-
Or - Any (Conditions) are true
- Then - Actions
- Else - Actions
-
If - Conditions
-
Events
I used an array of variables to identify the player color, from player red 1, to player yellow 5.