| 12-26-2004, 10:44 AM | #1 |
Okay, so the problem is that when down arrow key is pressed it jumps to "use items" but instead it should go to defend, then when they press again it goes to "cast spell" and so on and so forth. Code:
Attack
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Multiboard - Create a multiboard with 1 columns and 5 rows, titled What to do?
Set System_Attack = (Last created multiboard)
Multiboard - Set the display style for System_Attack item in column 0, row 0 to Show text and Hide icons
Multiboard - Set the width for System_Attack item in column 0, row 1 to 15.00% of the total screen width
Multiboard - Set the width for System_Attack item in column 0, row 2 to 15.00% of the total screen width
Multiboard - Set the width for System_Attack item in column 0, row 3 to 15.00% of the total screen width
Multiboard - Set the width for System_Attack item in column 0, row 4 to 15.00% of the total screen width
Multiboard - Set the width for System_Attack item in column 0, row 5 to 15.00% of the total screen width
Multiboard - Set the text for System_Attack item in column 1, row 1 to |CFFFF0000Attack
Multiboard - Set the text for System_Attack item in column 1, row 2 to Defend
Multiboard - Set the text for System_Attack item in column 1, row 3 to Cast Spell
Multiboard - Set the text for System_Attack item in column 1, row 4 to Summon
Multiboard - Set the text for System_Attack item in column 1, row 5 to Use Item
Multiboard - Hide System_AttackCode:
Show Attack
Events
Unit - A unit enters Slot 5 Blue <gen>
Conditions
Actions
Multiboard - Show System_Attack
Multiboard - Maximize System_AttackCode:
Defend
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Multiboard - Create a multiboard with 1 columns and 5 rows, titled What to do?
Set System_Defend = (Last created multiboard)
Multiboard - Set the display style for System_Defend item in column 0, row 0 to Show text and Hide icons
Multiboard - Set the width for System_Defend item in column 0, row 1 to 15.00% of the total screen width
Multiboard - Set the width for System_Defend item in column 0, row 2 to 15.00% of the total screen width
Multiboard - Set the width for System_Defend item in column 0, row 3 to 15.00% of the total screen width
Multiboard - Set the width for System_Defend item in column 0, row 4 to 15.00% of the total screen width
Multiboard - Set the width for System_Defend item in column 0, row 5 to 15.00% of the total screen width
Multiboard - Set the text for System_Defend item in column 1, row 1 to Attack
Multiboard - Set the text for System_Defend item in column 1, row 2 to |CFFFF0000Defend
Multiboard - Set the text for System_Defend item in column 1, row 3 to Cast Spell
Multiboard - Set the text for System_Defend item in column 1, row 4 to Summon
Multiboard - Set the text for System_Defend item in column 1, row 5 to Use Item
Multiboard - Hide System_DefendCode:
Hide Attack And Show Defend
Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
(System_Attack is showing) Equal to True
Actions
Multiboard - Hide System_Attack
Multiboard - Show System_Defend
Multiboard - Maximize System_Defendand it goes like that all the time, can you find the mistake? |
