- Joined
- Jan 19, 2010
- Messages
- 381
Hello... what is wrong with this script?
1-Why is multiboard created when is pressed Decline?
2-Why isnt work Accept when are there some items?
3-Not working and accept/decline
Download https://www.hiveworkshop.com/forums/pastebin.php?id=hacybq
1-Why is multiboard created when is pressed Decline?
2-Why isnt work Accept when are there some items?
3-Not working and accept/decline
-
Trade cast
-

Události
-


Jednotka - A unit ZaÄÃ*ná použÃ*vat schopnost
-
-

PodmÃ*nky
-


(Ability being cast) Rovná se Trade
-
-

Činnosti
-


Set TargetItemNumber = 2
-


Set TraderItemNumber = 2
-


Set Trader = (Triggering unit)
-


Set Target = (Target unit of ability being cast)
-


Hashtable - Create a hashtable
-


Set HashTable = (Last created hashtable)
-


Jednotka - Make Target Nezranitelný
-


Jednotka - Make Trader Nezranitelný
-


Jednotka - Add Accept to Target
-


Jednotka - Add Decline to Target
-


Jednotka - Remove Trade from Trader
-


Jednotka - Remove Trade from Target
-


SpÃ*naÄ - Turn on Trade Accept <gen>
-
-
-
Trade Accept
-

Události
-


Jednotka - A unit ZaÄÃ*ná použÃ*vat schopnost
-
-

PodmÃ*nky
-


(Triggering unit) Rovná se Target
-
-

Činnosti
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



Jestliže - podmÃ*nky
-




(Ability being cast) Rovná se Accept
-
-



Potom - akce
-




Jednotka - Add Accept to Trader
-




Jednotka - Add Decline to Trader
-




-------- MULTIBOARD --------
-




VÃ*ce oken - Create a multiboard with 2 columns and 7 rows, titled Trade list
-




VÃ*ce oken - Change the color of the title for (Last created multiboard) to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




VÃ*ce oken - Set the color for (Last created multiboard) item in column 1, row 1 to (100.00%, 100.00%, 0.00%) with 0.00% transparency
-




VÃ*ce oken - Set the color for (Last created multiboard) item in column 2, row 1 to (100.00%, 100.00%, 0.00%) with 0.00% transparency
-




VÃ*ce oken - Set the color for (Last created multiboard) item in column 2, row 2 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




VÃ*ce oken - Set the color for (Last created multiboard) item in column 2, row 3 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




VÃ*ce oken - Set the color for (Last created multiboard) item in column 2, row 4 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




VÃ*ce oken - Set the color for (Last created multiboard) item in column 2, row 5 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




VÃ*ce oken - Set the color for (Last created multiboard) item in column 2, row 6 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




VÃ*ce oken - Set the color for (Last created multiboard) item in column 2, row 7 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 1, row 1 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 1, row 2 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 1, row 3 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 1, row 4 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 1, row 5 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 1, row 6 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 1, row 7 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 2, row 1 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 2, row 2 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 2, row 3 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 2, row 4 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 2, row 5 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 2, row 6 to 7.00% of the total screen width
-




VÃ*ce oken - Set the width for (Last created multiboard) item in column 2, row 7 to 7.00% of the total screen width
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 1, row 1 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 1, row 2 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 1, row 3 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 1, row 4 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 1, row 5 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 1, row 6 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 1, row 7 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 2, row 1 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 2, row 2 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 2, row 3 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 2, row 4 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 2, row 5 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 2, row 6 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the display style for (Last created multiboard) item in column 2, row 7 to Ukázat text and Skrýt icons
-




VÃ*ce oken - Set the text for (Last created multiboard) item in column 1, row 1 to (Name of (Owner of Trader))
-




VÃ*ce oken - Set the text for (Last created multiboard) item in column 2, row 1 to (Name of (Owner of Target))
-




VÃ*ce oken - Ukázat (Last created multiboard)
-




VÃ*ce oken - Maximalizovat (Last created multiboard)
-




-------- MULTIBOARD --------
-




SpÃ*naÄ - Turn off (This trigger)
-




SpÃ*naÄ - Turn on Trading <gen>
-
-



Jinak - akce
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



Jestliže - podmÃ*nky
-




(Ability being cast) Rovná se Decline
-
-



Potom - akce
-




Jednotka - Remove Accept from Target
-




Jednotka - Remove Decline from Target
-




Jednotka - Add Trade to Target
-




Jednotka - Add Trade to Trader
-




Jednotka - Make Target Zranitelný
-




Jednotka - Make Trader Zranitelný
-




SpÃ*naÄ - Turn off (This trigger)
-
-



Jinak - akce
-




Do nothing
-
-
-
-
-
Trading
-

Události
-


Jednotka - A unit Použil předmět
-
-

PodmÃ*nky
-

Činnosti
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



Jestliže - podmÃ*nky
-




(Triggering unit) Rovná se Target
-
-



