This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hi. I am trying to check out the invetory slots and do actions depending on the items in the slots. For example if I have a 3x2 Inventory:
A | B | C
D | E | F
And I want to check if there is a Item called "XX" in slots A, B and C. How should I do this?
Thanks,
- bablo
@bablo: Go
This should work:
(Item carried by (Triggering unit) in 1) == Value 2
What that should do is check the inventory slot and see if it's the item (Value 2). So for a 3x2 grid the slots should be: 1 | 2 | 3 4 | 5 | 6
And a 4x3 would be 1 | 2 | 3 | 4 5 | 6 | 7 | 8 etc
@wOlfLisK: Go
Thanks wOlfLisK, I'll try that out today and reply how it turned out.
Can't find any action that would work that way :/ What is it called?
EDIT: Oh, found out that it is a condition, not an action. Trying to create it now...
Bumping an old topic cause I have the same question,
(Item carried by (Triggering unit) in 2) == Sword seems to only refer to the "2nd item the unit picked up" and not the "2nd position slot"
so If the unit picks up a health kit 1st, and then a Sword 2nd, and then moves the sword around from B to E
the (Item carried by (Triggering unit) in 2) == Sword still holds true...doh so that trigger condition doesn't check if something is in "B"
but how do you check the item in the specific spot A, B, C, D, E, F, and not just the order in which you pick up items?
Hi. I am trying to check out the invetory slots and do actions depending on the items in the slots. For example if I have a 3x2 Inventory:
A | B | C
D | E | F
And I want to check if there is a Item called "XX" in slots A, B and C. How should I do this?
Thanks,
- bablo
@bablo: Go
This should work:
(Item carried by (Triggering unit) in 1) == Value 2
What that should do is check the inventory slot and see if it's the item (Value 2). So for a 3x2 grid the slots should be:
1 | 2 | 3
4 | 5 | 6
And a 4x3 would be
1 | 2 | 3 | 4
5 | 6 | 7 | 8
etc
@wOlfLisK: Go
Thanks wOlfLisK, I'll try that out today and reply how it turned out.
Can't find any action that would work that way :/ What is it called?
EDIT: Oh, found out that it is a condition, not an action. Trying to create it now...
Bumping an old topic cause I have the same question,
(Item carried by (Triggering unit) in 2) == Sword seems to only refer to the "2nd item the unit picked up" and not the "2nd position slot"
so If the unit picks up a health kit 1st, and then a Sword 2nd, and then moves the sword around from B to E
A | B | C
D | E | F
the (Item carried by (Triggering unit) in 2) == Sword still holds true...doh so that trigger condition doesn't check if something is in "B"
but how do you check the item in the specific spot A, B, C, D, E, F, and not just the order in which you pick up items?