ThePowerTool
New member
I like the dialog prompt for input. Having scripted and coded that saves time, effort, and coding.
How do I allow for null when calling an ash script [allowing for optional parameters]?
Everything I've used, before ash, assumes null and you have to code options.
The goal is to call an ash script that allows for one (or more) parameters where the script doesn't stop to prompt for input:
a) null is ignored, the script executes normally.
b) one, or more, parameters are handled via scripting.
Just FYI, Hi!!!! This is my very first post, here.
I started playing a few months ago.
I wanted to play and experience the game like a single-person-player; just the game and me, no mall (or twinkage), no chat (but I did make use of the wiki!).
I got a LOL when I saw the message "cleared Ronin" and discovered there's a name and accomplishment for my chosen approach on my 1st ascension.
I haven't even enabled chat, yet--but I'll be doing that in the very-near future.
I really love the game and some of the ROFLMAO scenarios and text (phrases, quotes, references).
I played for about a month to get a solid feel for the game before grabbing kolmafia. This approach was a bonus as I had developed a solid grasp of game mechanics and kolmafia only improved my understanding of the game (not to mention pointing-out my status when I "cleared Ronin")
I consider kolmafia part of the gaming experience and a key part of the game.
I love kolmafia, too! It makes the game significantly more "playable" and some aspects more user-friendly (double-entendre intended*).
Notes:
. No jokes, here. I read the sticky.
. This is just a hat-tip to the game and wiki.
References:
* The double-entendre is a reference to the now-defunct User Friendly comic. Please note: download options at the bottom of the linked page.
How do I allow for null when calling an ash script [allowing for optional parameters]?
Everything I've used, before ash, assumes null and you have to code options.
The goal is to call an ash script that allows for one (or more) parameters where the script doesn't stop to prompt for input:
a) null is ignored, the script executes normally.
b) one, or more, parameters are handled via scripting.
Just FYI, Hi!!!! This is my very first post, here.
I started playing a few months ago.
I wanted to play and experience the game like a single-person-player; just the game and me, no mall (or twinkage), no chat (but I did make use of the wiki!).
I got a LOL when I saw the message "cleared Ronin" and discovered there's a name and accomplishment for my chosen approach on my 1st ascension.
I haven't even enabled chat, yet--but I'll be doing that in the very-near future.
I really love the game and some of the ROFLMAO scenarios and text (phrases, quotes, references).
I played for about a month to get a solid feel for the game before grabbing kolmafia. This approach was a bonus as I had developed a solid grasp of game mechanics and kolmafia only improved my understanding of the game (not to mention pointing-out my status when I "cleared Ronin")
I consider kolmafia part of the gaming experience and a key part of the game.
I love kolmafia, too! It makes the game significantly more "playable" and some aspects more user-friendly (double-entendre intended*).
Notes:
. No jokes, here. I read the sticky.
. This is just a hat-tip to the game and wiki.
References:
* The double-entendre is a reference to the now-defunct User Friendly comic. Please note: download options at the bottom of the linked page.
Last edited: