BryceTheCoder Posted December 23, 2011 Share Posted December 23, 2011 Hello, i know its possible to make your log ask your something for example your name or something(but i forgot how to) , but then can i make it ask something around: Variable: then you can type 1 or 0 and whatever you type it actaully makes the variable in your script that number. Soo if i put 1, it would make the script have this variable in it: Test:= 1; Quote Link to comment Share on other sites More sharing options...
rsutton Posted December 23, 2011 Share Posted December 23, 2011 not a bad idea, but highly usefull but thats alright. maybe for constants for making player names and stuff. Anyways I would also like to learn this, any info ? Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted December 23, 2011 Author Share Posted December 23, 2011 im almost positive wanted and feddy and maybe more people know this.. i used to know (i saw in a vid somewhere) but i forgot. Wanted? Freddy? help plz:c Quote Link to comment Share on other sites More sharing options...
rsutton Posted December 23, 2011 Share Posted December 23, 2011 well maybe ill check the wiki with you until we get an answer. be sure to add me to msn if u got it Soulbytegames@live.com Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted December 23, 2011 Share Posted December 23, 2011 Are you talking about forms? Only thing I can think of off the top of my head. If it's something else I'd be curious to hear it too. Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted December 23, 2011 Author Share Posted December 23, 2011 i dnt know what a form is buut i doubt its that.. Like when your start your script it would say: Variable?: _ and you can put in a number and hit enter Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted December 23, 2011 Share Posted December 23, 2011 Would one of these 2 functions meet your needs? program New; var S1, S2: String; Num1, Num2: Integer; begin ClearDebug; InputQuery('Enter a number', 'Your number?', S1); S2 := InputBox('Enter another number', 'Your number?', '0'); Num1 := StrToIntDef(S1, 0); Num2 := StrToIntDef(S2, 0); WriteLn('Your first number as text: ''' + S1 + ''''); WriteLn('As a number: ' + IntToStr(Num1)); WriteLn('Your second number as text: ''' + S2 + ''''); WriteLn('As a number: ' + IntToStr(Num2)); end. Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted December 24, 2011 Author Share Posted December 24, 2011 its perfect, thank you:) Quote Link to comment Share on other sites More sharing options...