Potom - akce
-




Hashtable - Save Handle Of(Item being manipulated) as 1 of TargetItemNumber in HashTable
-




VÃ*ce oken - Set the text for (Last created multiboard) item in column 2, row TargetItemNumber to (Name of (Load 1 of TargetItemNumber in HashTable))
-




Předmět - Remove (Load 1 of TargetItemNumber in HashTable)
-




Set TargetItemNumber = (TargetItemNumber + 1)
-
-



Jinak - akce
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





Jestliže - podmÃ*nky
-






(Triggering unit) Rovná se Trader
-
-





Potom - akce
-






Hashtable - Save Handle Of(Item being manipulated) as 2 of TraderItemNumber in HashTable
-






VÃ*ce oken - Set the text for (Last created multiboard) item in column 1, row TraderItemNumber to (Name of (Load 2 of TraderItemNumber in HashTable))
-






Předmět - Remove (Load 2 of TraderItemNumber in HashTable)
-






Set TraderItemNumber = (TraderItemNumber + 1)
-
-





Jinak - akce
-






Do nothing
-
-
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



Jestliže - podmÃ*nky
-




(Ability being cast) Rovná se Accept
-
-



Potom - akce
-




Set TradeAccept = (TradeAccept + 1)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





Jestliže - podmÃ*nky
-






TradeAccept Rovná se 2
-
-





Potom - akce
-






Hrdina - Give (Load 2 of 1 in HashTable) to Target
-






Hrdina - Give (Load 2 of 2 in HashTable) to Target
-






Hrdina - Give (Load 2 of 3 in HashTable) to Target
-






Hrdina - Give (Load 2 of 4 in HashTable) to Target
-






Hrdina - Give (Load 2 of 5 in HashTable) to Target
-






Hrdina - Give (Load 2 of 6 in HashTable) to Target
-






Hrdina - Give (Load 1 of 1 in HashTable) to Trader
-






Hrdina - Give (Load 1 of 2 in HashTable) to Trader
-






Hrdina - Give (Load 1 of 3 in HashTable) to Trader
-






Hrdina - Give (Load 1 of 4 in HashTable) to Trader
-






Hrdina - Give (Load 1 of 5 in HashTable) to Trader
-






Hrdina - Give (Load 1 of 6 in HashTable) to Trader
-






Jednotka - Remove Accept from Target
-






Jednotka - Remove Accept from Trader
-






Jednotka - Remove Decline from Target
-






Jednotka - Remove Decline from Trader
-






Jednotka - Add Trade to Target
-






Jednotka - Add Trade to Trader
-






Jednotka - Make Target Zranitelný
-






Jednotka - Make Trader Zranitelný
-






Set TargetItemNumber = 2
-






Set TraderItemNumber = 2
-






Set TradeAccept = 0
-






Hashtable - Clear HashTable
-






VÃ*ce oken - Destroy (Last created multiboard)
-






SpÃ*naÄ - Turn off (This trigger)
-
-





Jinak - akce
-






Do nothing
-
-
-
-



Jinak - akce
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



Jestliže - podmÃ*nky
-




(Ability being cast) Rovná se Decline
-
-



Potom - akce
-




Hrdina - Give (Load 2 of 1 in HashTable) to Trader
-




Hrdina - Give (Load 2 of 2 in HashTable) to Trader
-




Hrdina - Give (Load 2 of 3 in HashTable) to Trader
-




Hrdina - Give (Load 2 of 4 in HashTable) to Trader
-




Hrdina - Give (Load 2 of 5 in HashTable) to Trader
-




Hrdina - Give (Load 2 of 6 in HashTable) to Trader
-




Hrdina - Give (Load 1 of 1 in HashTable) to Target
-




Hrdina - Give (Load 1 of 2 in HashTable) to Target
-




Hrdina - Give (Load 1 of 3 in HashTable) to Target
-




Hrdina - Give (Load 1 of 4 in HashTable) to Target
-




Hrdina - Give (Load 1 of 5 in HashTable) to Target
-




Hrdina - Give (Load 1 of 6 in HashTable) to Target
-




Jednotka - Remove Accept from Target
-




Jednotka - Remove Accept from Trader
-




Jednotka - Remove Decline from Target
-




Jednotka - Remove Decline from Trader
-




Jednotka - Add Trade to Target
-




Jednotka - Add Trade to Trader
-




Jednotka - Make Target Zranitelný
-




Jednotka - Make Trader Zranitelný
-




Set TargetItemNumber = 2
-




Set TraderItemNumber = 2
-




Set TradeAccept = 0
-




Hashtable - Clear HashTable
-




VÃ*ce oken - Destroy (Last created multiboard)
-




SpÃ*naÄ - Turn off (This trigger)
-
-



Jinak - akce
-




Do nothing
-
-
-
-
Download https://www.hiveworkshop.com/forums/pastebin.php?id=hacybq
Last edited:



