I'm trying to make this script, I haven't really started writing it, just got the functions I think I should be using.
My plan is to transform these 2 cli lines into ash:
The reason I want to do that is because the CLI aborts if I don't have the items or specified amounts.
But, given that my experience on scripting is near null, I have a few questions.
First, what's the operator or command for placing "all but X" of an item somewhere?
Second, how do I use the 'int mall_price' of an item to set my own price for that item? More specifically I want to undercut the mall price by 100 meat in some cases.
Lastly, how do I avoid pricing my items at minimum if someone just happens to be doing an AR or a giveaway of that item a the time?
I know I could just do a 'int item_amount' plus the 'cli_execute', but where's the fun in that?
Anyway, thanks in advance.
My plan is to transform these 2 cli lines into ash:
Code:
mallsell * Game Grid Token, * scrumptious reagent, * dry noodles, * little paper umbrella, * coconut shell, * magical ice cube, * "Bricko Brick", * "Bricko Eye Brick", * "drink me" potion, * sugar sheet, * pumpkin, * llama lama gong, * paint bomb, * transporter transponder
mallsell -3 agua de vida, -1 prismatic wad, -100 disassembled clover, -20 scratch 'n' sniff unicorn sticker, -20 scratch 'n' sniff UPC sticker
The reason I want to do that is because the CLI aborts if I don't have the items or specified amounts.
But, given that my experience on scripting is near null, I have a few questions.
First, what's the operator or command for placing "all but X" of an item somewhere?
Second, how do I use the 'int mall_price' of an item to set my own price for that item? More specifically I want to undercut the mall price by 100 meat in some cases.
Lastly, how do I avoid pricing my items at minimum if someone just happens to be doing an AR or a giveaway of that item a the time?
I know I could just do a 'int item_amount' plus the 'cli_execute', but where's the fun in that?
Anyway, thanks in advance.