Welcome to the Builder Academy

Question Adding Immortal level checking for greeting message

More
03 Jan 2014 06:31 - 03 Jan 2014 07:50 #4612 by aredcloak19
As the subject says, I'm trying to do a greeting message for my zone when you enter the room with your character. Everything else works for the message before the immortal welcome message. Any help in fixing the immortal part is greatly appreciated by me and others if they use the trigger.

aredcloak19

Code:
1: if %actor.is_pc% 2: wait 1 sec 3: if %actor.varexists(muggle_greeting)% 4: if %actor.level% >= 0 || %actor.level% == 30 5: if %self.vnum% == 20600 && %actor.sex% == male 6: say Welcome back %actor.name%. Read through these rooms whenever you need a refresher. 7: end *male welcome back message 8: if %self.vnum% == 20601 && %actor.sex% == female 9: say Welcome back %actor.name%. Read through these rooms whenever you need a refresher. 10: end *female welcome back message 11: end *ending level checking of mortal player 12: if %actor.level% >= 31 || %actor.level% == 34 13: if %self.vnum% == 20600 && %actor.sex% == male 14: say Welcome back %actor.name%. Read through these rooms whenever you need a refresher. 15: end *male welcome back message 16: if %self.vnum% == 20601 && %actor.sex% == female 17: say Welcome back %actor.name%. Read through these rooms whenever you need a refresher. 18: end *female welcome back message 19: end *ending level checking of immortal player 20: else 21: say Welcome to The Builder Academy %actor.name%. 22: wait 1 sec 23: say Within this zone you can learn all the immortal commands and how to build. 24: wait 2 sec 25: say This zone is like a newbie zone, except for gods. All you have to do is walk through the zone and read every room description. 26: wait 3 sec 27: say Be sure to do everything the room descriptions tell you to do. You should read and comprehend everything contained within these walls. 28: set muggle_greeting 1 29: remote muggle_greeting %actor.id% 30: end 31: end

I'm the one that people say, "How did you break this and what did you do to break it."
Last edit: 03 Jan 2014 07:50 by aredcloak19.

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

More
03 Jan 2014 11:29 - 03 Jan 2014 11:30 #4613 by Kyle
It seems like you are sending the same message no matter the case; so I can only guess what you are trying to do.

If I'm guessing correctly, this may help.

Code:
1: if %actor.is_pc% 2: wait 1 sec 3: if %actor.varexists(muggle_greeting)% - 4: if %actor.level% >= 0 || %actor.level% == 30 + 4: if %actor.level% >= 0 && %actor.level% <= 30 5: if %self.vnum% == 20600 && %actor.sex% == male 6: say Welcome back %actor.name%. Read through these rooms whenever you need a refresher. 7: end *male welcome back message 8: if %self.vnum% == 20601 && %actor.sex% == female 9: say Welcome back %actor.name%. Read through these rooms whenever you need a refresher. 10: end *female welcome back message 11: end *ending level checking of mortal player - 12: if %actor.level% >= 31 || %actor.level% == 34 + 12: if %actor.level% >= 31 && %actor.level% <= 34 13: if %self.vnum% == 20600 && %actor.sex% == male 14: say Welcome back %actor.name%. Read through these rooms whenever you need a refresher. 15: end *male welcome back message 16: if %self.vnum% == 20601 && %actor.sex% == female 17: say Welcome back %actor.name%. Read through these rooms whenever you need a refresher. 18: end *female welcome back message 19: end *ending level checking of immortal player 20: else 21: say Welcome to The Builder Academy %actor.name%. 22: wait 1 sec 23: say Within this zone you can learn all the immortal commands and how to build. 24: wait 2 sec 25: say This zone is like a newbie zone, except for gods. All you have to do is walk through the zone and read every room description. 26: wait 3 sec 27: say Be sure to do everything the room descriptions tell you to do. You should read and comprehend everything contained within these walls. 28: set muggle_greeting 1 29: remote muggle_greeting %actor.id% 30: end 31: end
Last edit: 03 Jan 2014 11:30 by Kyle.

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

More
03 Jan 2014 12:00 #4615 by aredcloak19
Thanks again, Kyle for looking at it. I had nohassle command on my character so I didn't see any of the messages that I was going in and out of the room.

aredcloak19

I'm the one that people say, "How did you break this and what did you do to break it."

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

More
03 Jan 2014 21:08 #4619 by Kyle
Hah! I've been caught with that many times!

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

More
04 Jan 2014 06:00 #4622 by krell
I find it interesting that you had the level range with the conditional and in your original version of the trigger seen here tbamud.com/forum/3-building/3748-checkin...or-gender-in-trigger , but then changed it to "if %actor.level% >= 0 || %actor.level% == 30" in this particular version. It seems you've been bitten by the "Outsmart Yourself" bug that often seems to bite me. :-)

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

Time to create page: 0.190 seconds