HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Inventory Slot Problem-- Help Please

12-10-2003, 03:05 AM#1
Xinlitik
Hey,

I'm doing some triggers for leveling items, and it's supposed to remove the items from slots 1-5, then add some different items.

It's working fine and dandy except some WEIRD stuff that's going on with slot 1 and 6.

First of all, the slots seem to be organized like this:
6 1

2 3

4 5

Now, I put the items into 1, 3, 5, 4, and 2. It works fine. (this is something that happens right after the hero is selected.)

Then, when the items level they are supposed to all be removed.

Drop the item from slot x of hero.

So, I do 5 of those. One for each slot that I used.

Then, I add items to the same slots.

Give hero a xxx in slot x, for all 5.

Yet... mysteriously, the slot 5 (bottom right) original item STAYS there and the new one that's supposed to be created is left on the ground under the hero.

What the heck is going on here? Is there something sacred about slots 6 and 5? I added a wait after dropping the items to make sure it wasnt creating before it destroyed the item.. no luck.

Could anybody please share some knowledge... is this a WE bug or something?
12-10-2003, 08:45 AM#2
Gurrgel
Isn't there a replace item trigger, not really sure, but I think I have seen it. That could make it easier for you, lowering the amount of triggers needed.
12-10-2003, 10:59 PM#3
Xinlitik
That might work.. but my real problem is that there's something very odd about slots 1 and 6. Items wont remove from them via the drop trigger, apparently.
12-11-2003, 12:07 AM#4
Ballsacian1-EoA
I havn't worked with the world editor in about a month but i think that when you work with certain Item Triggers (The ones that come with Umswe) the slots start at 0 and not 1.
12-11-2003, 01:19 AM#5
Xinlitik
I just found the problem.. and it's a UMSWE problem as you said.



The slots:

1 2
3 4
5 6

The UMSWE slots:

6 1
2 3
4 5

I think the guy who made UMSWE made a little mistake on the scipt.. if you read this can you fix it please? hehe :foot:
12-11-2003, 02:51 PM#6
Vexorian
Quote:
Originally posted by Xinlitik
I just found the problem.. and it's a UMSWE problem as you said.



The slots:

1 2
3 4
5 6

The UMSWE slots:

6 1
2 3
4 5

I think the guy who made UMSWE made a little mistake on the scipt.. if you read this can you fix it please? hehe :foot:


There is no script involved in umswe, IT is all about you that don't consider that everything in programming starts with 0, however it shouldn't replace the blizzard.j version with the common.j one, Are you using the beta version?
12-11-2003, 10:16 PM#7
Xinlitik
If I'm not mistaken... UMSWE add in GUI trigger stuff is just a GUI form of a piece of JASS. and JASS is a script.. isnt it?

Im using UMSWE 4.. I dont think it's beta, it didnt say it, but maybe it is.

The reason I say this is because you cant even type a 0 into the field. It is minimum 1 maximum 6.

In programming, it may begin with 0s, but that's not possible when the slots are ordered 1-6.
12-12-2003, 01:59 PM#8
Vexorian
The action that you were using, the Create item at hero inventory slot, is an UMSWE add in one, the thing is that as you said
Quote:
: ... UMSWE add in GUI trigger stuff is just a GUI form of a piece of JASS. and JASS is a script.. isnt it?

the thing is that umswe Does not have its own JASS functions, it can only use functions that are either in common.j or blizzard.j , so there is not way to make that action understand inventory slots as 1 to 6 since it only understands from 0 to 5, so it wasn't SCIO's mistake it was in fact blizzard's fault for making all of those dumb functions that use inventory slots from 1 to 6.
12-12-2003, 10:50 PM#9
Xinlitik
Yuck, I get it now. You gotta hand it to blizzard though.. they made their own programming language hehe.

Quote:
Beta Coming As Soon as patch 1.13


Just noticed that...

you holding out because the patch is going to wreck the triggers or something, or because a feature you need is coming out?

I'm scared...
12-13-2003, 09:30 PM#10
Vexorian
In fact, I know that the patch will take a long to come, And I need to finnish a lot of features...
12-31-2003, 06:01 PM#11
SADISM
I was messing around with the inventory last night, and some of the functions think of the slots as 1 to 6, while others think of them as 0 to 5. Hope that helps.

Edit: Eh, I should have read an above post a little more carefully, he said what I said in less words :-\