Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Text Log
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Hack.saw




PostPosted: 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 Laughing
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 Confused 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
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: