HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item - Changing Slots - Detectable?

08-02-2007, 03:09 PM#1
Fulla
Heyas,

Im working on a basic invetory system, that via next/previous page extends the item to a 10 slot inventory.
Currently everything works fine, theres just a minor hindrance.

If a guy changes items around, say swap item slot 1&4 with each other, thus far to my knowledge I cant detect it.
So when you go to next page and back, the items will revert to their original order.

So if their a method detecing it?
thx
08-02-2007, 03:14 PM#2
CommanderZ
You can save the momental order of items whebn you are switching the page (just before you switch it)
08-02-2007, 03:20 PM#3
Histenchist
Or you can detect it like this.

Trigger:
Collapse Events
Unit - A unit Is issued an order targeting an object
Conditions
Collapse Actions
Custom script: if (GetIssuedOrderId() == 852002) then
Game - Display to (All players) the text: You just changed so...
Custom script: endif

?
08-02-2007, 03:26 PM#4
CommanderZ
No, moving item inside inventory seems not to be an order.
08-02-2007, 03:27 PM#5
Histenchist
ohh yes it is.
08-02-2007, 03:42 PM#6
Fulla
Quote:
Originally Posted by CommanderZ
You can save the momental order of items whebn you are switching the page (just before you switch it)

Aha, problem solved
08-02-2007, 05:06 PM#7
CommanderZ
Trigger:
Untitled Trigger 001
Collapse Events
Unit - A unit Is issued an order targeting an object
Conditions
Collapse Actions
Game - Display to (All players) the text: (String((Issued order)))

This would have to detect it then. And it doesn't.
08-02-2007, 05:27 PM#8
Histenchist
No you cant detect that way -.-
This way works.
Trigger:
Custom SCript: call BJDebugMsg(I2S(GetIssuedOrderId()))

Since there's only a OrderID you can't detect it with your way.
You want a test map to?
08-02-2007, 05:41 PM#9
CommanderZ
Alright then. Do not trust GUI :P
08-02-2007, 08:13 PM#10
MaD[Lion]
well the best way is to add all the order events and then display some random game msg. and test if this game msg display when u move item. if it does then there is an order ID. If it doesnt then there are no orders to detect
08-02-2007, 09:21 PM#11
Fulla
I assume this is how the Illusion Item, order id was found out?
08-02-2007, 09:37 PM#12
Histenchist
Probably.
If you want to know more about this you can check this out http://www.wc3campaigns.net/showpost...20&postcount=9
Or you can ask Anitarf, he's good at this I think.
08-03-2007, 12:11 AM#13
Pyrogasm
Quote:
Originally Posted by Fulla
I assume this is how the Illusion Item, order id was found out?
Yes. You can find out many hidden order-ids this way.