Help - Search - Members - Calendar
Full Version: Nexus Tab/contract Tracker
Achaea's Forums > Off-Topic > Tech Support > Client Help
Semla
I am wondering if it possible to code a script in nexus that would keep track of contract deal information.

For example say Bob makes a contract with me to refil X number of herbs every X number months/years for X time
I would need an alias or to set that or trigger or something.. then i would need a way for it to mark down the times and echo when its lose to restock him which i could do a number of ways. in person or by mail.

Next I am considering making tabs for some players. like I give you herbs now with agreement to payed at a future date. and if paymenti s late an intereste fee.

Would there be a way to script something that keeps track of that. or will I have to do all this with pen and paper?
Trici
QUOTE (Semla @ Aug 28 2009, 12:08 PM) *
Next I am considering making tabs for some players.
You'll get screwed hardcore, if you don't only do it with people you can -really- trust.
Semla
adds that element of risk. But was mostly fer those i can really trust.

but does anyone know if the scripts im looking fer are even possible in nexus?

As it is im sure a few people need this fer whatever systms they use. atleast the contract time left part. Im getting screwed paying fer the crew on a ship I rented and the contract is well over.
Wattsee a'Lenendra
You can store all sorts of data using variables, it's just a matter of what you want to do with them after that.

Say you have a contract with me, to supply me 500 moss for then next 5 years

You could make an alias IOU with this as the function.

my format would be IOU (name) (owed) (years left on the contract)

IOU wattsee 500moss 5

#IF IOU = 0 {
#set player0 $1
#set owed0 $2
#set time0 $3
#set IOU = ($IOU + 1)}

#if IOU = 1 {
#set player1 $1
#set owed1 $2
#set time1 $3
#set IOU = ($IOU + 1)}

and expand it for however many people you'd like to keep track of.

Then a new alias IOUs

#if $time0 > 0 {
#echo I owe $player0 $owed0 for $time0 more years.}
#if $time1 > 0 {
#echo I owe $player1 $owed1 for $time1 more years.}

expanding again, for any amount of players you want to keep track of.

Then, when new years rolls around, or you just finish going through your list, a new alias for you. IOUNEWYEAR
#if $time0 > 0 {
#set time0 = ($time0 - 1)}
#if $time1 > 0 {
#set time1 = ($time1 - 1)}

expanding again for however many to keep track of.

Since you may occasionally pay people off, or have longer contracts, you might want to clear this out every now and then and start over, so you don't have to keep expanding your aliases. Since Nexus doesn't offer arrays or lists, or tables, this has to be done manually.

So you would do you IOUs alias, and copy that somewhere for yourself, then have a nice alias of IOUclear

#set player0 = ""
#set owed0 = ""
#set time0 = ""

#set player1 = ""
#set owed1 = ""
#set time1 = ""


#set IOU = 0
#echo IOU lists cleared, ready to enter new data.

Then you would simply type in your remaining IOU's back in using the first alias.


If this seems like a whole pile of crazy or complex, toss me a message IG and I can help you work something out.

Jonathin
There's no way to actually have a single variable with a bunch of people in it. The only way to do that is to have multiple variables. Get a better client.
Gorlasintan
QUOTE (Jonathin @ Aug 28 2009, 05:27 PM) *
There's no way to actually have a single variable with a bunch of people in it. The only way to do that is to have multiple variables. Get a better client.

This is actually something you could do with the Flash client if it had a way to store persistent variables.

contractHolders = new Array("Person1", "Person2", "Person3")
Jonathin
We can all dream that IRE will come out with a semi-decent client of their own.
Trevize
Until then... http://www.mushclient.com/forum/?id=9659
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.