[General] my trigger doesn´t work

Status
Not open for further replies.
Level 4
Joined
Dec 24, 2014
Messages
37
  • Untitled Trigger 002
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Power
    • Actions
      • Neutral Building - Remove Tome of Power from Goblin Merchant 0070 <gen>
I want that Goblien Merchant to sell one tome of power, but just one.
when the player buys it, the tome of power dissappears from the shop so you can´t wait for have a new one in store.
But my triiger doesn´t work, i dunno why.
 
Level 24
Joined
Feb 27, 2019
Messages
833
The event Unit - A unit Uses an item only affects items in the inventory that are clicked on. Instead use the event:
  • Unit - Goblin Merchant 0007 <gen> Sells an item (from shop)
As said in the info text inside Configure Action for the action Neutral Building - Remove item from unit: "This only affects building if it has the 'Sell items' ability." In conjunction with that, the item has to be first added via triggers to then be able to be removed.

A similar effect can be achieved by in the Object Editor by changing Stock - Stock replenish interval to a ridiculous number, by holding shift and clicking the field, like 999999.
 
Level 4
Joined
Dec 24, 2014
Messages
37
The event Unit - A unit Uses an item only affects items in the inventory that are clicked on. Instead use the event:
  • Unit - Goblin Merchant 0007 <gen> Sells an item (from shop)
As said in the info text inside Configure Action for the action Neutral Building - Remove item from unit: "This only affects building if it has the 'Sell items' ability." In conjunction with that, the item has to be first added via triggers to then be able to be removed.

A similar effect can be achieved by in the Object Editor by changing Stock - Stock replenish interval to a ridiculous number, by holding shift and clicking the field, like 999999.
It´s done , man.
MANY THANKS.
 
Level 21
Joined
Mar 16, 2008
Messages
955
  • Actions
    • Neutral Building - Remove Tome of Power from Goblin Merchant 0070 <gen>
This function only works for marketplace type buildings.
Why don't you just set the item table for the goblin merchant in the Object Editor?
1681705065486.png

1681705100517.png
 
Status
Not open for further replies.
Top