Dev:SDK/Core - Functions - Text

From Slavemaker Wiki
Jump to: navigation, search
<<first <prev SDK/Core - Functions - Text next> last>>


SlaveMaker 3 SDK Core Text Functions


Text Functions[edit]

Note: Text Areas

  1. General Text field - the central text area, about 18 lines
  2. Larger Text field - the area that can replace the statistics boxes, as

of Slave Maker 3 it is scrollable and unlimited in length

AddText
function AddText(nstring:String)
display text in the text window/windows. Appends the string to the end of

current text. Automatically wraps to the Larger Text field.

Note html formatted text
eg
AddText("<b>I'm bold</b>");
AddText(" and <i>sexy</i>");
also remember escaped values
\" for a "
\r start new line
\r\r for a blank line
eg
AddText("He says \"No!\"\rYou argue the point...");
eg
SetText("You are walking down the street ");
if (Talent == 21) AddText("and you are aware of a tentacle monster nearby.");
else AddText("and you smell an odd smell.");
AddText("\r\rThe thing attacks...");
AddTextToStart
function AddTextToStart(nstring:String)
add the string to the start of the currently shown text, starting in the

general text field. Text will re-wrap to the Larger Text field as needed

AddTextToStartGeneral
function AddTextToStartGeneral(pstring:String)
add the string to the start of the General Text field ONLY, no text will

wrap into the larger text field

SetText
function SetText(nstring:String)
clears all text areas and displays the string
SetGeneralText
function SetGeneralText(nstring:String)
clears text in General Text window only and displays text there. Does not

wrap into the Larger Text field

AddGeneralText
function AddGeneralText(nstring:String)
As AddText but only adds to the General Text field
PersonSpeak
a person wll speak
function PersonSpeak(person:Object, say:String, newl:Boolean)
person - either
the name of person "Stablehand"
a number of the person, see Core - People.rtf
  1. Risso the Merchant
  2. Sora the Barmaid
  3. Miss N. the Prostitute
  4. Lady Okyanu the High Class Prostitute
  5. Sumi the Maid
  6. Knight Shan
  7. Count Gossem
  8. Lord
  9. Lady Farun
  10. Tena the cute lesbian
  11. Mistress Epona the ponygirl mistress
  12. Irina the beautiful Bounty Hunter
  13. Head Librarian Willana
  14. Dancer
  15. Skuld, the salon owner
  16. Astrid, the dickgirl
  17. Alsha, the swim instructor
  18. Marine, the beach guide
  19. Snow, the school girl
  20. Meigura, the idol
  21. Ellara, the armourer
  22. Meesh the trainer
  23. Tailor
  24. Nun
  25. Bar Owner
  26. Sleazy Bar Owner
  27. Pimp
  28. Cook
  29. Tutor
  30. Refinement Teacher
  31. XXX School Owner
  32. Fortune Teller
  33. Demon
  34. Angel
  35. Sailor
  36. Farmer
  37. High Priestess Daruna
  38. Thug
  39. Narana, the demon fan
  40. Kogin, the Travelling salesman
  41. Onsen Owner, Lady Azure
  42. Jester
  43. Misana the Medium
  44. Dealer
  45. Stable-hand
  46. Guard Soli
  47. Lady Farun's Maid
  48. Tama, naked girl at the beach
  49. Guild Member
  50. Priestess
  51. Mina
  52. Lara, Astrid's Maid
  53. Puppy Girl
  54. Guard
  55. Slave Trader
  56. Mistress
  57. Master
  58. Tiger Girl
  59. Busty Cat Slave
  60. Cat Slave
  61. Natsu
  62. Catburglar
  63. Woman
  64. Lady
  65. Marna
  66. Catgirl
  67. Lady Cat
  68. Azana
  69. Leonthas
  70. Maid
  71. Ring Master
  72. Ambassador Tachiba
For an upto date list see Language/English/xml, <People> tags
say - what they say. html format. Use \r for newlines
newl - if true will append to current text otherwise will erase all

current text first, default false

Note text position will be immediately after the last " so you will need

to add a \r or \r\r to the start of any text added after this if you want the text on a new line

eg
PersonSpeak("Lady Farun", "Hi there");
BlankLine();
PersonSpeak("Maid", "Good Morning", true);

will show

Lady Farun:
"Hi There"

Maid:
"Good Morning"
eg
PersonSpeak(12, "Hi Ranma");

will show

