Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Sirus

Pages: 1 ... 2298 2299 [2300] 2301 2302 ... 2462
34486
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: February 27, 2012, 08:30:17 pm »
So if z had a value of say, 5, the loop would run 5 times before breaking off on the sixth run.

34487
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: February 27, 2012, 08:24:09 pm »

Code: [Select]
for ( x  =  0 ; x  <  z ;  x++)
If I'm reading that right, it starts x at 0, checks to see if x is less than z. If it's true, it adds 1 to x and reruns the loop. If false, it breaks the loop and moves on. Do I have the general concept?

34488
General Discussion / Re: Hi
« on: February 27, 2012, 08:08:34 pm »
What fir would anyone birch about that?
Yew got me.

34489
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: February 27, 2012, 08:05:22 pm »
Thanks for the link. I can already tell that some of this stuff is gonna come in handy.

34490
General Discussion / Re: Things that made you go "WTF?" today o_O
« on: February 27, 2012, 08:01:55 pm »
What if you stick the recycle bin into the rec███▒▓ç*2} %hnO^¨!F
Spoiler (click to show/hide)

yeah... well done, you fucked up the universe to solve a question about computers.

Our job in the universe is done. Now does anyone happen to have a duck?
Why, do you want to weigh it?

34491
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: February 27, 2012, 08:00:45 pm »
I think you're looking for break?
That might work. I'd have to fiddle with it first, the only time we've used break so far is for switches.

New question though:
Code: [Select]
for(;;)Are double semi-colons just a shorthand for "code goes here", or is it an argument of some sort?

@ MZ: Very, VERY early groundwork. Currently a bunch of mostly empty functions, calling each other to make sure various switches and if-statements work. It does have a nice-looking title picture though :P

34492
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: February 27, 2012, 07:53:21 pm »
So today I had some free time at school, decided to start laying the groundwork for a dungeon crawler...
and it turns out that C doesn't have a String variable. WHAT.

According to the textbook (some 300-400 pages ahead of what we're currently working on), the way you work around it is with a modified char variable that stores the fake!String as a bunch of separate characters. Needless to say, I am not getting it to work properly yet.

Anyway, a more pertinent question: how do you tell the program to return to a different line or section of code? See, I only want players to use letters for their name (figuring out how to make this work led to the aforementioned discovery), but I don't want to simply shut down the program if the name is invalid. I assume it's some variation of "goto", but the exact syntax eludes me.

34493
General Discussion / Re: Things that made you go "WTF?" today o_O
« on: February 27, 2012, 02:57:04 am »
I shift-delete everything. Never made a mistake yet.

*knocks on wood*

34494
General Discussion / Re: Things that made you go "WTF?" today o_O
« on: February 27, 2012, 02:51:53 am »
*Empties recycle bin*

"Deleting 34,708 items (2.03 GB)"


I forgot again, didn't I?
Use Shift+Delete if you're sure you won't need it. Skips the recycle bin.
Poor idea, my friend once deleted this way his important and large project (2 weeks of work + 40 hours of rendering), together with all backups (yes, he somehow managed to delete project, backup and second backup in the second hard drive in one steep).
If he screwed up that badly, I'm not sure he should be allowed near a computer anymore <.<

34495
General Discussion / Re: Things that made you go "WTF?" today o_O
« on: February 27, 2012, 02:45:50 am »
That's some dedicated hatred.
Heh, I'm not really a fan of the comic either. Doesn't mean I run hate blogs.

34496
Forum Games and Roleplaying / Re: 4e D&D Campaign
« on: February 26, 2012, 10:09:17 pm »
I don't think I have anything left after buying the halberd. I don't really have anything to sell either.

ETA: I'm refering to my starting money here. I haven't spent any of the gold we earned.

34497
Forum Games and Roleplaying / Re: 4e D&D Campaign
« on: February 26, 2012, 09:34:14 pm »
Yeah, the halberd was working surprisngly well. I'm gonna need to take another feat or something to get it's damage potential up, though.

Also, I AM LIGHTNING DWARF! FEAR ME!
...and pass me a comb. My beard is sticking straight out in all directions.

34498
Forum Games and Roleplaying / Re: 4e D&D Campaign
« on: February 26, 2012, 05:09:59 pm »
Joining after I get some snackage.

34499
General Discussion / Re: Hi
« on: February 26, 2012, 05:08:36 pm »
And there I'd almost forgotten about the treepuns.
They refuse to leaf you alone. :)

You're a real sap, y'know.
Do we really have to branch off into this?
It's in the root of all Bay12'ers. We are the seed of the pun plant.
Fir the love of David McDavid! Just think about what people wood say if they saw these puns.
They'd say "Oak-ay, I'm just gonna walk away from you now."

34500
Other Games / Re: Sit-and-watch games/simulations
« on: February 26, 2012, 05:05:06 pm »
I'm gonna sit-and-watch this thread :P
Gonna go on a google spree later.

Pages: 1 ... 2298 2299 [2300] 2301 2302 ... 2462