ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > FARR Plugins and Aliases

Question about FScript (1.19)

(1/2) > >>

jpprater:
I'm trying to write a FARR plugin using FScript.  Other plugins I've seen have used aliases to trigger the action of the plugin itself, but I'm having issues wrapping my head around what these plugins are actually doing. The documentation isn't telling me very much about how to interpret that, unfortunately. :(
For instance, in my plugin, the user can type in 'pinfo explore'.  The only result my plugin returns for that is "Search for $$1".  Upon pressing enter, the plugin should run a query using the specified parameter.  I can't even figure out how to make my plugin accept a parameter, let alone trigger anything with it!  Any help, please?

mouser:
Ok so let me start by saying:
The reason you are frustrated is not your fault -- it's mine for not doing a better job explaining and documenting plugin stuff, and its just the nature of the current state of FARR.
So curse me out, take a deep breath, and then please don't give up.
The other problem is that the fscript plugin wrapper is an incredible thing that i only have the most beginner understanding of.. so im not the best one to help, but ill try until the fscript pros come by.

mouser:
Let's start off with the basics:
What language are you planning to actually write your fscript-based plugin in? Javascript I assume?
Have you considered using FSubScript instead of Fscript? FSubScript uses Fscript but makes it a bit easier to do common stuff.

jpprater:
What language are you planning to actually write your fscript-based plugin in? Javascript I assume?
Have you considered using FSubScript instead of Fscript? FSubScript uses Fscript but makes it a bit easier to do common stuff.
-mouser (December 10, 2009, 09:54 PM)
--- End quote ---
Javascript, yes.  Does FSubscript have the same API (except for putting plugin code in an fsubscript.js file instead of fscript.js ;))?

mouser:
fsubscript is easier for smaller plugins, i think the api is a bit simplified.

i should say one other thing -- although its a bit confusing at first, i think you'll find that once you get the hang of it, it's really easy to make plugins in either fscript or fsubscript -- it's just getting started and getting your first plugin working that is the tricky part.

your instinct was right -- find a sample plugin and work from that.

Navigation

[0] Message Index

[#] Next page

Go to full version