| 10-11-2007, 12:16 AM | #1 |
This is just an example trigger of how i'd like it to be: Trigger: Trigger: Is it possible with GUI? Sometimes it's feels so suffocating not to know JASS |
| 10-11-2007, 12:54 AM | #2 |
If you want JASS, look in the tutorial sections. Tons of good stuff there, like this. About your trigger, try this: Trigger: EDIT: If you specifically want the item to be in Slot 3, and for some reason this doesn't give you the item in Slot 3, then I don't think there's a way unless you fill up the first 2 slots with dummy items, give the Slot 3 item, then remove the dummy items. |
| 10-11-2007, 01:04 AM | #3 |
The look of that trigger, makes me think it'll make a repeating cycle and crash the game, but i'll try. And i've thought of the dummy thing, was wondering if there was a more concrete way to do it. Thanks for your help. |
| 10-11-2007, 05:24 AM | #4 |
Trigger: That should work. ...Tested it, doesn't work. I have no idea why not, but it just reminded me that I really need to learn jass, when simple gui triggers like this don't work. I'm not sure how to fix it, but the problem may be in "Equal to No Item", because when viewed in jass it shows "null" and I think that's more of a "doesn't exist" rather than an "empty". Wow, this doesn't work either: Trigger: Well.. I tried, sorry it didn't end up helping, item triggers in gui are stupid. |
| 10-11-2007, 03:48 PM | #5 |
Trigger: Hmm... got it working of the first try. I'm not sure why the example above didn't work. Note that the third condition mentioned above that makes sure an item is not in slot 3 before performing the item movement order is unnecessary, and it just won't move the item at all if there is an item there. |
| 10-11-2007, 07:51 PM | #6 |
Yes, but that's because I think the OP wants the item in slot 3. |
| 10-11-2007, 08:18 PM | #7 | |
Quote:
? |
| 10-11-2007, 09:17 PM | #8 |
I'm sorry, I think I confused everyone by referring to chop tomato's example as "the above example" in my post. I wasn't referring to my own trigger. So, in short, the trigger I posted up above works flawlessly for me, even without using the condition that checks if an item is already in the 3rd slot before moving the picked up item there. |
| 10-12-2007, 11:42 AM | #9 |
Well, I noticed there's 2 differences in our triggers Viper, I used "Item carried by hero in slot equal to item" while you used "Item equal to item carried by hero in slot", and I used "Hero manipulating item" while you used "Triggering unit", so I assume one of those is the problem, as im pretty sure I tested my trigger without the "Item equal to No Item" part (thats how i eventually managed to get down to the last trigger in my post, although I don't know why it doesn't work, going to try again now). Ok, I tried the exact same trigger you used and it didn't work. Are you using any WE mods? Oooh, that reminds me, I'm using a one of those .txt files so I can have steeper cliffs, I'll go get rid of it and see if it works. I checked the file, it didn't have anything to do with triggers or items in there but I got rid of it anyway, made a new map, checked the mod wasn't doing anything anymore, but the trigger still isn't working. Looks like it's learn jass or die for me... |
| 10-13-2007, 08:32 PM | #11 |
Try WE Unlimited. It extends the GUI database further than the regular WE. If the examples are working above, change "hero manipulating item" to "triggering unit". |
| 10-13-2007, 09:05 PM | #12 |
Edit: Ehh was confused, never mind =P. But, I'm pretty sure his problem is solved. |
| 10-14-2007, 09:25 PM | #13 |
I went by Anopob's suggestion and used dummy items filling up the slots (if they were empty) it needed to skip. Thanks for all the help. |
