Text Log
Author |
Message |
Hack.saw
|
Posted: Thu Jan 18, 2007 8:56 pm Post subject: Text Log |
|
|
I'm trying to create a log that says when ever a hit lands and how much it does, if theres a critical hit, if an ability was used, etc. for my game. I've been working on it for a while but can't seem to figure out how each time there is a new entry the ones before it will move up a space then the top one will disapear, heres the code I came up with so far. If you don't understand it thats ok becaue it dosnt work
code: |
if PAchat (1) = 1 and then
locate (chat,70)
put "You charge!"
chat-=1
elsif PAchat (2)= 1 then
locate (chat,70)
put "Your Heroic Strike hits for ", DMG+4," damage!"
chat-=1
end if | I know a thousand reason why it dosn't work but can't seem to fix it. If I put PAchat (1):=0 at end the text disapears right after writing it down, but its in a loop so I have to reset them to 0 so it dosn't keep repeating Right now I'm just worrying about getting the log to work ill add in it cuts down after 10 lines or w/e. Hope this makes sense if you want the rest of my code ill throw it in. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
|
|