Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Creature tournament:Selection

Author
Message
Chaos
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 6th Apr 2003 13:39
What would you do.

Want to select a creture at the begining from 3 and raise it up strong

or

Different versions for different creatures.

Just spinning around ideas for the menu at the start now the transport engine is complete Almost :-s
Darkworlds are all around us just open your eyes
Most of us are still half asleep
Hamish McHaggis
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 6th Apr 2003 14:13
Do you mean like the creatures evolving like in pokemon?

Why the hell'd you ask me for crying out loud!?!
Chaos
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 6th Apr 2003 14:20
no i mean:
It will be a game where you raise up your cretures experiance,magic points defense etc and then participate in turn based battles.

There will be tournaments and im also hoping for an internet game as well (can i do that in DBC?)
hope this sounds ok screenshots are a while of as the engine needs to be fine tuned and models need to be made for the creatures

i need to finish off the battle system and make a tournement level.

Creatures:
There will be 3cretaures to choose from at the begining although i dont know yet.(creatures are currently cube,sphere,cone)

you stay with one creature to the end of the tournament raising it training it and eventually winnig the tournament

ok?

Darkworlds are all around us just open your eyes
Most of us are still half asleep
Xoid
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location:
Posted: 6th Apr 2003 15:42 Edited at: 6th Apr 2003 15:44
Quote:
"im also hoping for an internet game as well (can i do that in DBC?)"

well... you can do it in DBC but you really need the multiplayer functions, so if you have DBC Enhanced then yes, you can

although I suppose you could use an external app to act as your multiplayer solutions, but that is just a fair bit of hassle, I wrote one about a year ago, I'll dig it out for you to try if you don't have DBC Enhanced.

Do not anticipate the outcome of the engagement, let nature take it's course, and your tools will strike at the right moment - from "Tao of Jeet Kune Do" by Bruce Lee
Chaos
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 6th Apr 2003 16:04
Thanx that could be really useful for me to develop further.

Does anyone have anything they would like me to add to the game as i would like to get some research done and this is an easy wau of doing it.

Darkworlds are all around us
most of us are still half asleep
Current project : Creature tournament
Chaos
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 6th Apr 2003 18:09
one question how would i save the creature statistics like health = 50 into a folder and load it back up again when i needed it ?????

Darkworlds are all around us
most of us are still half asleep
Current project : Creature tournament
Kentaree
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 6th Apr 2003 18:48
Make an array that holds all of the creature's stats. Then assign values to each and use save array and load array to retrieve the info



To make it easier to read the code, assign a value to a descriptive name, like
a number for each monster, i.e fireMonster=0, waterMonster=1, and a number for each stat, i.e attack=0, defense=1 etc, so you can assign values using



or



then save it using



and load it using



Whatever I did I didn't do it!
Chaos
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 6th Apr 2003 19:04
could i use that if the game was turned off and then back on or do i need to save it to a specific file.

Darkworlds are all around us
most of us are still half asleep
Current project : Creature tournament
Blazer
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 6th Apr 2003 20:03 Edited at: 6th Apr 2003 20:03
they should slowly upgrade ex:

dragon: whelp, Small Dragon, Dragon, Large Dragon, Great Wyrm, ect...

Hydra: 1 head, 2 heads, ect...

either turn based or real time, (turn based is kind of cheep because what if it's lv 50 vs lv 2/ with real time the lv 2 guy at least has some chance even if it's runing around the ring the whole time)

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
Chaos
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 6th Apr 2003 20:42
@Blazer thanx for that idea i will certanly think about it.

Note 1 this will not be an rpg
Note 2 this will be a mixture of rpg battles with the training and raising and upgrading of a real time game

Question 1
How can i save and load a game after it has been turned off?

There will be turn based battles because my mind is made up and so is the engine.


hope for a reply

Darkworlds are all around us
most of us are still half asleep
Current project : Creature tournament
The Darthster
23
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 7th Apr 2003 00:22
You can save stuff to files using the OPEN TO WRITE command. The way to do this is as follows:

At the start of the game, check if the save file exists. IF FILE EXIST(...) = 1 etc

If it does, OPEN TO READ and get all the values out and into arrays. The arrays must be the same type, size and in the same order that you saved them in, otherwise your save file will mess up.

If it doesn't, then you'll have to start a new game. Fill the arrays with default data.

As the game is played, values in the arrays are changed.

When the game has ended, delete the save file. This is because OPEN TO WRITE will only create a file, not add to an existing one.

Immediately afterwards, OPEN TO WRITE a new save file with the same name.

Write all the data from the arrays to the file, in exactly the same order as you read them out, thus enabling you to read the new values out properly next time.

Done.

Remember, only delete the save file immediately before creating a new one. This prevents you losing the save file if the game crashes halfway through.

You probably should encrypt the save file somehow, so people can't just open it in notepad and change all the values.

Once I was but the learner,
now, I am the Master.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Apr 2003 08:57
u should make a simple game first that demonstrates most aspects of your RPG.

u sound like u have a big dream but no idea on how to achieve it.

good luck

Chaos
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 7th Apr 2003 21:15
Thanx for that darthstar so simple should have read that part in the help files more thourohgly my fault

@ indi i have made a basic game that demonstrates the battle engine but i neeed to do one that demonstrates the save and the training aspects and sotrry but i have to say this

IT IS NOT AN RPG

THANX

Darkworlds are all around us
most of us are still half asleep
Current project : Creature tournament
Kentaree
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 7th Apr 2003 23:22
My code saves all the stats to a specific file, in this case "stats.arr", but that can be changed by just changing the name. It is just saved as a data file, and can be loaded, and it can also be saved when it changes in-game, and when the player performs a save.

Whatever I did I didn't do it!
Chaos
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 8th Apr 2003 21:24
Thanx for the info Kentree helped me a lot.

Darkworlds are all around us
most of us are still half asleep
Current project : Creature tournament

Login to post a reply

Server time is: 2026-06-11 20:35:23
Your offset time is: 2026-06-11 20:35:23