Welcome to the Builder Academy

Question Berserk skill question

More
04 May 2016 22:04 #5832 by JTP
Replied by JTP on topic Berserk skill question
Ah didnt see, on tablet there was no scroll bar

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

More
05 May 2016 21:27 - 05 May 2016 21:55 #5833 by JTP
Replied by JTP on topic Berserk skill question
It wont let me compile && !AFF_FLAGGED(victim, AFF_BERSERK) {

I also tryed (!AFF_FLAGGED(victim, AFF_BERSERK)) {
Last edit: 05 May 2016 21:55 by JTP.

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

More
05 May 2016 22:42 #5835 by thomas
Replied by thomas on topic Berserk skill question

JTP wrote: It wont let me compile && !AFF_FLAGGED(victim, AFF_BERSERK) {

I also tryed (!AFF_FLAGGED(victim, AFF_BERSERK)) {


try !AFF_FLAGGED(victim, AFF_BERSERK))

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

More
05 May 2016 22:53 #5837 by JTP
Replied by JTP on topic Berserk skill question
fight.c:734: error: expected identifier before ‘!’ token

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

More
06 May 2016 20:44 - 06 May 2016 20:45 #5848 by thomas
Replied by thomas on topic Berserk skill question
I think we're talking past one another here. The problem with the code from rudeboybrave is a missing paranthesis before the { in the altered line ( I added it here):

rudeboyrave wrote:

Code:
if (GET_HIT(victim) < (GET_MAX_HIT(victim) / 4)) { send_to_char(victim, "%sYou wish that your wounds would stop BLEEDING so much!%s\r\n", CCRED(victim, C_SPR), CCNRM(victim, C_SPR)); if (ch != victim && MOB_FLAGGED(victim, MOB_WIMPY)) do_flee(victim, NULL, 0, 0); } if (!IS_NPC(victim) && GET_WIMP_LEV(victim) && (victim != ch) && GET_HIT(victim) < GET_WIMP_LEV(victim) && GET_HIT(victim) > 0) && !AFF_FLAGGED(victim, AFF_BERSERK) ) { send_to_char(victim, "You wimp out, and attempt to flee!\r\n"); do_flee(victim, NULL, 0, 0); } break; }

maybe this

Count your paranthesis - they need to match up.
Last edit: 06 May 2016 20:45 by thomas.

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

More
06 May 2016 20:51 #5849 by JTP
Replied by JTP on topic Berserk skill question
Your extra ) gives me:

fight.c:734: error: expected identifier before ‘!’ token
fight.c:734: error: expected statement before ‘)’ token

without your extra ) i just get:

fight.c:734: error: expected identifier before ‘!’ token

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

Time to create page: 0.255 seconds