Dev:SDK/Core - Functions - Text
SlaveMaker 3 SDK
Core Text Functions
Text Functions[edit]
Note: Text Areas
- General Text field - the central text area, about 18 lines
- 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(" and <i>sexy</i>");
- also remember escaped values
- \" for a "
- \r start new line
- \r\r for a blank line
- eg
- eg
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
- person - either
- Risso the Merchant
- Sora the Barmaid
- Miss N. the Prostitute
- Lady Okyanu the High Class Prostitute
- Sumi the Maid
- Knight Shan
- Count Gossem
- Lord
- Lady Farun
- Tena the cute lesbian
- Mistress Epona the ponygirl mistress
- Irina the beautiful Bounty Hunter
- Head Librarian Willana
- Dancer
- Skuld, the salon owner
- Astrid, the dickgirl
- Alsha, the swim instructor
- Marine, the beach guide
- Snow, the school girl
- Meigura, the idol
- Ellara, the armourer
- Meesh the trainer
- Tailor
- Nun
- Bar Owner
- Sleazy Bar Owner
- Pimp
- Cook
- Tutor
- Refinement Teacher
- XXX School Owner
- Fortune Teller
- Demon
- Angel
- Sailor
- Farmer
- High Priestess Daruna
- Thug
- Narana, the demon fan
- Kogin, the Travelling salesman
- Onsen Owner, Lady Azure
- Jester
- Misana the Medium
- Dealer
- Stable-hand
- Guard Soli
- Lady Farun's Maid
- Tama, naked girl at the beach
- Guild Member
- Priestess
- Mina
- Lara, Astrid's Maid
- Puppy Girl
- Guard
- Slave Trader
- Mistress
- Master
- Tiger Girl
- Busty Cat Slave
- Cat Slave
- Natsu
- Catburglar
- Woman
- Lady
- Marna
- Catgirl
- Lady Cat
- Azana
- Leonthas
- Maid
- Ring Master
- 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
BlankLine();
PersonSpeak("Maid", "Good Morning", true);
will show
Lady Farun: "Hi There" Maid: "Good Morning"
- eg
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
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
- or
- 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
SlaveHeSheIs + " not of their faith. The person smiles and rejoins the
others to make their offerings.");
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
- #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