Mman wrote:The variable in question is “TLNplayerSexâ€. It is a numeric variable, 1 for male (default) and 2 for female. So all you need to do is this:
set numeric <TLNplayerSex; 2>
' "test"
' Created with QDK Pro 3.52
!include <Typelib.qlb>
define game <test>
asl-version <350>
gametype singleplayer
start <bedroom>
game info <Created with QDK Pro 3.52>
startscript choose <sex>
end define
define synonyms
end define
define room <bedroom>
prefix <a>
north <closet>
east <lab>
define object <Dresser>
look {
msg <A small dresser with only two drawers.>
show <top drawer>
show <bottom drawer>
}
type <TLTcontainer>
type <TLTcontainer>
properties <not takeable>
end define
define object <top drawer>
hidden
type <TLTcontainer>
type <TLTcontainer>
end define
define object <bottom drawer>
hidden
type <TLTcontainer>
type <TLTcontainer>
end define
define object <bra>
take
type <TLTobject>
type <TLTcontainable>
type <TLTvest>
properties <isIn=top drawer; sex=2>
end define
define object <panties>
take
type <TLTobject>
type <TLTcontainable>
type <TLTundies>
properties <isIn=top drawer; sex=2>
end define
define object <undershirt>
take
type <TLTobject>
type <TLTcontainable>
type <TLTvest>
properties <isIn=bottom drawer; sex=1>
end define
define object <boxer shorts>
take
type <TLTobject>
type <TLTcontainable>
type <TLTundies>
properties <isIn=bottom drawer; sex=1>
end define
end define
define room <closet>
prefix <a>
south <bedroom>
define object <shirt>
take
type <TLTobject>
type <TLTshirt>
properties <sex=1>
end define
define object <blouse>
take
type <TLTobject>
type <TLTshirt>
properties <sex=2>
end define
define object <skirt>
take
type <TLTobject>
type <TLTskirt>
properties <sex=2>
end define
define object <pants>
take
type <TLTobject>
type <TLTtrousers>
properties <sex=1>
end define
end define
define room <lab>
prefix <a>
west <bedroom>
define object <pink potion>
look <a small beaker with a pink coloured liquid.>
take
use {
if ask <Do you want to drink this potion?> then msg <A strange feeling runs through your entire body.>
set numeric <TLNplayerSex; 2>
}
type <TLTobject>
end define
define object <blue potion>
look <a small beaker with a blue coloured liquid.>
take
use {
if ask <Do you want to drink this potion?> then msg <A strange feeling runs through your entire body.>
set numeric <TLNplayerSex; 1>
}
type <TLTobject>
end define
end define
define text <intro>
end define
define text <win>
end define
define text <lose>
end define
define selection <sex>
info <Are you male or female?>
choice <male> {
msg <o.k.>
set numeric <TLNplayerSex; 1>
}
choice <female> {
msg <o.k.>
set numeric <TLNplayerSex; 2>
}
end define
No you don’t need to change the library itself, and you really shouldn’t. If you start making changes to the library and something goes wrong, nobody will be able to help you, not even MaDbRiT himself. The manual for his library contains warnings against doing this.