Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Sound Effects
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> Creative Corner
View previous topic :: View next topic  
Author Message
J.A.R.S.
In umbram deo, ex nihilo...




Joined: 11 May 2005
Posts: 451
Location: Under the rainbow...

PostPosted: Sun Feb 18, 2007 3:01 pm    Post subject: Reply with quote

Chaotix, when I came back, I too was concerned about the "going off topic" thing... but truth is, not only is it somewhat interesting (as in, it gets more people involved into a thread that wasn't going to live long) but its also one of the most active kind of threads lately around here.

And I still think midi has its place in OHR. Just like everywhere else. I'm personally building myself a studio in midi, of course, using other databases of sounds, but still, its midi.
Back to top
View user's profile Send private message
Newbie_Power




Joined: 04 Sep 2006
Posts: 1762

PostPosted: Sun Feb 18, 2007 3:10 pm    Post subject: Reply with quote

Code:

#DEFINE CHAOTIX 0
#DEFINE NAZI_MODERATOR 1

int check_for_truth()
{
  if (CHAOTIX != NAZI_MODERATOR)
   {
      make_shut_up(CHAOTIX);
   };
}
Back to top
View user's profile Send private message
J.A.R.S.
In umbram deo, ex nihilo...




Joined: 11 May 2005
Posts: 451
Location: Under the rainbow...

PostPosted: Sun Feb 18, 2007 3:24 pm    Post subject: Reply with quote

Code:
For inttrigger  = 1 to 999
 If anger > 1
   slap(Chaotix)
   decrement(anger)
 endif
next inttrigger
Back to top
View user's profile Send private message
Newbie_Power




Joined: 04 Sep 2006
Posts: 1762

PostPosted: Sun Feb 18, 2007 3:26 pm    Post subject: Reply with quote

o_O

Wouldn't it be better if you used a while loop?

Code:

Anger = 32767

do while Anger > 1
 slap(Chaotix)
 Anger = Anger - 1
loop


Last edited by Newbie_Power on Sun Feb 18, 2007 3:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
J.A.R.S.
In umbram deo, ex nihilo...




Joined: 11 May 2005
Posts: 451
Location: Under the rainbow...

PostPosted: Sun Feb 18, 2007 3:34 pm    Post subject: Reply with quote

I wanted to make sure we don<T slap him over 900 times... otherwise, DO / Loop is the way to go instead of a while XD

EDIT: BTW nice anger value Wink
Back to top
View user's profile Send private message
Newbie_Power




Joined: 04 Sep 2006
Posts: 1762

PostPosted: Sun Feb 18, 2007 3:39 pm    Post subject: Reply with quote

Quote:
I wanted to make sure we don<T slap him over 900 times...
...

...

...

What's the fun in that? >.<

Of course, if you only wanted to slap him ~900 times, just modify the anger value in my code to start out at 900 or 901.

And I changed the code. I can't remember how QBasic syntax works. I am used to C (even if I haven't programmed anything big with it).
Back to top
View user's profile Send private message
J.A.R.S.
In umbram deo, ex nihilo...




Joined: 11 May 2005
Posts: 451
Location: Under the rainbow...

PostPosted: Sun Feb 18, 2007 3:44 pm    Post subject: Reply with quote

C's operator structure is better indeed, but I have turned my back on pro-coding career a couple years ago so I dropped C and C++ for Basic-family languages :S Serves me better so far though.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> Creative Corner All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group