From 1623d7da9290f57bcd0dfe41f61a9581b5a78198 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Wed, 9 Jan 2013 18:12:52 +0100 Subject: Katze quest: use bitmasking to be able to remove the variable LastHiss. Nibble 0: Progress of quest Nibble 1: what was saved previously in LastHiss Add LastHiss to clear_vars Since the value in LastHiss is only needed to get some hint from Alice, taking over the value from LastHiss to Nibble 1 of Katze isn't needed. --- world/map/npc/015-1/alice.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'world/map/npc/015-1') diff --git a/world/map/npc/015-1/alice.txt b/world/map/npc/015-1/alice.txt index 18fdb4ba..34f728a1 100644 --- a/world/map/npc/015-1/alice.txt +++ b/world/map/npc/015-1/alice.txt @@ -2,17 +2,21 @@ // herbs. 015-1.gat,52,53,0|script|Alice|106,{ + + set @cat, ((Katze & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT); + set @Hiss, ((Katze & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT); + mes "[Alice]"; mes "\"Greeting, fellow wanderer."; mes "Are you collecting herbs, too?\""; next; - if (LastHiss == 2 && Katze < 4) + if (@Hiss == 2 && @cat < 4) menu "Yes, sure.", L_findmany, "Herbs?", L_herbs, "Nope, just enjoying the scenery.", L_close, "I saw the cat, but it doesn't like me.", L_cat; - if (LastHiss == 1) + if (@Hiss == 1) menu "Yes, sure.", L_findmany, "Herbs?", L_herbs, -- cgit v1.2.3-60-g2f50