HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

HandleVar

02-05-2006, 11:11 AM#1
Thunder_Eye
Hi, can I store itemtypes on items on handlevars?
If so where can I find the code to add in the custom script?
Do I have to add it myself using the ones I got (integer,real,boolean) as base?
And if so can someone help me with it?
02-05-2006, 12:34 PM#2
Jacek
Try SetHandleHandle... ;/
02-05-2006, 12:59 PM#3
Thunder_Eye
And how would I do that?

(Im not very familiar with JASS)
02-05-2006, 01:50 PM#4
Jacek
All functions you can use in Handler Vars in Custom script are in Map script. You imported your handler vars here for sure, you can see Mapscript by clicking map name in trigger-tree in Trigger Editor. There are all functions.
02-05-2006, 02:02 PM#5
Thunder_Eye
¨Yes I know, but how do I make one "SetHandleItemType" or something.
02-05-2006, 02:10 PM#6
Vexorian
itemtype is item classification? Why exactly do you need to set a handle var for that? Seriously
02-05-2006, 02:14 PM#7
Thunder_Eye
Well Ive made a bag system that instead of saving the items in a global variable it saves them to the bag. I'm currently using integers to keep control of the items but I think it might be easier with using Itemtypes instead.
02-05-2006, 02:16 PM#8
Vexorian
itemtypes are item's classifications so why do you need to store them?
02-05-2006, 02:44 PM#9
Thunder_Eye
Well I either need to save the items or the type of them in the bag item so I can load them later.
02-05-2006, 02:46 PM#10
Vexorian
Well itemtype is item's classification the type of the item is typedid which is an integer like 'I001' so use SetHandleInt
02-05-2006, 02:55 PM#11
Thunder_Eye
well the items raw-code isnt in integers, the Crystalball for example is "crys"
02-05-2006, 03:07 PM#12
Vexorian
crys is an identifier name
"crys" is a string

'crys' is an integer
02-05-2006, 03:08 PM#13
Thunder_Eye
hmm ok I will test it out.