- Joined
- Apr 16, 2010
- Messages
- 584
Hi! So lets start with the first one:
Solved - I've created a simple system for my map that calculates the attack speed of the hero and shows it when you type "-as", the problem is that when i have items that increase my AS, they wont be shown in formula, except the last one!
And second one:
Unsolved - Lately i had problem with my map, couldn't open it in JNGP - EGUI helped me... So now i can open it in EGUI, but when i try to enable UMSWE it shows me an error:
+rep for help!
Solved - I've created a simple system for my map that calculates the attack speed of the hero and shows it when you type "-as", the problem is that when i have items that increase my AS, they wont be shown in formula, except the last one!
-
C Attack Speed Settings
-
Events
- Map initialization
- Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
- Trigger - Add to C Attack Speed <gen> the event (Player - (Player((Integer A))) types a chat message containing -as as An exact match)
-
Loop - Actions
- Set AS_BaseCooldown = 1.90
- -------- Setting items attack speed bonus --------
- Set AS_NumberofTypes = 3
- -------- Gloves of Haste --------
- Set AS_ItemType[1] = Gloves of Haste
- Set AS_BonusAttackSpeed[1] = 25.00
- -------- Flame Blade --------
- Set AS_ItemType[2] = Flame Blade
- Set AS_BonusAttackSpeed[2] = 30.00
- -------- Elemental Blades --------
- Set AS_ItemType[3] = Elemental Blades //if i have this item formula will calculate its AS, but not others...
- Set AS_BonusAttackSpeed[3] = 30.00
-
For each (Integer A) from 1 to 12, do (Actions)
-
Events
-
C Attack Speed
- Events
- Conditions
-
Actions
-
For each (Integer A) from 1 to AS_NumberofTypes, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Game_Hero[(Player number of (Triggering player))] has an item of type AS_ItemType[(Integer A)]) Equal to True
-
Then - Actions
- Custom script: set udg_AS_FinalSpeed[GetConvertedPlayerId(GetTriggerPlayer())] = udg_AS_BaseCooldown*(100/(100+udg_AS_BonusAttackSpeed[GetForLoopIndexA()]+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, udg_Game_Hero[GetConvertedPlayerId(GetTriggerPlayer())], true))*(0.02*100))))
-
Else - Actions
- Custom script: set udg_AS_FinalSpeed[GetConvertedPlayerId(GetTriggerPlayer())] = udg_AS_BaseCooldown*(100/(100+0+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, udg_Game_Hero[GetConvertedPlayerId(GetTriggerPlayer())], true))*(0.02*100))))
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Game - Display to (Player group((Triggering player))) the text: (|c00ff0303Your hero's attack speed has a + ((String(AS_FinalSpeed[(Player number of (Triggering player))])) + cooldown.))
-
For each (Integer A) from 1 to AS_NumberofTypes, do (Actions)
Unsolved - Lately i had problem with my map, couldn't open it in JNGP - EGUI helped me... So now i can open it in EGUI, but when i try to enable UMSWE it shows me an error:
+rep for help!
Attachments
Last edited: