10-22-2005, 08:39 PM
I very much like the way Na_th_an implemented the commands for his IF. Make a file like this:
Jump, 1, 1
Swing, 1, 2
Hit, 1, 3
North, 3, 4
N, 3, 4
South, 3, 5
S, 3, 5
Car, 2, 6
Swing, 2, 7
First you have a word. Any word that might be typed into your program goes here. Then you have the word type. This can be: 1 - Verb, 2 - Noun, 3 - Direction, 4 - Adjective, etc. Then you have a unique word ID. What's nice about this is that you can then have words like North and N both have the same ID. They're are afterall the same word. Then you can parse these into seperate arrays.
Jump, 1, 1
Swing, 1, 2
Hit, 1, 3
North, 3, 4
N, 3, 4
South, 3, 5
S, 3, 5
Car, 2, 6
Swing, 2, 7
First you have a word. Any word that might be typed into your program goes here. Then you have the word type. This can be: 1 - Verb, 2 - Noun, 3 - Direction, 4 - Adjective, etc. Then you have a unique word ID. What's nice about this is that you can then have words like North and N both have the same ID. They're are afterall the same word. Then you can parse these into seperate arrays.
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]