- Joined
- Jun 18, 2013
- Messages
- 129
- Reaction score
- 14
- First Language
- English
- Primarily Uses
- RMMV
The problem I have with the following code is it does not seem to save the number entered into the prompt box, does anybody know how I can fix this?
Code:
◆Script:ageS = $gameVariables.value(29);
: :var ageS = prompt("Enter a Value", "0");
: :if(isNaN(ageS)){
: :$gameMessage.setFaceImage('Actor1',0);
: :$gameMessage.setBackground(1);
: :$gameMessage.setPositionType(1);
: :$gameMessage.add("This isn't a number");
: :$gameVariables.setValue(35, 0);
: :}else{
: :var ageI = parseInt($gameVariables.value(29));
: :$gameVariables.setValue(35, ageI);
: :}

