Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: obon7 on November 28, 2011, 09:07:12 pm

Title: Dungeons and Dragons
Post by: obon7 on November 28, 2011, 09:07:12 pm
I just had this epiphany as I was going to bed last night after along session of D&D and realized what if I put this on a calculator.
                                 How the game will work
You have team of three players, you are not designated as any specific person
Combat is also the same as in D&D with rolling a d20 (randint(1,20) then dealing damage
most likely all other things will be the same (perception, Knowledge, healing etc.)
Instead of leveling, after each battle you gain experience which can be used to upgrade/learn powers and also enhance basic stats
most likely comabat will be on a grid in which you move your team around and cast spells like in D&D
 reply with any ideas also if anyone wants to help let me know and I can have some coding for you to do  :thumbsup:

I will post 2 polls (1 on classes of the team and another on if you should be designated character)
THX
P.S. for any other nerds the campaign I was plating was the Sellswords of Punjar LOL ._.
Title: Re: Dungeons and Dragons
Post by: hellninjas on November 28, 2011, 09:54:09 pm
This sounds nice. (As I have made alot of Rpg's in basic)
But first things first, what language will it be in? (Axe, Basic, z80, etc,...)
Title: Re: Dungeons and Dragons
Post by: obon7 on November 28, 2011, 10:58:26 pm
most likely axe but c++ or java doesn't seem to poular in this community so I might make it for those instead just to to do something new
Title: Re: Dungeons and Dragons
Post by: hellninjas on December 03, 2011, 07:13:14 pm
I would recommend Axe, most people know and use it, and sometimes others take a while to switch away fomr a language!
Along with the fact that more people stare at the Axe Forums, so you might just get a bit more attention :D
This is just a reccomendation, do it the way YOU would like it :D
If I can help in any way just ask! :D
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 07:44:36 pm
Sounds awesome! Oh and just so you know if you use axe, randint(1,20) would look like rand^19
, It's a little different in axe, and the 19 is because in axe the calc starts counting from 0 not 1 :) Good luck!
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 07:46:30 pm
Saintrunner, wouldn't that probably just be
1+rand^20
to do exactly that?
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 07:47:56 pm
rand^19 is optimized a little more if I'm not mistaken

and 1+rand^20...isn't that 21?
Title: Re: Dungeons and Dragons
Post by: hellninjas on December 03, 2011, 07:48:02 pm
Yes it could also be rand^20+1->(Variable)
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 07:48:28 pm
rand^19 is optimized a little more if I'm not mistaken
Wouldn't that be 0-18?

I know constants are most optimized at the end, but I wasn't sure how axe would interpret it :P
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 07:49:35 pm
no rand^19 is a random interval between 0 and 19, which is 20 numbers. And it's optimized

I've always used that, But it doesn't matter
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 07:52:11 pm
Oh... Either I just screwed up robogun's enemy spawn engine by doing it my way, I forgot that it worked that way,... (or maybe even your wrong >:D :P)

Also 0-19? I thought RandInt(1,20) would be... 1-20 :P
Title: Re: Dungeons and Dragons
Post by: Builderboy on December 03, 2011, 07:53:03 pm
no rand^19 is a random interval between 0 and 19, which is 20 numbers. And it's optimized

You might want to check your math, rand^19 is indeed 0-18.  If you wanted a number from 1-20 you would do rand^20+1
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 07:54:24 pm
In axe it counts from 0-up. so to get 20 you have to put a 19 cuz it includes 0. And I guess you could do randint(1,20) (If it works I don't think it does though) But rand^19 is still more optimized, so I suggest using that

Edit: OH your right! I meant 21!! Opps lol! And thats easy math
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 07:55:01 pm
I did 1+rand^20 cuz I thought it rand^20+1 might be interpreted as rand^21, but axe order of ops and stuff still kinda confuse me XP

Also i think randint( doesn't work, or at least not the same.

Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 07:56:31 pm
Yeah me too, and yeah I screwed up my math, I'm so tired sorry :P it is rand^20+1 or could it just be rand^21?
Title: Re: Dungeons and Dragons
Post by: Builderboy on December 03, 2011, 07:56:51 pm
Axe does order of operations from left to right, no questions asked (outside of parenthesis) . If you want a number from 1-20, you should do rand^20+1

EDIT: and Rand^21 will give you a number from 0-20
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 07:58:19 pm
*Face slap*...that is to my face lol
Title: Re: Dungeons and Dragons
Post by: Builderboy on December 03, 2011, 07:58:54 pm
Do you know what the ^ operator does?
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 07:59:09 pm
I was about to say that (except the first part :P) but you ninja'd me.

Still, I'm sometimes unsure so sometimes I end up using probably more parentheses then I need to D:

Edit: Responding to builderboy's post 2 posts above :P
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 08:01:34 pm
WAIT back to the original point, rand^19 is still 20 numbers! so if you are setting something to chance, it doesn't matter what numbers you use!
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 08:02:13 pm
0-19 is 20 numbers (with rand^20), but if you specificly need 1-20, add a +1
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 08:02:48 pm
0-19 is 20 numbers, but if you specificly need 1-20, add a +1

Theres your answer obon7! Good luck :)
Title: Re: Dungeons and Dragons
Post by: Builderboy on December 03, 2011, 08:39:08 pm
WAIT back to the original point, rand^19 is still 20 numbers!

It is not, that gives you 0-18, which is 19 numbers. 
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 08:44:54 pm
But axe counts from 0, so 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
There are 20 numbers! 0 counts with axe! right?
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 08:45:42 pm
But rand^19 counts 0 as a number
Title: Re: Dungeons and Dragons
Post by: Builderboy on December 03, 2011, 08:47:37 pm
rand^19 cannot give you the number 19, it can only produce numbers 0-18.  Try it if you don't believe me.  Rand^19 produces *only* 19 different numbers, *including* zero
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 08:48:35 pm
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 is 19 numbers. Rand^19 chooses from 19 numbers
Title: Re: Dungeons and Dragons
Post by: Builderboy on December 03, 2011, 08:49:45 pm
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 is 19 numbers. Rand^19 chooses from 19 numbers
Exactly
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 08:52:22 pm
Ahh, I get it! I was lead to believe that is includes 19! Thanks :)

So then could it still just be rand^20?
Title: Re: Dungeons and Dragons
Post by: Builderboy on December 03, 2011, 08:53:09 pm
Lol now that we have that sorted out, we can get back on topic :P
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 08:54:30 pm
Ahh, I get it! I was lead to believe that is includes 19! Thanks :)

So then could it still just be rand^20?
Rand^20 for 0-19, 20 numbers
[/kinda-offtopic]

[dungeons-and-dragons]
Title: Re: Dungeons and Dragons
Post by: saintrunner on December 03, 2011, 08:55:48 pm
Can someone post a video of d&d ? I don't think I know it... lol
Title: Re: Dungeons and Dragons
Post by: epic7 on December 03, 2011, 08:56:29 pm
Me neither. I just know a Spongebob came based on the episode Dunces and Dragons :P, not teh real deal.