Welcome to the Builder Academy

Question dam_message increase

More
28 Jan 2017 20:29 #6552 by Fubar
dam_message increase was created by Fubar
I am trying to increase the dam_messages. but if it is more than 8 its crashes. Is there a define I am missing?

Code:
{ "$n #w tickles $N!", "Your #w tickles $N!", "$n #w tickles you!" }, { "$n #w scratches $N!", "Your #w scratches $N!", "$n #w scratches you!" }, { "$n #w grazes $N!", "Your #w grazes $N!", "$n #w grazes you!" }, { "$n #w hits $N!", "Your #w hits $N!", "$n #w hits $N!" }, { "$n #w injures $N!", "Your #w injures $N!", "$n #w injures you!" }, { "$n #w dices $N!", "Your #w dices $N!", "$n #w dices you!" }, { "$n #w minces $N!", "Your #w minces $N!", "$n #w minces you!" }, { "$n #w flays $N!", "Your #w flays $N!", "$n #w flays you!" }, { "$n #w decimates $N!", "Your #w decimates $N!", "$n #w decimates you!" }, { "$n #w MAIMS $N!", "Your #w MAIMS $N!", "$n #w MAIMS you!" }, { "$n #w MASSACRES $N!", "Your #w MASSACRES $N!", "$n #w MASSACRES you!" }, { "$n #w SHREDS $N!", "Your #w SHREDS $N!", "$n #w SHREDS you!" }, { "$n #w MANGLES $N!", "Your #w MANGLES $N!", "$n #w MANGLES you!" }, { "$n #w DEMOLISHES $N!", "Your #w DEMOLISHES $N!", "$n #w DEMOLISHES you!" }, { "$n #w MUTILATES $N!", "Your #w MUTILATES $N!", "$n #w MUTILATES you!" }, { "$n #w DEVASTATES $N!", "Your #w DEVASTATES $N!", "$n #w DEVASTATES you!" }, { "$n #w Smokes $N!", "Your #w Smokes $N!", "$n #w Smokes you!" }, { "$n #w BATTERS $N!", "Your #w BATTERS $N!", "$n #w BATTERS you!" }, { "$n #w DISSOLVES $N!", "Your #w DISSOLVES $N!", "$n #w DISSOLVES you!" }, { "$n #w <+>LIQUIFIES<+> $N!", "Your #w <+>LIQUIFIES<+> $N!", "$n #w <+>LIQUIFIES<+> you!" }, { "$n #w ***DISFIGURES*** $N!", "Your #w ***DISFIGURES*** $N!", "$n #w ***DISFIGURES*** you!" }, { "$n #w |||OBLITERATE||| $N!", "Your #w |||OBLITERATE||| $N!", "$n #w |||OBLITERATE||| you!" }, { "$n #w :::::ANNIHILATES::::: $N!", "Your #w :::::ANNIHILATE::::: $N!", "$n #w :::::ANNIHILATES::::: you!" }, { "$n #w >>>DESTROYS<<< $N!", "Your #w >>>DESTROYS<<< $N!", "$n #w >>>DESTROYS<<< you!" }, { "$n #w ###ERADICATES### $N!", "Your #w ###ERADICATES### $N!", "$n #w ###ERADICATES### you!" }, { "$n #w |<|<|<CREMATES>|>|>| $N!", "Your #w |<|<|<CREMATES>|>|>| $N!", "$n #w |<|<|<CREMATES>|>|>| $N!" }, { "$n #w *R*A*V*A*G*E*S* $N!", "Your #w *R*A*V*A*G*E*S* $N!", "$n #w *R*A*V*A*G*E*S* you!" }, { "$n #w does UNSPEAKABLE damage to $N!", "Your #w does UNSPEAKABLE damage to $N!", "$n #w does UNSPEAKABLE damage to you!" }, { "$n #w >>->>- C R U C I F Y -<<-<< $N!", "Your #w >>->>- C R U C I F Y -<<-<< s $N!", "$n #w >>->>- C R U C I F Y -<<-<< you!" }, { "$n #w does UNGODLY things to $N!", "Your #w does UNGODLY things to $N!", "$n #w does UNGODLY things to you!" }, { "$n #w |<|<|<DisintegrateS>|>|>| $N!", "Your #w |<|<|<DisintegrateS>|>|>| $N!", "$n #w |<|<|<DisintegrateS>|>|>| you!" }, { "$n #w does UNHOLY thing to $N+'s body!", "Your #w does UNHOLY thing to $N+'s body!", "$n #w does UNHOLY things to your body!" }, { "$n #w ###DISEMBOWELS### $N anal cavity!", "Your #w ###DISEMBOWELS### $N anal cavity!", "$n #w ###DISEMBOWELS### your anal cavity!" }, { "$n #w BEHEADS $N!", "Your #w BEHEADS $N!", "$n #w BEHEADS you!" }, { "$n #w does IRREPARABLE things to $N!", "Your #w does IRREPARABLE things to $N!", "$n #w does IRREPARABLE things to you!" }, { "$n #w <x><x><Glaciates><x><x> $N!", "Your #w <x><x><Glaciates><x><x> $N!", "$n #w <x><x><Glaciates><x><x> you!" }, { "$n #w does Unbelievable things to $N!", "Your #w does Unbelievable things to $N!", "$n #w does Unbelievable things to you!" }, { "$n #w does Unthinkable things to $N!", "Your #w does Unthinkable things to $N!", "$n #w does Unthinkable things to you!" }, { "$n #w does TOTALLY, UTTERLY, INCONCEIVABLE things to $N! soul!", "Your #w does TOTALLY, UTTERLY, INCONCEIVABLE things to $N! soul!", "$n #w does TOTALLY, UTTERLY, INCONCEIVABLE things to your soul!" }, { "$n #w -(*)- AToMiZES -(*)- $N!", "Your #w -(*)- AToMiZES -(*)- $N!", "$n #w -(*)- AToMiZES -(*)- you!" }, { "$n #w does !!! TOTALLY UNFAIR !!! damage to $N!", "Your #w does !!! TOTALLY UNFAIR !!! damage to $N!", "$n #w does !!! TOTALLY UNFAIR !!! damage to you!" }, { "$n #w ___BURNINATES___ $N!", "Your #w ___BURNINATES___ $N!", "$n #w ___BURNINATES___ you!" }, { "$n #w does ..:: A S T R O N O M I C A L ::.. damage $N!", "Your #w does ..:: A S T R O N O M I C A L ::.. damage $N!", "$n #w does ..:: A S T R O N O M I C A L ::.. damage to you!" }, { "$n #w does MYTHOLOGICAL -*- PUNISHMENT to $N!", "Your #w does MYTHOLOGICAL -*- PUNISHMENT to $N!", "$n #w does MYTHOLOGICAL -*- PUNISHMENT to you!" } }; w_type -= TYPE_HIT; /* Change to base of table with text */ if (dam == 0) msgnum = 0; else if (dam <= 1) msgnum = 1; else if (dam <= 2) msgnum = 2; else if (dam <= 3) msgnum = 3; else if (dam <= 4) msgnum = 4; else if (dam <= 5) msgnum = 5; else if (dam <= 6) msgnum = 6; else if (dam <= 7) msgnum = 7; else if (dam <= 8) msgnum = 8; else if (dam <= 9) msgnum = 9; else if (dam <= 10) msgnum = 10; else if (dam <= 11) msgnum = 11; else if (dam <= 12) msgnum = 12; else if (dam <= 13) msgnum = 13; else if (dam <= 14) msgnum = 14; else if (dam <= 15) msgnum = 15; else if (dam <= 16) msgnum = 16; else if (dam <= 17) msgnum = 17; else if (dam <= 18) msgnum = 18; else if (dam <= 19) msgnum = 19; else if (dam <= 20) msgnum = 20; else if (dam <= 21) msgnum = 21; else if (dam <= 22) msgnum = 22; else if (dam <= 23) msgnum = 23; else if (dam <= 24) msgnum = 24; else if (dam <= 25) msgnum = 25; else if (dam <= 26) msgnum = 26; else if (dam <= 27) msgnum = 27; else if (dam <= 28) msgnum = 28; else if (dam <= 29) msgnum = 29; else if (dam <= 30) msgnum = 30; else if (dam <= 31) msgnum = 31; else if (dam <= 32) msgnum = 32; else if (dam <= 33) msgnum = 33; else if (dam <= 34) msgnum = 34; else if (dam <= 35) msgnum = 35; else if (dam <= 36) msgnum = 36; else if (dam <= 37) msgnum = 37; else if (dam <= 38) msgnum = 38; else if (dam <= 39) msgnum = 39; else if (dam <= 40) msgnum = 40; else if (dam <= 41) msgnum = 41; else if (dam <= 42) msgnum = 42; else if (dam <= 43) msgnum = 43; else if (dam <= 44) msgnum = 44; else msgnum = 45;

