|
-
Mar 5th, 2001, 03:15 PM
#1
Thread Starter
New Member
I am creating a Wrestling Simulator Game, for all those who do not know this is a wrestling game in similar style to football manager type games.
The problem I am having is with the Roster. I have created a database with all the wrestlers info in. I have set up the page that can display each wrestler and their stats seperatly using the DATA Control, my problem has come with writing the match engine.
I am trying to write the match engine so that it can read values from the databse and include them, such as the wrestlers hometown or finishing move, however I cannot get it to display the information.
Can anyone help, alternatively if you know of a better way of doing the roster rather than a database let me know. Plus if anyone knows where I can find any codes for wrestling sims I would appreciate it.
Cheers
POGESTER
-
Mar 6th, 2001, 04:49 AM
#2
Retired VBF Adm1nistrator
I would stick all the info into text files, so as to keep the overall size of the add down.
Its quite easy if you do it that way. Something like :
Code:
Open App.Path & "\data.dat" For Input As #1
Do Until Eof(1)
DoEvents
Line Input #1, var_string
'Do Something
Loop
Close #1
Thats what I would do.
- jamie
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Mar 7th, 2001, 05:15 AM
#3
Frenzied Member
Well, if all you see is the result of the fight, you can make it turn-based.
Make a loop until one of them is dead, each of them makes a different attack in each turn based on some probabilities.
It's called fuzzy logic, you can find a code sample on it at http://www.planet-source-code.com .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|