Magnum once made a database program for saving his equipment sets. Using his work (and very, very heavily modifying it...ie, using only his notecolor function now) I made a vbscript plugin that takes all the characterists of an item spit out from the mud. It takes this data, checks if the file exists first (if it does it adds a few of the changing variables to it) and if it doesn't it makes a .txt file. The problem comes with lines with two variables in it. For instance:
Value: 5 gold 3 silver Level: 5
Currently, I have a work around in place. Using the file-system object, I create a .txt file, write the entire line in, then selectively read and store parts of the line, ending up by deleting the file. Since I can't double up triggers for the line (which is how I'm capturing information).
The system, basically, match Value: * and save in value_object. Then write value_object to blerb.txt. Read first part of file then store in value then read second part (level part) and store in level.
If someone could tell me how to double up the take without doing this, it'd be appreciated.
(btw, actually matches, Value: * Level: * and prints %1 %2)
Value: 5 gold 3 silver Level: 5
Currently, I have a work around in place. Using the file-system object, I create a .txt file, write the entire line in, then selectively read and store parts of the line, ending up by deleting the file. Since I can't double up triggers for the line (which is how I'm capturing information).
The system, basically, match Value: * and save in value_object. Then write value_object to blerb.txt. Read first part of file then store in value then read second part (level part) and store in level.
If someone could tell me how to double up the take without doing this, it'd be appreciated.
(btw, actually matches, Value: * Level: * and prints %1 %2)