Computer Science Canada

DnD Generated (Ill update frequently)

Author:  Flikerator [ Fri Jan 28, 2005 6:14 pm ]
Post subject:  DnD Generated (Ill update frequently)

This is the first version of it. Its NOT complete. It only has about 150 lines of code. I would really appreciate it if people would post any bugs that they find. Im not making this for school. Its for practise and to help my brother play Dnd. If you have any imput it is also apreciated. Ive only spent about 2 hours on it. Im working on it right now and for the next 4-5 hours.

EDIT "The Extension exe is not allowed"

Why cant I attach it?

Author:  cycro1234 [ Fri Jan 28, 2005 6:30 pm ]
Post subject: 

Try puting it in a winZip archive.

Author:  Flikerator [ Fri Jan 28, 2005 6:58 pm ]
Post subject: 

-a

UPDATED VERSION

|
|
|
V

Author:  Neo [ Fri Jan 28, 2005 9:01 pm ]
Post subject: 

Here's a bug for ya, I entered a few stats and chose my race and the program finished.. Confused

Author:  Bacchus [ Fri Jan 28, 2005 11:26 pm ]
Post subject: 

i dont think itys a bug, i just think thats all he has atm

Author:  Cervantes [ Sat Jan 29, 2005 8:52 am ]
Post subject: 

The rolls seem to be pretty high. I got an average of 89 (did it three times).
Also, you should make it so that you roll all the abilities and you can see them all, then assign the abilities to the various stats.

Author:  Flikerator [ Sat Jan 29, 2005 1:40 pm ]
Post subject: 

In due time. I worked on it some last night but a lot my power went out and it didn't come back on till this morning. Im just finishing up the class/ hp stuff then ill edit this post with the latest.

Note - Rolls are 3D3 plus 9 so stats between 12-18. Ill change the rolls once im finished. They are mostly for testing the stat mods, which I got working with about 80 lines of code...

Seeing the rolls and choosing takes to long to test stuff while im making it, I will change it once most of the stuff is done though.

EDIT - Im now adding the file. There is 337 lines in the prog. Lots of stuff you won't see. If you find any bugs please tell me so I can fix them, and anything you would like me to ad to it or alter just let me know and ill see what I can do.

Im working on the Name, Age, Description, appearence ext. Im going to have a printer friendly version when im done so it will be a quick way to make D&D chars.

UPDATED VERSION

|
|
|
V

Author:  Cervantes [ Sat Jan 29, 2005 4:30 pm ]
Post subject: 

Good good. Though it seems like it shouldn't take that many lines. Ah well, now (before your exam) is not the time to be learning new things Wink
If you're going to output the hitpoints per level each class gets, you should also say some other advantages / disadvantages of the class. As you have it now, the user would think barbarians are the best and wizard / sorcerer are the worst.
And, the ranger gets d10 on hit dice, IIRC.

-Cervantes

Author:  Flikerator [ Sat Jan 29, 2005 5:42 pm ]
Post subject: 

Thanks for the input and such. Lots of things take up a lot of code that shouldn't take up that much, but they do. Like for instance getting the Mods of the six stats to work. Heres he first 10 lines which covers just Str.

code:
Removed for security



The same For statement does it all to save on lines and space. There is also a bug with Alignment (9). I fixed it though but I don't think that one has the fix. Ill update within an hour.

Quote:
And, the ranger gets d10 on hit dice, IIRC.

What do you mean? The book says d8 "Cleric, Druid, Monk, Ranger" (Page 23 of Player handbook).

Author:  Flikerator [ Sat Jan 29, 2005 6:35 pm ]
Post subject: 

This is my last update....Untill tommorow!
Okay if you make your name too long then it gets kinda messed. Im going to take some countermesuares against it. It ends at the chart so its not a glitch or anything. Havn't added the Advantages/Disadvantages yet but I will. I want to get the fundementals in and then im going to add little "Help files" along the way. In the race chart it will have 8 ) Help File.

I had it before but I took it out untill I get everything in order with no bugs.

So as everytime I would appritaite feedback/advice/howto/suggestions and all that stuff. You cant make Cervantes do ALL the work 8)

UPDATED VERSION

|
|
|
V

Author:  Cervantes [ Sun Jan 30, 2005 9:06 am ]
Post subject: 

Flikerator wrote:
Cervantes wrote:
And, the ranger gets d10 on hit dice, IIRC.