Irina:
"Hi Ranma"
Note: No need to use either form, the PersonSpeak(1,... was introduced to

help minimise typos in names

PersonSpeakStart
A person will start talking
PersonSpeakStart(person:Object, say:String, newl:Boolean)
person - as for PersonSpeak
say - what they say
newl - if true will append to current text otherwise will erase all

current text first, default false

eg
_root.PersonSpeakStart("Lady Farun", "Hi there ");
if (_root.Gender == 1) _root.AddText("handsome");
else _root.AddText("beautiful");
_root.PersonSpeakEnd(".");
will show for a male slave maker
Lady Farun:
"Hi there handsome."
PersonSpeakEnd
person will finish speaking , adding trailing ".
PersonSpeakEnd(say:String)
string is optional but will be first added to the persons speech and the

the trailing " added

eg
PersonSpeakEnd();
or
PersonSpeakEnd("\r\rGoodbye for now.");
SlaveSpeak, ServantSpeak, SlaveSpeakStart, SlaveSpeakEnd,

ServantSpeakStart, ServantSpeakEnd

as above but specific for your slave/servant. The person parameter is

omitted as it is implied.

For the Slave versions text like Meow, Neigh and references to bitgags

are automatically added

For Twins there are also Slave1Speak, Slave2Speak, Slave1SpeakStart,

Slave2SpeakStart

BlankLine()
add a blank line to the end of the current text area
StopHints
function StopHints()
Temporarily suppresses hints for buttons and stats. Normally used when

you wish to display text when equipping an item, ie when the button being clicked stays on screen

Others[edit]

There are a number of generic manipulation functions for altering case, plurality, but these are not needed by a slave girl developer as you know the gender and plurality of your slave

NonPlural
Plural
NameCase
SlaveVerb
SlaveHeSheVerb

eg

AddText(SlaveName + NonPlural(" refuse") + " explaining that " +
SlaveHeSheIs + " not of their faith. The person smiles and rejoins the
others to make their offerings."
);
AddText(SlaveVerb("refuse") + " explaining that " + SlaveHisHer + Plural("
cock"
) + " may be too large for her.");

Text Macros[edit]

In all the above functions (and most other places text is used) a series of macros can be used

eg

_root.SetText("#slave can compete in a contest again.");
#slave
will be replaced by the slaves name
eg
Ranma''
#assistant
will be replaced by your servants name
eg
Shampoo
#slavesee
slavename sees or slavename see, depending on if they are one person or

twins eg

Ranma sees

or

Mara & Nara see
#slaveheshe
he/she/they based on gender of your slave
#slavehimher
him/her/them based on gender of your slave
#slavehimher2
for translation cases where there are tense/plural differences
#slavehimher3
#slavehimher4
#slavehisher
his/her/them based on gender of your slave
#slavehisher2
for translation cases where there are tense/plural differences
#slavehisher3
#slavehisher4
#slaveis
SlaveName is, or SlaveName are for twins
eg
Ranma is

or

Mara & Nara are
#slavehas
slave has, or slavename have for twins
eg
Ranma has
#slaveA
SlaveA, usually this is the slave's name. For twins it is one of the

slaves picked at random

#slaveB
SlaveB, the other twin than SlaveA (or SlaveName for non-twins)
#assistant
your assistants name
#assistantA
ServantA, as above but for your assistant
#assistantB
ServantB, ditto
#assistantheshe
he/she/they based on gender of your assistant
#assistanthimher
him/her/them based on gender of your assistant
#assistanthimher2
for translation cases where there are tense/plural differences
assistanthimher3
#assistanthimher4
#assistanthisher
his/her/them based on gender of your assistant
#assistanthisher2
for translation cases where there are tense/plural differences
#assistanthisher3
#assistanthisher4
#assistantis
Servantname is
eg
Mugi is
#assistanthas
Servantname has
eg
Mugi has
#super
the name of the person supervising, either 'you' or your assistants name
#supername
the name of the person supervising, either your slave makers name or your

assistants name

#master
Master or Mistress, depending on your Slave Makers gender
#slavemakername
your Slave Makers name
#superhisher
his/her/them based on gender of the person currently supervising your slave
#superheshe
he/she/they based on gender of the person currently supervising your slave
#supername
the name of the person currently supervising your slave, always the

persons explicit name

#super
similar to #supername but show 'you' for your slave maker
#assistantpronoun
the pronoun your asistant uses, default I
#assistant
your assistants name


<<first <prev SDK/Core - Functions - Text next> last>>