At some point in my game, an auction takes place. The auctioneer is supposed to loop through a set of predefined dialogue boxes (each loop ending with a choice if the player wants to bid as well) until a randomly number of bids are placed and the item is sold to an NPC. The problem is the dialogue box refuses to work. It's a script instead of the usual UI interface, but this should work regardless. Here's the code:
Values 17 and 18 are the number of bids and price in thousands respectively. When I ran this script (as below) in my browser, it ran fine.
Fundamentally, they are the same script, so what's going on?
Code:
$gameMessage.add("$" + ($gameVariables.value(17) * $gameVariables.value(18)) + ",000!");
Values 17 and 18 are the number of bids and price in thousands respectively. When I ran this script (as below) in my browser, it ran fine.
Code:
var b = 1, p = 5;
alert("$" + (b * p) + ",000!");
Fundamentally, they are the same script, so what's going on?