 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
Zypher
Joined: 03 Apr 2006 Posts: 22
|
Posted: Wed Apr 12, 2006 12:04 pm Post subject: Strings. |
|
|
I was working in OHR today, when a funny thing happened. I noticed something new; "Strings". Now this caught my attention, so I decided to fiddle with them, only to not be able to see their use. The new "Strings" feature has been inadequately described in terms of what they are used for and how to use them with plotscripting and/or textboxes IF that's even what they're used for, that is just an assumption based off of observations. Also, the commands listed for Strings in the Plotscripting dictionary are not even recognized by the compiler, which I downloaded with the latest version of Custom.exe, "Tirgoviste." and so I believe it's safe to assume that the changes were not made to Hspeak. I personally would like an explanation. Thank you.
~Hatzi |
|
Back to top |
|
 |
Mike Caron Technomancer

Joined: 26 Jul 2003 Posts: 889 Location: Why do you keep asking?
|
Posted: Wed Apr 12, 2006 3:21 pm Post subject: |
|
|
Ok, here's your explanation:
The changes were made to HSpeak in Rusalka. I can name at least 15 people who I personally know used them successfully, not including myself (who has, as well). Thus, you are running an old old version of hspeak, or using an old old version of plotscr.hsd.
To use strings is easy:
Code: | $1="My string up to 40 characters"
$2="My other string"
center string at (1, 160,90) #show the first string in the center of the screen
show text box(1) #Now showing string 2:<newline>${S2}
wait for text box
clear string(3) #prepare a string buffer, who knows what might already be in it?
variable(i)
for(i,65,65 + 25,1) do, begin
append ascii(3,i) #Put letters A-Z in the string
end
center string at (3,160,100) #show the third string beneath the first one
clear string (4) #prepare another buffer
show text box(2) #What is your name?
if(input string(4,false)) then, begin
show text box(3) #Hello, ${S4}!
end, else, begin
show text box(4) #What, you don't want to talk to me?
end
#etc, etc... |
All this is described in whatsnew.txt, and (sorta) on the Wiki (http://gilgamesh.hamsterrepublic.com/wiki/ohrrpgce/index.php/What_is_a_string_and_how_do_I_use_it%3F) _________________ I stand corrected. No rivers ran blood today. At least, none that were caused by us.
Final Fantasy Q
OHR Developer BLOG
Official OHRRPGCE Wiki and FAQ |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Apr 12, 2006 5:12 pm Post subject: |
|
|
(Yeah, that article probably should go really in depth into everything you can do with strings)
The HamsterSpeak Definition is lacking documentation of strings, but next to noone would probably read it anyway, and it might not be too helpful either way. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|