Help scripting a Florist reminder

ungawa

Member
Hey guys, I haven't done a lot of scripting, but I want to throw together a quick script to help me remember to visit my florist.

I want to start out simple and clunky, but maybe refine it so it's less intrusive later.

I want an array of int's. The index represents all zones' snarfblat number. You initialize it to all 0's at the start of a run.
Make the script trigger unconditionally before adventuring and grab the snarfblat for your 'lastAdventure'. If the array at that index is 0, set it to 1, abort and remind me to consider if I want to plant in the last zone.

Once that's working, it'll be intrusive firing on every zone, so then I can modify it to only initialize the array to for zone's I plan to plant in.

My idea of pseudo code.
-I'm not sure how to get the snarfblat of the last adventure
-I'm not sure how to make the array of int's that tracks which zones I've visited.
Code:
int lastLoc = get_property( ???? ); #snarfblat number from last adventure

if (floristVisitedLoc[lastLoc] == 1) exit;

floristVisitedLoc[lastLoc] = 1;
abort("That was your first visit to that location.  Consider planting flowers.");

Any comments/suggestions/links to an existing florist script that I'm unaware of?
 
Top