From fd5bfe1aaee2a55b1e4adcc72ea67cadeffffbd6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 14 Feb 2020 23:59:59 -0300 Subject: Valentine --- npc/items/valentine.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 npc/items/valentine.txt (limited to 'npc/items') diff --git a/npc/items/valentine.txt b/npc/items/valentine.txt new file mode 100644 index 000000000..259b4fcb3 --- /dev/null +++ b/npc/items/valentine.txt @@ -0,0 +1,22 @@ +// TMW-2 script. +// Author: +// Jesusalva +// Description: +// Valentine eating + +// Create a random card, with rares +function script EatValentineChocolate { + if ($EVENT$ != "Valentine" || #VALENTINE_OPENED >= #VALENTINE_RECEIVED) { + dispbottom l("Past due date."); + } else { + // I know technically this is wrong grammar, but I want fixed width + #VALENTINE_OPENED=#VALENTINE_OPENED+1; + #VALENTINE_POINTS=#VALENTINE_POINTS+1; + if (rand(0,1)) + dispbottom l("It's tasty ^.^"); + else + dispbottom l("It's yummy ^.^"); + } + return; +} + -- cgit v1.2.3-60-g2f50