Jump to content

DRAGONMOUNT

A WHEEL OF TIME COMMUNITY

if (2B || !2B) { Thread.Post(this, Spam.Generate(SpamType.Any); }


Lord of 13

Recommended Posts

  • 2 weeks later...

Hey guys I have a problem with this program I'm making.  Here's the relevant code:

 

 

void truth (faction light, faction shadow){

 

    while (light.getValue() > shadow.getValue) {

          cout << "Shadow still fails..." << endl;

          shadow.setValue(shadow.getValue() + 1);

    }

 

}

 

Ok so my code looks ok to me.  Problem is truth never terminates no matter how many iterations it goes through.  Why is the Shadow so fail?

Link to comment
Share on other sites

So, to summarize, there is a random roll between 0 and the elemental level. Then, repeat this process to find the greatest roll for the higher ranks. Multiply this number by the number of elements in the weave, then multiply by the weave's value. (dunno exactly what that is; TP weaves have different strengths). Finally, subtract the opponent's rolls (which have already been multiplied by the amount of elements in the weave). Am I right? After that, it's the caster's problem.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...