- Joined
- Apr 8, 2016
- Messages
- 58
hey guys, i need a help to check this trigger, cuz it make bug in game..
case:
i make a rpg map with a lot of combination item, and i decided using combination system only with "-create" chat message, but i had bug with this system, like this:
when many players type -create and wanted to combine an item, its make a lag in game, and sometimes, a random player will stuck (can't move, can't cast skill untill he click another creep/hero)
and do you think this trigger is already correct??
sorry for my bad english and thanks!!
Init
Combine trigger
case:
i make a rpg map with a lot of combination item, and i decided using combination system only with "-create" chat message, but i had bug with this system, like this:
when many players type -create and wanted to combine an item, its make a lag in game, and sometimes, a random player will stuck (can't move, can't cast skill untill he click another creep/hero)
and do you think this trigger is already correct??
sorry for my bad english and thanks!!
Init
-
Melee Initialization
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
-------- Item Combination --------
-
-------- Item List --------
-
Set IC_Item_Type[1] = Helm Kayu
-
Set IC_Item_Type[2] = Baju Kayu
-
Set IC_Item_Type[3] = Kulit Kobold
-
Set IC_Item_Type[4] = Helm Kobold
-
Set IC_Item_Type[5] = Baju Kobold
-
Set IC_Item_Type[6] = Cincin Perunggu
-
Set IC_Item_Type[7] = Batu Tambang
-
Set IC_Item_Type[8] = Cincin Kobold
-
Set IC_Item_Type[9] = Pedang Kayu
-
Set IC_Item_Type[10] = Potongan Besi
-
Set IC_Item_Type[11] = Pedang Kobold
-
Set IC_Item_Type[12] = Kulit Srigala
-
Set IC_Item_Type[13] = Helm Srigala
-
Set IC_Item_Type[14] = Baju Srigala
-
Set IC_Item_Type[15] = Cakar Srigala
-
Set IC_Item_Type[16] = Cincin Srigala
-
Set IC_Item_Type[17] = Taring Srigala
-
Set IC_Item_Type[18] = Pedang Srigala
-
Set IC_Item_Type[19] = Kulit Keras
-
Set IC_Item_Type[20] = Helm Raja Kobold
-
Set IC_Item_Type[21] = Baju Raja Kobold
-
Set IC_Item_Type[22] = Batu Permata
-
Set IC_Item_Type[23] = Cincin Raja Kobold
-
Set IC_Item_Type[24] = Pangkur
-
Set IC_Item_Type[25] = Pedang Raja Kobold
-
Set IC_Item_Type[26] = Bulu Hangat
-
Set IC_Item_Type[27] = Helm Raja Srigala
-
Set IC_Item_Type[28] = Baju Raja Srigala
-
Set IC_Item_Type[29] = Cakar Besar
-
Set IC_Item_Type[30] = Cincin Raja Srigala
-
Set IC_Item_Type[31] = Taring Besar
-
Set IC_Item_Type[32] = Pedang Raja Srigala
-
Set IC_Item_Type[33] = Pelindung Hutan
-
Set IC_Item_Type[34] = Helm Penguasa Hutan
-
Set IC_Item_Type[35] = Baju Penguasa Hutan
-
Set IC_Item_Type[36] = Jiwa Hutan
-
Set IC_Item_Type[37] = Cincin Penguasa Hutan
-
Set IC_Item_Type[38] = Kekuatan Hutan
-
Set IC_Item_Type[39] = Pedang Penguasa Hutan
-
Set IC_Item_Type[40] = Sisik
-
Set IC_Item_Type[41] = Helm Katak
-
Set IC_Item_Type[42] = Baju Katak
-
Set IC_Item_Type[43] = Mutiara
-
Set IC_Item_Type[44] = Cincin Katak
-
Set IC_Item_Type[45] = Perimbas
-
Set IC_Item_Type[46] = Pedang Katak
-
Set IC_Item_Type[47] = Sisik Hitam
-
Set IC_Item_Type[48] = Helm Raja Katak
-
Set IC_Item_Type[49] = Baju Raja Katak
-
Set IC_Item_Type[50] = Mutiara Hitam
-
Set IC_Item_Type[51] = Cincin Raja Katak
-
Set IC_Item_Type[52] = Perimbas Hitam
-
Set IC_Item_Type[53] = Pedang Raja Katak
-
Set IC_Item_Type[54] = Kain Usang
-
Set IC_Item_Type[55] = Helm Troll
-
Set IC_Item_Type[56] = Baju Troll
-
Set IC_Item_Type[57] = Logam
-
Set IC_Item_Type[58] = Cincin Troll
-
Set IC_Item_Type[59] = Kapak Usang
-
Set IC_Item_Type[60] = Pedang Troll
-
Set IC_Item_Type[61] = Kalsedon
-
Set IC_Item_Type[62] = Helm Golem
-
Set IC_Item_Type[63] = Baju Golem
-
Set IC_Item_Type[64] = Giok
-
Set IC_Item_Type[65] = Cincin Golem
-
Set IC_Item_Type[66] = Kalimaya
-
Set IC_Item_Type[67] = Pedang Golem
-
-------- Fusions --------
-
-------- Helm Kobold --------
-
Set IC_Item_Fusions[1] = 4
-
Set IC_Item_Fusions_Req1[1] = 1
-
Set IC_Item_Fusions_Req3[1] = 3
-
-------- Baju Kobold --------
-
Set IC_Item_Fusions[2] = 5
-
Set IC_Item_Fusions_Req1[2] = 2
-
Set IC_Item_Fusions_Req3[2] = 3
-
-------- Cincin Kobold --------
-
Set IC_Item_Fusions[3] = 8
-
Set IC_Item_Fusions_Req1[3] = 6
-
Set IC_Item_Fusions_Req3[3] = 7
-
-------- Pedang Kobold --------
-
Set IC_Item_Fusions[4] = 11
-
Set IC_Item_Fusions_Req1[4] = 9
-
Set IC_Item_Fusions_Req3[4] = 10
-
-------- Helm Srigala --------
-
Set IC_Item_Fusions[5] = 13
-
Set IC_Item_Fusions_Req1[5] = 4
-
Set IC_Item_Fusions_Req3[5] = 12
-
-------- Baju Srigala --------
-
Set IC_Item_Fusions[6] = 14
-
Set IC_Item_Fusions_Req1[6] = 5
-
Set IC_Item_Fusions_Req3[6] = 12
-
-------- Cincin Srigala --------
-
Set IC_Item_Fusions[7] = 16
-
Set IC_Item_Fusions_Req1[7] = 8
-
Set IC_Item_Fusions_Req3[7] = 15
-
-------- Pedang Srigala --------
-
Set IC_Item_Fusions[8] = 18
-
Set IC_Item_Fusions_Req1[8] = 11
-
Set IC_Item_Fusions_Req3[8] = 17
-
-------- Helm Raja Kobold --------
-
Set IC_Item_Fusions[9] = 20
-
Set IC_Item_Fusions_Req1[9] = 13
-
Set IC_Item_Fusions_Req3[9] = 19
-
-------- Baju Raja Kobold --------
-
Set IC_Item_Fusions[10] = 21
-
Set IC_Item_Fusions_Req1[10] = 14
-
Set IC_Item_Fusions_Req3[10] = 19
-
-------- Cincin Raja Kobold --------
-
Set IC_Item_Fusions[11] = 23
-
Set IC_Item_Fusions_Req1[11] = 16
-
Set IC_Item_Fusions_Req3[11] = 22
-
-------- Pedang Raja Kobold --------
-
Set IC_Item_Fusions[12] = 25
-
Set IC_Item_Fusions_Req1[12] = 18
-
Set IC_Item_Fusions_Req3[12] = 24
-
-------- Helm Raja Srigala --------
-
Set IC_Item_Fusions[13] = 27
-
Set IC_Item_Fusions_Req1[13] = 20
-
Set IC_Item_Fusions_Req3[13] = 26
-
-------- Baju Raja Srigala --------
-
Set IC_Item_Fusions[14] = 28
-
Set IC_Item_Fusions_Req1[14] = 21
-
Set IC_Item_Fusions_Req3[14] = 26
-
-------- Cincin Raja Srigala --------
-
Set IC_Item_Fusions[15] = 30
-
Set IC_Item_Fusions_Req1[15] = 23
-
Set IC_Item_Fusions_Req3[15] = 29
-
-------- Pedang Raja Srigala --------
-
Set IC_Item_Fusions[16] = 32
-
Set IC_Item_Fusions_Req1[16] = 25
-
Set IC_Item_Fusions_Req3[16] = 31
-
-------- Helm Penguasa Hutan --------
-
Set IC_Item_Fusions[17] = 34
-
Set IC_Item_Fusions_Req1[17] = 27
-
Set IC_Item_Fusions_Req3[17] = 33
-
-------- Baju Penguasa Hutan --------
-
Set IC_Item_Fusions[18] = 35
-
Set IC_Item_Fusions_Req1[18] = 28
-
Set IC_Item_Fusions_Req3[18] = 33
-
-------- Cincin Penguasa --------
-
Set IC_Item_Fusions[19] = 37
-
Set IC_Item_Fusions_Req1[19] = 30
-
Set IC_Item_Fusions_Req3[19] = 36
-
-------- Pedang Penguasa Hutan --------
-
Set IC_Item_Fusions[20] = 39
-
Set IC_Item_Fusions_Req1[20] = 32
-
Set IC_Item_Fusions_Req3[20] = 38
-
-------- Helm Katak --------
-
Set IC_Item_Fusions[21] = 41
-
Set IC_Item_Fusions_Req1[21] = 34
-
Set IC_Item_Fusions_Req3[21] = 40
-
-------- Baju Katak --------
-
Set IC_Item_Fusions[22] = 42
-
Set IC_Item_Fusions_Req1[22] = 35
-
Set IC_Item_Fusions_Req3[22] = 40
-
-------- Cincin Katak --------
-
Set IC_Item_Fusions[23] = 44
-
Set IC_Item_Fusions_Req1[23] = 37
-
Set IC_Item_Fusions_Req3[23] = 43
-
-------- Pedang Katak --------
-
Set IC_Item_Fusions[24] = 46
-
Set IC_Item_Fusions_Req1[24] = 39
-
Set IC_Item_Fusions_Req3[24] = 45
-
-------- Helm Raja Katak --------
-
Set IC_Item_Fusions[25] = 48
-
Set IC_Item_Fusions_Req1[25] = 41
-
Set IC_Item_Fusions_Req3[25] = 47
-
-------- Baju Raja Katak --------
-
Set IC_Item_Fusions[26] = 49
-
Set IC_Item_Fusions_Req1[26] = 42
-
Set IC_Item_Fusions_Req3[26] = 47
-
-------- Cincin Raja Katak --------
-
Set IC_Item_Fusions[27] = 51
-
Set IC_Item_Fusions_Req1[27] = 44
-
Set IC_Item_Fusions_Req3[27] = 50
-
-------- Pedang Katak --------
-
Set IC_Item_Fusions[28] = 53
-
Set IC_Item_Fusions_Req1[28] = 46
-
Set IC_Item_Fusions_Req3[28] = 52
-
-------- Helm Troll --------
-
Set IC_Item_Fusions[29] = 55
-
Set IC_Item_Fusions_Req1[29] = 48
-
Set IC_Item_Fusions_Req3[29] = 54
-
-------- Baju Troll --------
-
Set IC_Item_Fusions[30] = 56
-
Set IC_Item_Fusions_Req1[30] = 49
-
Set IC_Item_Fusions_Req3[30] = 54
-
-------- Cincin Troll --------
-
Set IC_Item_Fusions[31] = 58
-
Set IC_Item_Fusions_Req1[31] = 51
-
Set IC_Item_Fusions_Req3[31] = 57
-
-------- Pedang Troll --------
-
Set IC_Item_Fusions[32] = 60
-
Set IC_Item_Fusions_Req1[32] = 53
-
Set IC_Item_Fusions_Req3[32] = 59
-
-------- Helm Golem --------
-
Set IC_Item_Fusions[33] = 62
-
Set IC_Item_Fusions_Req1[33] = 55
-
Set IC_Item_Fusions_Req3[33] = 61
-
-------- Baju Golem --------
-
Set IC_Item_Fusions[34] = 63
-
Set IC_Item_Fusions_Req1[34] = 56
-
Set IC_Item_Fusions_Req3[34] = 61
-
-------- Cincin Golem --------
-
Set IC_Item_Fusions[35] = 65
-
Set IC_Item_Fusions_Req1[35] = 58
-
Set IC_Item_Fusions_Req3[35] = 64
-
-------- Pedang Golem --------
-
Set IC_Item_Fusions[36] = 67
-
Set IC_Item_Fusions_Req1[36] = 60
-
Set IC_Item_Fusions_Req3[36] = 66
-
-------- Last Index --------
-
Set IC_Item_Fusions_Last_Index = 36
-
-
Combine trigger
-
Item Combination
-
Events
-
Player - Player 1 (Red) types a chat message containing -create as An exact match
-
Player - Player 2 (Blue) types a chat message containing -create as An exact match
-
Player - Player 3 (Teal) types a chat message containing -create as An exact match
-
Player - Player 4 (Purple) types a chat message containing -create as An exact match
-
Player - Player 5 (Yellow) types a chat message containing -create as An exact match
-
Player - Player 6 (Orange) types a chat message containing -create as An exact match
-
Player - Player 7 (Green) types a chat message containing -create as An exact match
-
Player - Player 8 (Pink) types a chat message containing -create as An exact match
-
-
Conditions
-
Actions
-
Custom script: set bj_wantDestroyGroup=true
-
Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
-
Loop - Actions
-
Set IC_Unit = (Picked unit)
-
Set IC_Chance = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
IC_Chance Less than or equal to 40
-
(Level of Inventory (Hero) for IC_Unit) Not equal to 0
-
(Owner of IC_Unit) Equal to (Triggering player)
-
-
Then - Actions
-
For each (Integer A) from 1 to IC_Item_Fusions_Last_Index, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(IC_Unit has an item of type IC_Item_Type[IC_Item_Fusions_Req1[(Integer A)]]) Equal to True
-
IC_Item_Fusions_Req1[(Integer A)] Equal to 0
-
-
-
Or - Any (Conditions) are true
-
Conditions
-
(IC_Unit has an item of type IC_Item_Type[IC_Item_Fusions_Req2[(Integer A)]]) Equal to True
-
IC_Item_Fusions_Req2[(Integer A)] Equal to 0
-
-
-
Or - Any (Conditions) are true
-
Conditions
-
(IC_Unit has an item of type IC_Item_Type[IC_Item_Fusions_Req3[(Integer A)]]) Equal to True
-
IC_Item_Fusions_Req3[(Integer A)] Equal to 0
-
-
-
-
Then - Actions
-
Item - Remove (Item carried by IC_Unit of type IC_Item_Type[IC_Item_Fusions_Req1[(Integer A)]])
-
Item - Remove (Item carried by IC_Unit of type IC_Item_Type[IC_Item_Fusions_Req2[(Integer A)]])
-
Item - Remove (Item carried by IC_Unit of type IC_Item_Type[IC_Item_Fusions_Req3[(Integer A)]])
-
Hero - Create IC_Item_Type[IC_Item_Fusions[(Integer A)]] and give it to IC_Unit
-
Game - Display to (All players) the text: (((Name of (Owner of IC_Unit)) + sukses membuat ) + (Name of (Last created item)))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
IC_Chance Greater than or equal to 41
-
(Level of Inventory (Hero) for IC_Unit) Not equal to 0
-
(Owner of IC_Unit) Equal to (Triggering player)
-
-
Then - Actions
-
For each (Integer A) from 1 to IC_Item_Fusions_Last_Index, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(IC_Unit has an item of type IC_Item_Type[IC_Item_Fusions_Req1[(Integer A)]]) Equal to True
-
IC_Item_Fusions_Req1[(Integer A)] Equal to 0
-
-
-
Or - Any (Conditions) are true
-
Conditions
-
(IC_Unit has an item of type IC_Item_Type[IC_Item_Fusions_Req2[(Integer A)]]) Equal to True
-
IC_Item_Fusions_Req2[(Integer A)] Equal to 0
-
-
-
Or - Any (Conditions) are true
-
Conditions
-
(IC_Unit has an item of type IC_Item_Type[IC_Item_Fusions_Req3[(Integer A)]]) Equal to True
-
IC_Item_Fusions_Req3[(Integer A)] Equal to 0
-
-
-
-
Then - Actions
-
Item - Remove (Item carried by IC_Unit of type IC_Item_Type[IC_Item_Fusions_Req3[(Integer A)]])
-
Game - Display to (All players) the text: ((Name of (Owner of IC_Unit)) + gagal melakukan kombinasi.)
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
-
-
-
-
Last edited: