19 August 2013

The Great AFK

I will be gone for the remainder of the week, returning this weekend.  I hope that my new script does not break anything in my absence!

18 August 2013

And Now I Dust My Hands

I have completed my work on my latest script to the point where I feel comfortable checking it in to the script repository.  I began adding one of my "it would be nice – but not mandatory – to include this cool feature" ideas and quickly learned that Socks would not readily support what I wanted to do, and by this point I lack the energy and motivation to crowbar new technologies into this script.  As it stands, the script is "good enough" for now, and that future feature can simmer on the back burner.

Now comes the uncertain part: releasing the script into the wild.

I must say that I am rather pleased with the result.  Maybe one of you may see it in action sometime soon.

16 August 2013

Literal Humor

I read this joke the other day and got a laugh from it:
A wife asked her husband to go to the market.  "Buy one carton of milk, and if they have avocados, get six."  A short time later the husband returned with half a dozen cartons of milk.  "Why did you buy six?" asked the wife.  Replied the husband "they had avocados."
After writing logic code for the past week, I found this especially funny.

15 August 2013

Scripter Humor

I have been reading other scripts with the intent of plagiarizing becoming inspired by other GMs/scripters' works.

Scripters will often add comments within their code as to describe what task/role the section of code performs.  I was interested in how other GMs have handled math problems (like calculating the average size of a mobile), and while researching that subject I was entertained by some amusing one liners.  Or in some cases, multi-liners.

    // Initialize it, cap'n!
   
    //    This is a public file.

    //    Everyone is welcome, nay encouraged,
    //    to use it and add to it.   
   
    // OK, dumkopf. You use it, you lose it.
       
    // All the nifty display poo goes here

    /*
    **    utilities for manipulating the [player]'s store-string
    **    err, I mean the data-string
    **    no, wait, make that the thing-string
    */


And my personal favorite:

    **    **Warning** this code is god-like and perfect.
    **    When we work on it choirs of angels
    **    gather around and sing. Mortals must keep out.
    **    This code is so blindingly beautiful
    **    that your eyes will melt if you look at it.

14 August 2013

Sign o' the Times

I have received some feedback on the new signposts from some of the players.  The feedback has been very constructive, and I spent this evening preparing the script and items for the next generation of signposts.

I just had an idea.  Neon signposts!  The action bubble box could change from red to blue to green!

13 August 2013

The Back-up Back Up Plan

My creative patch for my current script did not work as intended, which means I go to Plan B.  Or am I now on Plan C?

Anyways, work continues on it, although sometimes it is discouraging.  I want to get it done and away from me so that I may work on something else, but then I also want it to work well.

Writing bad code is easy!  It's the good stuff which takes time.

12 August 2013

Timing Is Everything

While putting the finishing touches on my latest script, I came across a wrinkle in which no amount of ironing would smoothen.

The script, like another script I recently completed, is a process which hangs out in the background and watches the goings-on of nearby NPCs.  The function of this script needs to know if the NPC is busy with a player.

I tested my script on my test server, and overall the script is looking sturdy.  It did fumble a little bit on the task of checking the availability of a NPC: the script could not seem to recognize that a player was bumping into a NPC.

As with the combat script, I think this too is a matter of bad timing on my part.  My derpy script is looking blindly for bump flags which may or may not have been set.  I think that I am checking too early in the clock cycle – way before the NPC/player bump has been processed.

So I have rigged a hack-ish solution.  It's not very pretty, but it looks as though it will get the job done.  Maybe.  I will test it and confirm that it works.  Or I will confirm that it does not work.

As the old saying goes, timing is everything.  I seem to have a genius for bad timing.