• NOW LIVE! Into the Woods--new character species, eerie monsters, and haunting villains to populate the woodlands of your D&D games.

Longtooth Shifter Regen

[geek]
There are no functions in OO ;-)

I would have understood it because I have coded in it for years... In fact I used to teach it (C, C++ and *ugh* even C#) :-D
[/geek]
 
Last edited:

log in or register to remove this ad

[geek]
There are no functions in OO ;-)
[/geek]

There's no scope defined -- how do you know they aren't methods of an object defined offscreen? And yes, I called them functions, but then, I'm most used to C++, where "function" is what they are called.

We should shut down the geekery or take it offline. Certain people who frequent this site have the weird idea that it's about some dweeby game -- Widgeons and Wombat -- something like that.
 

Oh I was just stirring because you called them functions (as we all do), when OO purists would hassle us because they are properly methods :-) It reads like "good C", not hard OO C++.

Yes good call re dropping the thread-jack... Don't want the mods to get cranky ;-)

(And I thought it was called Pidgeons and Pandas)
 

As a good old school C programmer who just never got into OO, I think the code looks fine to me.
 


"It depends on what the meaning of the words 'is' is." ... Is the quote.

Oops, you are correct. I remembered that sentence incorrectly.

The funny thing was, I wasn't really sure so I googled it to confirm that my late night sleepy brain was working and found confirmations of the quote using "it". It seems others remembered incorrectly as well.
 

For the programming guy... I offer the following:

Code:
while(!END_OF_ENCOUNTER)
{

   // ... other stuff

   Damage = Damage + 2;
   if(HitPoints >= 0 && HitPoints <= (HitPoints/2) {
      Regenerate(2);

   // ... other stuff

}
B-)

Hmm, if I keep hitting myself and keep the encounter going, I can get my Damage arbitrarily high! No short rests for me!
 

Hmm, if I keep hitting myself and keep the encounter going, I can get my Damage arbitrarily high! No short rests for me!

End of the encounter is different than until you take a short rest. Sorry. Unless you continue attacking the things around you in a fit of absolute rage until your next fight after your first fight is complete then you don't get no arbitrarily high bonus. And in my campaigns I would probably punish your character with a gratuitous amount of bad karma for meta-gaming so heavily.
 


Hmm, if I keep hitting myself and keep the encounter going, I can get my Damage arbitrarily high! No short rests for me!

If the duration of an encounter long effects weren't also explicitly stated elsewhere as having a maximum of 5 minutes... Did you expect complete working pseudo code that explicitly states the entire flow of everything going on in the game?
 

Into the Woods

Remove ads

Top