You can still bypass it by Using dummy Abilitys as items for a Unit and trigger the Gold amount it Cost and give the item to the Unit per trigger... just a Bit More Creative... and ist works... just an example how to bypass certain limitations...
ah so saying use dummy ability that does nothing to trigger the cooldown on custom ui, however if it a custom ui button, there is no unit to trigger the ability.
and a shop with 12 items, 7 players, wouldnt i still need 7 different UI's one per person, if not it would share the cooldown?
Made Basic UI, not good with Photoshop or anything like that
So if i do end up making this into a thing, The Boxes, i add in the RUID, however is it possible to add tuff to the ui and remove it in game, as if not i to get all the Icons and put them in the RUID, seems like a lot of work
Basically is there a Script like Jass or GUI, Add Icon "ItemID" To Box1, like multiboard u can change the icon via a command
One more thing, i know all this is nothing to do with board name lol but still
i got Custom UI in game already, nothing interesting, but has multiple buttons
is there a way to put all the button triggers into 1 Trigger, so it less messy, Example
-
B1U
-
Events
-
Game - B1U becomes Not equal to 0.00
-
Conditions
-
Actions
-
Set VariableSet B1U = 0.00
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet C1 = 0
-
Set VariableSet C1S = (String(C1))
-
Custom script: call BlzFrameSetText(CodeB1, udg_C1S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
Set VariableSet C1 = (C1 + 1)
-
Set VariableSet C1S = (String(C1))
-
Custom script: call BlzFrameSetText(CodeB1, udg_C1S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
this is only way i know how to trigger the buttons on custom UI, unlike dialog buttons i cant put all the buttons in 1 trigger, as i dont know what condition to use for, if B1U is clicked trigger this part of the trigger, in Dialogs there is a condition to check what button is clicked
Actually This Seems To Work, But Dunno if it the most Efficient Way.
-
The Code
-
Events
-
Game - B1U becomes Not equal to 0.00
-
Game - B1D becomes Not equal to 0.00
-
Game - B2U becomes Not equal to 0.00
-
Game - B2D becomes Not equal to 0.00
-
Game - B3U becomes Not equal to 0.00
-
Game - B3D becomes Not equal to 0.00
-
Game - B4U becomes Not equal to 0.00
-
Game - B4D becomes Not equal to 0.00
-
Game - CA becomes Not equal to 0.00
-
Game - JPSCCB becomes Not equal to 0.00
-
Conditions
-
Actions
-
-------- Button 1 Down --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
B1D Not equal to 0.00
-
C1 Equal to 0
-
Then - Actions
-
Set VariableSet B1D = 0.00
-
Set VariableSet C1 = 9
-
Set VariableSet C1S = (String(C1))
-
Custom script: call BlzFrameSetText(CodeB1, udg_C1S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet B1D = 0.00
-
Set VariableSet C1 = (C1 - 1)
-
Set VariableSet C1S = (String(C1))
-
Custom script: call BlzFrameSetText(CodeB1, udg_C1S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button 1 Up --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
B1U Not equal to 0.00
-
C1 Equal to 9
-
Then - Actions
-
Set VariableSet B1U = 0.00
-
Set VariableSet C1 = 0
-
Set VariableSet C1S = (String(C1))
-
Custom script: call BlzFrameSetText(CodeB1, udg_C1S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet B1U = 0.00
-
Set VariableSet C1 = (C1 + 1)
-
Set VariableSet C1S = (String(C1))
-
Custom script: call BlzFrameSetText(CodeB1, udg_C1S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button 2 Up --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
B2U Not equal to 0.00
-
C2 Equal to 9
-
Then - Actions
-
Set VariableSet B2U = 0.00
-
Set VariableSet C2 = 0
-
Set VariableSet C2S = (String(C2))
-
Custom script: call BlzFrameSetText(CodeB2, udg_C2S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet B2U = 0.00
-
Set VariableSet C2 = (C2 + 1)
-
Set VariableSet C2S = (String(C2))
-
Custom script: call BlzFrameSetText(CodeB2, udg_C2S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button 2 Down --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
B2D Not equal to 0.00
-
C2 Equal to 0
-
Then - Actions
-
Set VariableSet B2D = 0.00
-
Set VariableSet C2 = 9
-
Set VariableSet C2S = (String(C2))
-
Custom script: call BlzFrameSetText(CodeB2, udg_C2S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet B2D = 0.00
-
Set VariableSet C2 = (C2 - 1)
-
Set VariableSet C2S = (String(C2))
-
Custom script: call BlzFrameSetText(CodeB2, udg_C2S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button 3 Up --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
B3U Not equal to 0.00
-
C3 Equal to 9
-
Then - Actions
-
Set VariableSet B3U = 0.00
-
Set VariableSet C3 = 0
-
Set VariableSet C3S = (String(C3))
-
Custom script: call BlzFrameSetText(CodeB3, udg_C3S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet B3U = 0.00
-
Set VariableSet C3 = (C3 + 1)
-
Set VariableSet C3S = (String(C3))
-
Custom script: call BlzFrameSetText(CodeB3, udg_C3S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button 3 Down --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
B3D Not equal to 0.00
-
C3 Equal to 0
-
Then - Actions
-
Set VariableSet B3D = 0.00
-
Set VariableSet C3 = 9
-
Set VariableSet C3S = (String(C3))
-
Custom script: call BlzFrameSetText(CodeB3, udg_C3S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet B3D = 0.00
-
Set VariableSet C3 = (C3 - 1)
-
Set VariableSet C3S = (String(C3))
-
Custom script: call BlzFrameSetText(CodeB3, udg_C3S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button 4 Up --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
B4U Not equal to 0.00
-
C4 Equal to 9
-
Then - Actions
-
Set VariableSet B4U = 0.00
-
Set VariableSet C4 = 0
-
Set VariableSet C4S = (String(C4))
-
Custom script: call BlzFrameSetText(CodeB4, udg_C4S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet B4U = 0.00
-
Set VariableSet C4 = (C4 + 1)
-
Set VariableSet C4S = (String(C4))
-
Custom script: call BlzFrameSetText(CodeB4, udg_C4S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button 4 Down --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
B4D Not equal to 0.00
-
C4 Equal to 0
-
Then - Actions
-
Set VariableSet B4D = 0.00
-
Set VariableSet C4 = 9
-
Set VariableSet C4S = (String(C4))
-
Custom script: call BlzFrameSetText(CodeB4, udg_C4S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet B4D = 0.00
-
Set VariableSet C4 = (C4 - 1)
-
Set VariableSet C4S = (String(C4))
-
Custom script: call BlzFrameSetText(CodeB4, udg_C4S)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button Close --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set VariableSet MCInt = 0
-
Set VariableSet JPSCCB = 0.00
-
Custom script: call BlzFrameSetVisible(CodeBD, false)
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
-------- Button Accept --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
CA Not equal to 0.00
-
C1 Equal to CI1
-
C2 Equal to CI2
-
C3 Equal to CI3
-
C4 Equal to CI4
-
Then - Actions
-
Set VariableSet JPSCCB = 0.00
-
Set VariableSet CA = 0.00
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play AG <gen>
-
Custom script: endif
-
Set VariableSet MCInt = 0
-
Set VariableSet JPSCCB = 0.00
-
Custom script: call BlzFrameSetVisible(CodeBD, false)
-
Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...
-
Game - Display to (All players) the text: ((Name of (Triggering player)) + Cracked the Code!)
-
Set VariableSet MCReward = (Random integer number between 5 and 35)
-
Set VariableSet JPS[(Player number of (Triggering player))] = (JPS[(Player number of (Triggering player))] + MCReward)
-
Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: |cffd45e19JPS|r Rewarded " + ((String(MCReward)) + "))
-
Special Effect - Create a special effect attached to the origin of MagicalChest using war3mapImported\AnnihilationBlast.mdx
-
Special Effect - Destroy (Last created special effect)
-
Wait 0.50 seconds
-
Unit - Remove MagicalChest from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Denied Less than or equal to 1
-
CA Not equal to 0.00
-
Then - Actions
-
Set VariableSet JPSCCB = 0.00
-
Set VariableSet CA = 0.00
-
Set VariableSet Denied = (Denied + 1)
-
Game - Display to (All players) the text: [|cffff0000U|rD|cff...
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play BC <gen>
-
Custom script: endif
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Denied Greater than or equal to 2
-
CA Not equal to 0.00
-
Then - Actions
-
Set VariableSet JPSCCB = 0.00
-
Set VariableSet CA = 0.00
-
Set VariableSet MCInt = 0
-
Set VariableSet JPSCCB = 0.00
-
Custom script: call BlzFrameSetVisible(CodeBD, false)
-
Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Sound - Play AD <gen>
-
Custom script: endif
-
Special Effect - Create a special effect attached to the origin of MagicalChest using war3mapImported\AnnihilationBlast.mdx
-
Special Effect - Destroy (Last created special effect)
-
Wait 0.50 seconds
-
Unit - Move MagicalChest instantly to (Random point in CameraBounds <gen>), facing (Center of Region 000 <gen>)
-
Wait 0.50 seconds
-
Set VariableSet Denied = 0
-
Else - Actions