
-----------------------------------
Flikerator
Fri Jan 28, 2005 6:14 pm

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?

-----------------------------------
cycro1234
Fri Jan 28, 2005 6:30 pm


-----------------------------------
Try puting it in a winZip archive.

-----------------------------------
Flikerator
Fri Jan 28, 2005 6:58 pm


-----------------------------------
-a

UPDATED VERSION

|
|
|
V 

-----------------------------------
Neo
Fri Jan 28, 2005 9:01 pm


-----------------------------------
Here's a bug for ya, I entered a few stats and chose my race and the program finished.. :?

-----------------------------------
Bacchus
Fri Jan 28, 2005 11:26 pm


-----------------------------------
i dont think itys a bug, i just think thats all he has atm

-----------------------------------
Cervantes
Sat Jan 29, 2005 8:52 am


-----------------------------------
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.

-----------------------------------
Flikerator
Sat Jan 29, 2005 1:40 pm


-----------------------------------
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 

-----------------------------------
Cervantes
Sat Jan 29, 2005 4:30 pm


-----------------------------------
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

-----------------------------------
Flikerator
Sat Jan 29, 2005 5:42 pm


-----------------------------------
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.

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.

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).

-----------------------------------
Flikerator
Sat Jan 29, 2005 6:35 pm


-----------------------------------
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 

-----------------------------------
Cervantes
Sun Jan 30, 2005 9:06 am


-----------------------------------
 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.. :?

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:

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.

-----------------------------------
Flikerator
Sun Jan 30, 2005 2:25 pm


-----------------------------------
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

-----------------------------------
Flikerator
Tue Feb 01, 2005 2:18 pm


-----------------------------------
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!

-----------------------------------
person
Tue Feb 01, 2005 2:35 pm


-----------------------------------
nothing flickers on my comp

-----------------------------------
Flikerator
Tue Feb 01, 2005 2:36 pm


-----------------------------------
The music is playing and it doesnt have a slight flicker when you enter a stat?

-----------------------------------
person
Tue Feb 01, 2005 2:38 pm


-----------------------------------
nothing is flickering

-----------------------------------
Flikerator
Tue Feb 01, 2005 2:41 pm


-----------------------------------
Oh ic. So it isnt any different when the music is playing to when its not?

-----------------------------------
person
Tue Feb 01, 2005 2:44 pm


-----------------------------------
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

-----------------------------------
Flikerator
Tue Feb 01, 2005 3:10 pm


-----------------------------------
Alright thanks

-----------------------------------
Flikerator
Wed Feb 02, 2005 9:19 am


-----------------------------------
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 "...

-----------------------------------
Flikerator
Thu Feb 03, 2005 9:47 am


-----------------------------------
Could a mod close this? Im going to do massive work on it untill its finished and then post it for bugs ext.

-----------------------------------
Cervantes
Thu Feb 03, 2005 10:28 am


-----------------------------------
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 "...

put "\"\'"


-----------------------------------
Flikerator
Thu Feb 03, 2005 4:23 pm


-----------------------------------
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!