Please Log in or Create an account to join the conversation.

More
30 Jan 2017 01:33 #6553 by WhiskyTest
Replied by WhiskyTest on topic dam_message increase
I copied your code in, right over the top of the stock code and didn't get any crashes..
Have you got an error report or debug to see what is breaking?

You easily avoid a slash from the cityguard.
Your pound >>->>- C R U C I F Y -<<-<< s the cityguard!

11H 103M 82V (news) >

The cityguard cools you with the breeze of his missed slash at you.
Your pound does UNSPEAKABLE damage to the cityguard!

11H 103M 82V (news) >

You manage to dodge the cityguard's slash and laugh, HA!
Your pound does UNSPEAKABLE damage to the cityguard!
The cityguard is mortally wounded, and will die soon, if not aided.

11H 103M 82V (news) >

You pound on the cityguard with reckless abandon when you realize that he is dead.
The cityguard is dead! R.I.P.
You receive 5832 experience points.
You rise a level!
Your blood freezes as you hear the cityguard's death cry.

Please Log in or Create an account to join the conversation.

More
30 Jan 2017 11:30 #6555 by JTP
Replied by JTP on topic dam_message increase
No problem here either

Please Log in or Create an account to join the conversation.

More
30 Jan 2017 22:45 #6557 by Fubar
Replied by Fubar on topic dam_message increase
I think it fixed itself lol. doing other edits, recompiled and it works.

error just said seg fault then quit.

Please Log in or Create an account to join the conversation.

More
30 Jan 2017 23:25 #6558 by WhiskyTest
Replied by WhiskyTest on topic dam_message increase
Cool, sounds like you ___BURNINATED___ the error :D

Please Log in or Create an account to join the conversation.

Time to create page: 0.203 seconds