Bay 12 Games Forum
Finally... => Forum Games and Roleplaying => Roll To Dodge => Topic started by: qwertyuiopas on September 02, 2008, 05:14:35 pm
-
I have an idea for an RTD generator that takes(from a text file) a list or creatures then rolls for them and puts it in a text file so it woud be:
23 goblin A
1 random_person A
1 other_random_person O
becomes
goblin1:2
goblin2:5,2
goblin3:1
goblin4:4,5,1
and so on.
the idea would be to allow people to make large rushes of people a tiny bit easier. Of course it would need a way of representing what type of actiion(I used A as an attack) and maye a definition of what results trigger an additional roll.
maybe
[A:ATTACK]
[3:DODGE:-1]
[4:DODGE]
[5:DODGE:1]
[6:RUBBLECHECK]
[:DODGE]
[1:DAMAGE:2]
[2:DAMAGE:1]
[3:DAMAGE]
[4:DAMAGE]
[5:DAMAGE:1]
[6:RUBBLECHECK:-2]
[:RUBBLECHECK]
[3:SMALLRUBBLE]
[4:RUBBLE:-1]
[5:RUBBLE]
[6:HUGERUBBLE]
and so on....
The idea would be to make a flexible RTD mass-rolling engine for games like the mad wizard arena that would give the data in forum format without the description.
I will probably start working on one sometime but the idea here is to comment and make suggestions and possible end up with the actual program.
-
wait. so you want to make a program that will roll x-sided dice for a bunch of entries in a text file? That is easy as pie.
the hard part about the Roll games is to come up with funny results and that is hardly automatable.
-
I would like to make more of a raws style system for automated attack-dodge-damage rolls for things like the 60 goblin assault seen in the mad wizard arena RTD.
I realized if the types of rolls were defined in a file, and possible actions were associated with a unique character, it would be much easier to make sure that you roll for EVERY person and NPC as well as writing a bit of the post.
Edit: I have one started. all it does so far is open the files, but it's a start, right?
-
This fad really has grown to a large enough size here. Especially now that mass rolls are being programed.
I doubt this game would do so well without the newfound creativity of df players.
-
Not to mention one game already runs in a DF universe...
Yeah, the game pretty much withered away everywhere else. I saw quite a few started up on different forums, but most failed due to sudden "total interest failure".
-
Well, I have it checking and opening the files then trying to load the data, although all it can do is recognise the states and load them into a linked list while having exactly 0 code for the rolls...
If anyone wants what I currently have, it is here (http://www.mediafire.com/download.php?ryap4vfj1r1).
If ANYONE has ANY suggestions of how to do it better/easier/faster, I would be quite happy.
-
I doubt this game would do so well without the newfound creativity of df players.
Underwear golem!
-
This should come with at least an in text file, an out text file, and a data file.
Step by step instructions would be apreciated
-
It currently only opens the in and out files and crudely starts to read the data but never gets far with it.
Edit: I have started on a much simpler but underpowered version where the format is
(7 chars)(description of up to 120 chars)
the 7 chars are the current index then the indexes for each roll.
%This system is simple to implement and could be created by an external program, but it will be a placeholder, so it doesn't matter.
Not quite done yet with the rolling...
-
Okay, this actually deserves a new post(since I don't think edits move the topic)
Well I reduced it to single-line definitions and it actually works quite well for what it does.
download link (http://www.mediafire.com/download.php?3ofzydbsloi)
Input format:
(action character)(Name)
Data format:
(7 chars of ID, next ID if number = this)(short description of up to 248 chars)
My example is not fery good, it needs better data options ;)
But it shows what can be done and how to do it.
- is used as none for both filenames and data ids.
Edit: extended data sample showing the use of useless rolls as descriptors
ab-----Tries to do nothing!
bccddeeBut somehow fails at that! Massive damage evasion roll!
c------It took MASSIVE DAMAGE to the point of death!
d------It barely avoided death.
e------It dodged he damage perfectly!
Edit again: sample output
Goblin 1:
1:Tries to do nothing!
4:But somehow fails at that! Massive damage evasion roll!
4:It barely avoided death.
Goblin 2:
6:Tries to do nothing!
Goblin 3:
3:Tries to do nothing!
...
Goblin 5:
1:Tries to do nothing!
4:But somehow fails at that! Massive damage evasion roll!
6:It barely avoided death.
...
-
Help?
I am having a pronlem where
char datadata[256*256][256];
causes the program to crash instantly when run but
char datadata[256][256];
doesn't.
Any help would be GREATLY appreciated.
-
Run the program with a batch file, as so:
[FILENAME].exe (or whatever the extension is)
PAUSE
You should see an error, assuming it's console-based. Best of luck.
Perhaps that's just invalid syntax?
-
The problem is that it gives me the standard windows
annoying useless error report, so running it from the console doesn't help.