Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Crystal Quest
#21
Question:

I'm planning to put scripting/cinematics and all that little stuff in the game, the thing is, should I do scripting as a text file with "coding" that the game can recognize? Or should I hard-code it into the map-editor or something like that?
Reply
#22
Script editor. I'm a polymorphism freak when it comes to map engines. (nothing to do with class polymorphism, but similar).
But don't complicate things with expressions - just do stuff like an ini file...
Code:
uses Dude1 Dude2
walk Dude1 Right 50
walk Dude2 Up 70
talk Dude1 "Hello Dude2"
gesture Dude1 WAVE
Stuff like that. Then use string functions (MID$, LEFT$, RIGHT$) to parse the script.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#23
Alrighty then. I guess this means I'll be using text scripting. I'll run a few parsing tests of my own so I'll be confident that it'll work out...
Reply
#24
if your going to get any final fantasy game the best is final fantasy x
it has great spells and a awsome level up system
pen your other eyes.........
Reply
#25
Quote:if your going to get any final fantasy game the best is final fantasy x
it has great spells and a awsome level up system

...yeah. And I just saved 50% on car insurance with GEICO.......



Next time you advertise games in other people's threads, at least be correct. Final Fantasy X has no level up system... Now SHOOOSH...
Reply
#26
NO!

HARD CODE IT. Make SURE to define your INPUT and OUTPUT for your hardcoded code. USE IT AS AN INCLUDE FILE.

No matter how good your script will be, it will never be as featured or as efficient as even a QB compiled script.

IF you just want to load STATIC values (ie: not script), THEN DO NOT hard code it.

SCRIPT IS EVIL AND WRONG!

Give me own good reason why that's not the case?
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#27
NO!
Engine Adaptability RULES. PJ, You MUST use scripts.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#28
Why must he use scripts?

Even if he wants someone else to change the engine, he can make a program to recompile that part of the code.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#29
He should use scripts for his own sake. Hard-coding actions and events for a long, complex game is the number one way to work yourself into a corner. RPGs especially.

make a script-compiler. Compile your scrips into a simple bytecode that a program can read in realtime.

For instance:

MOVE "Bob", "Up", 4

Would translate into:

MMA

where "M" would mean "move", the second character would be the ascii id code for "bob", and 4 would be the number of spaces. That takes the processing time out of interpreting scripts. since all commands would take a fixed number of bytes, you can load the entire script file into one string for fast execution.

When you script, make it more event-based than anything else. For instance:

EVENT {
ACTION: "Walk"
TILE: (3, 0)-(4, 2)
RESULT {
...events/stat changes.
}

Would make the code "result" execute when you walk into tiles in (3, 0) to (4, 2).
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#30
Plus, if you hardcode this kind of stuff you'll run out of code mem in level 2.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)