| 09-20-2004, 02:33 AM | #1 |
Ok, I really needhelp now, the last question I asked didn't really help so I'm going to need someone to give me alittle tutorial on how to make this. I'm trying to make a battle system like in herorpg. Can someone give me a brief tutorial on how to make it use the arrow keys to move up and down and put an arrow infront of the text. I also need it so when he presses escape on the text with the arrow it goes to a whole new multiboard. Finally I need it so if they select an attack option it brings up an arrow over the enemies head to witch one to select. Please please help -TFS |
| 09-20-2004, 02:35 AM | #2 |
Eh....don't really get what you're asking... |
| 09-20-2004, 03:09 PM | #3 |
u will first need 2 figure out how to change behavior of the arrow keys, else the camera will change when u push the arrow key for the other probs just have 2 variables, multiboard number and rownumber. On a click do: rownr = rownr + 1, and add the arrow to the multiboard, be sure to also remove the arrow from rownr-1 |
| 09-20-2004, 09:11 PM | #4 | |
Quote:
|
| 09-20-2004, 09:49 PM | #5 |
dont take this as offensive, I just wanna know b4 I try to help u. Do you know how variables work? |
| 09-20-2004, 09:53 PM | #6 | |
Quote:
|
| 09-20-2004, 09:58 PM | #7 |
For some general help, if your using TFT of course there are a couple events Code:
Event - Player (Presses/Releases) (Up/Down/Left/Right) Key Code:
Event - Player Skips a Cinematic (detects esc presses whether their in a cinematic or not. Most people want to have a condition or something like Player is pressing up arrow key. To do that you need to create a boolean and set it to true and false at the Presses and Releases events respectivly. Edit: do you mean you do know how variables work or yes you do take that as offenseve? ![]() |
| 09-20-2004, 10:09 PM | #8 | |
Quote:
|
| 09-20-2004, 10:11 PM | #9 |
didnt what the map i showed u in other thread help? what was wrong with it? the only difference is the contents of the multiboard and they use an ability instead of esc. |
| 09-20-2004, 11:27 PM | #10 | |
Quote:
|
| 09-21-2004, 08:11 AM | #11 |
I'll help u out as soon as I get home |
| 09-21-2004, 02:01 PM | #12 |
ok, back home. There are basically 2 things u can do. Make an arrow as an icon. Have these variables: RowNr (Integer) MultiNr (Integer) SelectedMulti (multiboard) Multiboards (multiboard array) MultiboardRows (integer array), this have 2 be set to the number of rows each multiboard has actions for down press: Code:
Multiboard - Set the display style for SelectedMulti item in column 1, row RowNR to Show text and Hide icons
set RowNr = RowNr + 1
if RowNr is greater than MultiboardRows(MultiNr) then
set RowNr = 1
Multiboard - Set the display style for SelectedMulti item in column 1, row RowNR to Show text and Show iconsfor up press: Code:
Multiboard - Set the display style for SelectedMulti item in column 1, row RowNR to Show text and Hide icons
set RowNr = RowNr - 1
if RowNr is smaller than 1 then
set RowNr = MultiboardRows(MultiNr)
Multiboard - Set the display style for SelectedMulti item in column 1, row RowNR to Show text and Show iconsfor Escape press: Code:
Multiboard - Set the display style for SelectedMulti item in column 1, row RowNR to Show text and Hide icons
set RowNr = 1
set MultiNr = MultiNr + 1
if MultiNr is greater than "number of multiboards" then
set MultiNr = 1
set SelectedMulti = Multiboards(MultiNr)
Multiboard - Set the display style for SelectedMulti item in column 1, row RowNR to Show text and Show iconsif u want to have a text arrow in front, like this: -> then you have to make a string array for the text on each multiboard cuz blizzard didnt make "multiboard - text of item". But this will get much harder so I suggest u take the play replay icon and use it as icon on each of the multiboard items. Hope this help u out. |
