The Warring States of NPF

The Warring States of NPF (http://www.nuklearforums.com/index.php)
-   Dead threads (http://www.nuklearforums.com/forumdisplay.php?f=91)
-   -   Visual Basic DnD (http://www.nuklearforums.com/showthread.php?t=13763)

Karldar 04-04-2006 08:11 AM

Hi, names Karldar, cantcha tell, ha ha, oh man that was lame, and my delte/backspace button isnt wrking ac tually i'm just too lazy to mave my finger all the way up there. Anywys, I was wondering if there is anyone here who knows how to code in visual basic. i have been working on a program for awhile using the 3.5 DnD rules, you know, a fighting game of sorts. I have three different books, and not oneof them tells me how to use global variables, or atleasty how to use them effectively. If anone out there knows how to do this, please post, it would be great, and I'll even get you a finished copy of the program, maybe even copis of the updates. well, maybe not so much, but i hear people take false bribes. In any case, once i get it done, the first version will be sent out for anyone, i hear there is a site you can load programs for anyone to use for free, later installments, should they ever happen, would be exclusive, okay enough ranting. anyone who knows how to code, your help would be much apreciated, thnks.

By the way, not relating to this particular but then again it is almost, uh, how do we get experience points? I want to get to level 11 so i get improved precise shot. Then i'll multiclass to fighter, maybe get mounted archery or something. Then I think a few levels of arcane archer to finish it off. So do we like search the forums for side-quests or something, that would be kind of cool. If Brian or shiney would make a post with a riddle and we have to search through the nforums to find it, and we get experience points for it too, awesome.

And any word on the visual basic stuff to would help, thanks.

Major Blood 04-04-2006 09:27 AM

Welcome to the forums Karldar. I sugest you read the rules.

First off, that Level 1 thing under our name is just a user title. You can change it in the user cp.

Second, we have a thread for computer related help. You can find it here.

EDIT - Also, double posting = :gonk:

Melfice 04-04-2006 12:02 PM

Well, I do believe our new friend is referring to some sort of DnD system. In that case, it would be best to refer him to the RP section, would it not?

TheSpacePope 04-04-2006 01:17 PM

Kaldar, I like you already.

Welcome to the forums.

No multiclassing.

CrazyBen 04-04-2006 01:39 PM

Well, to get to Kaldar's question, if you mean just within one form, put them at the top above anything else, before you have any object-specific code. I don't know how you go about using variables that work across forms (yet).

erzengel1101 04-04-2006 01:51 PM

Won't 'form1.variablename' do the trick? It's been a while since I've used VB. But you could always just plant an invisible textbox on form1 and call 'form1.text1.text' or whatnot.

DarkCORN! 04-04-2006 04:48 PM

Grammar, punctuation, spelling, and spacing are good for you Kaldar. It makes people not want to kill you. I would play that game if you create it.

Karldar 04-05-2006 07:06 AM

About the double posting, sorry I'm an idiot and completely forgot about just editing it. If I do it again just yell at me or something. Same for the crappy grammar and all.


Some of you spelt my name wrong.

Kaldar - wrong

Karldar - right

Mainly in the case if someone else should log on and name themselves Kaldar, and if we are both on, get confusing, other than that, honest mistake.

form1.variablename seems kind of vague. That seems like it just tells the name of the form, and I think the only text allowed after the '.' is just show (i.e. form1.show) but I need to check up on that anyways. I also just got a big fat packet from my teacher on databases. Funny how he found 22 pages of databases after one day and its been about three weeks and he hasn't helped me at all on global variables.

I'll also go over the rules. Basically, every forum I've been on, the rules are exactly the same, but of course it wouldn't hurt to just check them out a bit. Thanks for your guys' help. And if you think of anything, tell me thanks.

erzengel1101 04-05-2006 11:47 PM

.show is a function of the form class, just as text is a function of the textbox class. You can access objects on other forms by simply appending the form name and the . operator to the name of the object, i.e. form1.text1 in my previous example. I'm not sure if declared variables of a form are considered objects in this manner as I've not used VB in quite a while. I can tell you that show is definitely not the only method of a form. :) Which version of VB are you using? 6.0 or .net?

By form1.variablename I meant that you have declared a variable on form1 named VariableName and are accessing it from a form other than form1.

Karldar 04-07-2006 07:41 AM

I have 6.0. My teacher is wondering whether or not we should get .net, but it's so close to the end of the year that he doesn't think it would be worth it, then I'm on my own for the summer unless I can convince him to let me have one of the VB books.

The program so far, I have a splash screen pop-up. Then it goes to the main form where you make your character, assign ability scores choose from limited armor and three feats. All characters are level one human fighters, just to keep it simple. I'll go more in depth after I complete my first version. Then the next form that comes up is the actual fighting part. I got initiatives to work, but, it didn't add the Dex bonus. So then I tried some random text to see if anything would be recognized, didnt get nothing. Tried a few different types of things so the variables could be used as global, but I just couldn't get it.

A cool thing, at least to me, is I added a button to take you to another form called Player's Handbook. And it's just a small tutorial of what is included in the program. And I copy and pasted some of the earlier 8-bit episodes and I'm using fighter as some comic relief. I think it's awesome. The first random battle was the perfect strip to use to explain Strength, Dex, and Con.

Did somebody want to move this thread to the computer help thread that major blood mentioned from before? There might be more people that frequent that thread so I can get some more help.


All times are GMT -5. The time now is 11:43 PM.

Powered by: vBulletin Version 3.8.5
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.