You are carrying %beans% magic beans. If you buy 3 buckets, you will have { %beans% - (3 * #bucket:cost#) } left.
Speaking of libraries, what happened to MaDbRiT and his TypeLib?
Alex wrote:Yes, you can use common math functions.
You can enter any expression when setting the contents of a numeric variable, e.g.
2 + 2
3 * %something%
(%num% + 3) / 4
You can also enter a mathematical expression in any parameter by enclosing it with { braces }. For example, in a "Print a message" script, you can type:
You are carrying %beans% magic beans. If you buy 3 buckets, you will have { %beans% - (3 * #bucket:cost#) } left.