What do you mean? The book says d8 "Cleric, Druid, Monk, Ranger" (Page 23 of Player handbook).

Really? Wierd. I thought it was d10. And dnd based games such as Baldur's Gate and Icewind Dale use d10 for the ranger. Whatever.. Confused

I have no idea how you are doing the rolls. Personally, I just roll four d6's and remove the lowest one.

Arrays are nice:
Turing:

var randNum : array 1 .. 4 of int
for i : 1 .. upper (randNum)
    randNum (i) := Rand.Int (1, 6)
    put randNum (i)
end for

var smallest := 7 %used to find the smallest value
for i : 1 .. upper (randNum)
    if randNum (i) < smallest then
        smallest := randNum (i)
    end if
end for

var stat := 0
for i : 1 .. upper (randNum)
    stat += randNum (i)
end for
stat -= smallest
put skip, stat

There's a messy way of doing it for one stat. For 6, you'd probably want to make stat into an array 1 .. 6 of int.

Author:  Flikerator [ Sun Jan 30, 2005 2:25 pm ]
Post subject: 

Im not going to update today or tommorow because I have to study non-turing for my exam tommorow, and for history on tuesday. I havn't abandoned the project. Im still open for suggestions and such. Thanks for all the help Cervantes. My dice roll is about 82 lines. It uses a loop and a for statement. The only time ive used arrays is for Polygons. Im going to redo the dice so you can see all of them and then choose which stat you want them all.

Untill Tuesday night, after my last exam.

Flikerator

Author:  Flikerator [ Tue Feb 01, 2005 2:18 pm ]
Post subject: 

Here is the latest version of my D&D Character Generater. I added music. Now im putting the option to have music and not have music at the begining because when I have the music everytime I enter something it flickers. Ironic with my name..Anyways. Yah if you know how to fix he flicker error or how I can play music without using a fork that would be much appreciated.

Current Lines: 552

REMOVED FOR MY NEW GAME ZOMBIE MASS'ACRES!

Author:  person [ Tue Feb 01, 2005 2:35 pm ]
Post subject: 

nothing flickers on my comp

Author:  Flikerator [ Tue Feb 01, 2005 2:36 pm ]
Post subject: 

The music is playing and it doesnt have a slight flicker when you enter a stat?

Author:  person [ Tue Feb 01, 2005 2:38 pm ]
Post subject: 

nothing is flickering

Author:  Flikerator [ Tue Feb 01, 2005 2:41 pm ]
Post subject: 

Oh ic. So it isnt any different when the music is playing to when its not?

Author:  person [ Tue Feb 01, 2005 2:44 pm ]
Post subject: 

Quote:
Oh ic. So it isnt any different when the music is playing to when its not?


there is no difference in the visuals between having music, or not having music
the only difference is that when i click "y" for "Would you like music?" is that music pops up

Author:  Flikerator [ Tue Feb 01, 2005 3:10 pm ]
Post subject: 

Alright thanks

Author:  Flikerator [ Wed Feb 02, 2005 9:19 am ]
Post subject: 

Im doing the height and weight. I made the chart but when I do the weight and I put something like: 4'10" It closes it because of the double quates. Is there anyway I can put the double quates in a put " " statement? For now I just have Two ' ' instead of "...

Author:  Flikerator [ Thu Feb 03, 2005 9:47 am ]
Post subject: 

Could a mod close this? Im going to do massive work on it untill its finished and then post it for bugs ext.

Author:  Cervantes [ Thu Feb 03, 2005 10:28 am ]
Post subject: 

Flikerator wrote:
Im doing the height and weight. I made the chart but when I do the weight and I put something like: 4'10" It closes it because of the double quates. Is there anyway I can put the double quates in a put " " statement? For now I just have Two ' ' instead of "...

Turing:

put "\"\'"

Author:  Flikerator [ Thu Feb 03, 2005 4:23 pm ]
Post subject: 

Oh thanks I thougt I was lost to the double single quotes. Merci.

This is the last update beofore I do a lot of work on it. Ive done a lot to reduce the code. The main reason I am posting this update is my Double Window I added. Any improvements and such that I should add (Colour changes) spelling, music that would fit stuff like that just let me know. Ill check back here a phew times a day.

It was 744, now its 660 lines. So the double window reduced it a lot.

Currently: 660 lines

IT HAS BEEN REMOVED FOR MY NEW GAME ZOMBIE MASS'ACRES!


: