- Joined
- Jun 4, 2014
- Messages
- 12
- Reaction score
- 0
- Primarily Uses
I have a function that will make a message with choices appear on the screen, but I can't figure out how to run a function/do anything when they are pressed.
Code:
If anyone knows how/has any ideas they would be very welcome.
Code:
function runTheNotes(ot){
var oEvent = $gameMap.event(ot.eventId());
var oEventDetail = oEvent.event();
var oNote = oEventDetail.note;
var nNote = JSON.parse(oNote);
console.log(nNote);
$gameMessage.add("What do you do?");
choices = [];
$gameMessage.setChoices(choices, 0);
choices.push("NumberOne");
choices.push("NumberTwo");
}
var oEvent = $gameMap.event(ot.eventId());
var oEventDetail = oEvent.event();
var oNote = oEventDetail.note;
var nNote = JSON.parse(oNote);
console.log(nNote);
$gameMessage.add("What do you do?");
choices = [];
$gameMessage.setChoices(choices, 0);
choices.push("NumberOne");
choices.push("NumberTwo");
}
If anyone knows how/has any ideas they would be very welcome.
