- Joined
- Jan 15, 2013
- Messages
- 251
how can I configure a item group?
that can be created to a hero when need
Please Help me
that can be created to a hero when need
Please Help me

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Item - Pick every item in Items <gen> and do (Actions)

Loop - Actions


Hero - Give (Picked item) to Paladin 0005 <gen>
Actions

-------- === Item Lists === --------

-------- List 0 --------

Set ItemList[0] = Claws of Attack +15

Set ItemList[1] = Crown of Kings +5

Set ItemList[2] = Kelen's Dagger of Escape

Set ItemList[3] = Mask of Death

Set ItemList[4] = Orb of Frost

Set ItemList[5] = Ring of Protection +5

-------- List 1 --------

Set ItemList[6] = Boots of Speed

Set ItemList[7] = Periapt of Vitality

Set ItemList[8] = Belt of Giant Strength +6

-------- List 2 --------

Set ItemList[12] = Inferno Stone

Set ItemList[13] = Demonic Figurine

-------- List 3 --------

Set ItemList[18] = Tome of Agility

Set ItemList[19] = Tome of Intelligence

Set ItemList[20] = Tome of Strength

Set ItemList[21] = Tome of Experience
Actions

-------- Which list to give? --------

Set TempInt1 = 0

-------- Give the list --------

For each (Integer A) from (TempInt1 x 6) to ((TempInt1 x 6) + 5), do (Actions)


Loop - Actions



Hero - Create ItemList[(Integer A)] and give it to Hero

Indeed, they are.in example of maker, the variables Item-Type and Integers are used only temporarily?
Wait, what system are you creating?i'm making one new system, then i need create several lists of Item-Type, for create this items when necessary.
Maker's system would be good if you have different heroes and each hero type has his own, personal, item-type list.I do not understand much about hashtables, more because you used unitHandle?
No... the hashtable is for specific units (well, that's 1 use of it).but the point is that I do not want specific lists for each type of unit, I just want a set of items.
to do this as,how i should save in hashtable?
Huh? That doesn't matter at all: you can use arrays for anything you like, it doesn't make it any harder.because use variables Item-Type with array would hard to me, because i'm use arrays for other thing.
Arrays are unique for each variable.i'm making one new version of MEQS (my Quest system)
each quest has one array number (1,2,3,4....)
then i not can use array, because he is used for identify quest
Set ItemType = Orb of Frost
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 1 of 1 in Hastable
Set Integer = (Load 1 of 1 from Hastable)
Custom script: set udg_ItemType = udg_Integer
Item - Create ItemType at (Center of Region 000 <gen>)

I want people have the minimum of work for create its quests.
-------- List 1 --------
Set TempInt1 = 1
Set ItemList[((6 x TempInt1) + 1)] = Claws of Attack +15
Set ItemList[((6 x TempInt1) + 2)] = Crown of Kings +5
Set ItemList[((6 x TempInt1) + 3)] = Kelen's Dagger of Escape
Set ItemList[((6 x TempInt1) + 4)] = Mask of Death
Set ItemList[((6 x TempInt1) + 5)] = Orb of Frost
Set ItemList[((6 x TempInt1) + 6)] = Ring of Protection +5
-------- List 2 --------
Set TempInt1 = 2
Set ItemList[((6 x TempInt1) + 1)] = Boots of Speed
Set ItemList[((6 x TempInt1) + 2)] = Periapt of Vitality
Set ItemList[((6 x TempInt1) + 3)] = Belt of Giant Strength +6
-------- List 1 --------
Set TempInt1 = 1
Set ItemType = Claws of Attack +15
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 1 of TempInt1 in Hastable
Set ItemType = Crown of Kings +5
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 2 of TempInt1 in Hastable
Set ItemType = Kelen's Dagger of Escape
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 3 of TempInt1 in Hastable
Set ItemType = Mask of Death
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 4 of TempInt1 in Hastable
Set ItemType = Orb of Frost
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 5 of TempInt1 in Hastable
Set ItemType = Ring of Protection +5
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 6 of TempInt1 in Hastable
-------- List 2 --------
Set TempInt1 = 2
Set ItemType = Boots of Speed
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 1 of TempInt1 in Hastable
Set ItemType = Periapt of Vitality
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 2 of TempInt1 in Hastable
Set ItemType = Belt of Giant Strength +6
Custom script: set udg_Integer = udg_ItemType
Hashtable - Save Integer as 3 of TempInt1 in Hastable
Nope, hashtables are pretty sweet for heavier systems.more there is a problem with the hashtables?
Untitled Trigger 001

Events


Map initialization

Conditions

Actions


Set ItemType[1] = Orb of Frost


Set ItemType[2] = Mask of Death


Set ItemType[3] = Kelen's Dagger of Escape


Set ItemType[4] = Heart of Aszune


Set ItemType[5] = Ring of Protection +5


Set ItemType[6] = Crown of Kings +5


For each (Integer A) from 1 to 6, do (Actions)



Loop - Actions




Custom script: set udg_Integer = udg_ItemType [bj_forLoopAIndex]




Hashtable - Save Integer as (Integer A) of QuestNumber in Hastable

