Hi guys,
I'm using this system Bag System and Advanced Item Handling System in my map to have multiple bags and inventory slots for my heroes, it's great and works like a charm but I ran into a problem. When switching from one bag to another, it seems that the system re-acquires all the items the bag contains, which isn't a problem for me in the first place, but when using a trigger with the event "A unit acquires an item", it can easily be abused.
Here is a trigger I have for one of my quests, the player needs to collect 5 venom samples from spiders:
Thanks for the help!
I'm using this system Bag System and Advanced Item Handling System in my map to have multiple bags and inventory slots for my heroes, it's great and works like a charm but I ran into a problem. When switching from one bag to another, it seems that the system re-acquires all the items the bag contains, which isn't a problem for me in the first place, but when using a trigger with the event "A unit acquires an item", it can easily be abused.
Here is a trigger I have for one of my quests, the player needs to collect 5 venom samples from spiders:
-
Dangerous Venom quest update
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Triggering unit) Equal to Player
-
(Item-type of (Item being manipulated)) Equal to Venom Sample
-
-
Actions
-
Set VariableSet VenomSampleCount = (VenomSampleCount + 1)
-
Game - Display to Player Group - Player 1 (Red) for 2.00 seconds the text: (|cffffcc00SIDE QUEST PROGRESS:|r + (Venom Sample collected: + ((String(VenomSampleCount)) + /5)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
VenomSampleCount Equal to 5
-
-
Then - Actions
-
Quest - Mark Quest_DangerousVenom as Completed
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
Do nothing
-
-
-
-
Thanks for the help!
Last edited: