I've been searching around through everything for a few days now, so forgive me if I'm blind. The question pertains to a interesting concept for a zone idea that would rely heavily on the ability to reset the zone to certain ways. Perhaps maybe the best way to explain it would that it would load in 2 different fashions. Let me give a brief show of the if statement in some rough manner then I'll go from there.
if mobinroom(vnumevil) > 0
load areareset evil
else
load areareset good
endif
The concept here is to be able to use a variable reset. If vnumevil is in a certain room, the whole area resets to an evil setup otherwise if it's not there it resets to the good way. With the evil reset active, special vendors and quests will become active for use in the zone. If the good reset is active, a new set of vendors and quests become available. Also to prevent people playing both sides of the fence and reset the zone to gain each set of rewards, I'd set the if questr's to reflect having finished one off and closing off the other.
if questr (areavnum, 0, 2, $n) == 1
sayto $n You have done us good work.
else
if questr (areavnum, 0, 2, $n) == 2
sayto $n You think I will work with you after all you have done?!
endif
endif
If I haven't been clear enough, please ask me to go on or send me a pm and I'll give a full detail thought of how the zone plays out. I haven't seen anything like it in FK at all, but I think it would bring a very interesting element and could possibly change how some zones are built.
If statements tied to Area Reset?
- Dovan
- Sword Grand Master
- Posts: 262
- Joined: Mon Mar 24, 2008 2:03 am
- Location: Indianapolis, IN
- Contact:
If statements tied to Area Reset?
"One life; Win or lose it's all a bet,
One chance; Don't show fear and do not forget" -Simon's Symphony
-Dovan, Burning Blade of Luck
One chance; Don't show fear and do not forget" -Simon's Symphony
-Dovan, Burning Blade of Luck
Re: If statements tied to Area Reset?
You could do this with a RAND_PROG that checks for mobiles in rooms and loads them appropriately? This could also set a QBIT as needed.
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons