Hi everyone. I checked out Dialog yesterday, got really really really interested, and I’m now going through Part II of the Manual. I wanted to see if I could easily make a (neuter $)
predicate for gender-neutral animates. Here’s the full text of it (I’m too new to upload attachments). Everything works on my end.
Could someone more advanced in Dialog check my work? I pretty much just copy-pasted stuff, so I don’t fully understand what these things mean :D.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% (neuter $) is supposed to work like (female $)
%% from line 333 of stdlib v.0.46
(neuter $) (fail)
%% from line 4200 of stdlib v.0.46
(it (neuter $)) they
(them (neuter $)) them
(itself (neuter $)) themself
(its (neuter $)) their
(it (neuter $) is) they're
(is (neuter $)) are
(isn't (neuter $)) aren't
(has (neuter $)) have
(s (neuter $))
(es (neuter $))
(does (neuter $)) do
%% Please check this part. I don't understand what it means, I just copy-pasted stuff.
%% It seems to work, but is it ok?
%% from line 4390 of stdlib v.0.46
(notice $Obj)
(if) (object $Obj) (then)
(reveal $Obj)
(if) (neuter $Obj) (then)
(now) (them refers to [$Obj])
(endif)
(endif)
(notice player's $Obj)
(if) ~(current player $Obj) (then)
(if) (neuter $Obj) (then)
(now) (them refers to [$Obj])
(endif)
(endif)