Okay, on this game there are different trading centers. When you go into a trading center, you type MENU and see something like:
At every trading center, they sell different items and buy different items. Every center has different prices.
Here is what I'm trying to do. I figured I would have a trigger that's regexp that fires on <String>spaces <Floating Point Number>spaces <Floating Point Number>
I could also make a trigger that toggles between selling and buy based on (when it sees Item Supply Selling For
it sets a Selling variable to 1, which the previous trigger checks and stores accordingly by or it sets it to 0, on which the previous trigger assumes you're buying and not selling).
I was hoping someone could help me figure out or point me to documentation in regular expressions so I could make it match on <String>spaces <Floating Point Number>spaces <Floating Point Number>
I'd also like some help with or a point towards documentation that would help me in figuring out how to store A) The trading center name B) Item name C) Selling/Buy price. The item and price would be associated to that center (the center could be set as a variable when it matches the line
--- Place; Trading Post ---
What I'm eventually trying to do is take all the values for Product1 and print me the lowest value and where it's being sold out, then take the highest buying value for Product1 and spit out the price and place so I can make the most efficient trades. Any help would be much appreciated!
--- Place; Trading Post ---
Item Demand Buying For
----------------------------------------------------------
Product1 201500.0 145.93
Product2 19780.0 275.0
Product3 526700.0 48.87
Item Supply Selling For
----------------------------------------------------------
Produ1a 971390.0 50.07
Produ1b 463284.0 35.0
Produ1c 133500.0 88.57 At every trading center, they sell different items and buy different items. Every center has different prices.
Here is what I'm trying to do. I figured I would have a trigger that's regexp that fires on <String>spaces <Floating Point Number>spaces <Floating Point Number>
I could also make a trigger that toggles between selling and buy based on (when it sees Item Supply Selling For
it sets a Selling variable to 1, which the previous trigger checks and stores accordingly by or it sets it to 0, on which the previous trigger assumes you're buying and not selling).
I was hoping someone could help me figure out or point me to documentation in regular expressions so I could make it match on <String>spaces <Floating Point Number>spaces <Floating Point Number>
I'd also like some help with or a point towards documentation that would help me in figuring out how to store A) The trading center name B) Item name C) Selling/Buy price. The item and price would be associated to that center (the center could be set as a variable when it matches the line
--- Place; Trading Post ---
What I'm eventually trying to do is take all the values for Product1 and print me the lowest value and where it's being sold out, then take the highest buying value for Product1 and spit out the price and place so I can make the most efficient trades. Any help would be much appreciated!