Welcome to the Builder Academy

Question Act messages messing with me

More
16 Oct 2017 15:36 - 16 Oct 2017 23:00 #7011 by JTP
act("$N suddently gets a wild look in $s eyes!\r\n", FALSE, ch, 0, vict, TO_NOTVICT);


Testchar suddently gets a wild look in his eyes!

$s seems to just make his messages, how do i make it his/her ?

When do i use TRUE instead of FALSE, and some places in the code i see vict, 0, ch ?
Last edit: 16 Oct 2017 23:00 by JTP.

Please Log in or Create an account to join the conversation.

More
17 Oct 2017 08:44 #7013 by JTP
Replied by JTP on topic Act messages messing with me
And what is the difference between TO_ROOM and TO_NOTVICT ?

Please Log in or Create an account to join the conversation.

More
17 Oct 2017 20:19 #7014 by thomas
Replied by thomas on topic Act messages messing with me
There's a lot of things going on in the act() function. So much, in fact, that there's a full doc file about it here: github.com/tbamud/tbamud/blob/master/doc/act.txt

Please Log in or Create an account to join the conversation.

More
17 Oct 2017 20:31 #7015 by JTP
Replied by JTP on topic Act messages messing with me
Seems $s is his/her

but when i try my skill on a female it still says his ?

Please Log in or Create an account to join the conversation.

More
17 Oct 2017 20:40 #7016 by thomas
Replied by thomas on topic Act messages messing with me
Did you actually read the file?

$s “his,” “her,”or “it,” depending on the gender of ch.
$S Like $s, for vict_obj.*

So, here you're using $N (which means it's VICT you are getting the name of). The matching possessive pronoun is $S (dollarsign-capital-S). $s refers to the caster (here, ch).

Please Log in or Create an account to join the conversation.

Time to create page: 0.408 seconds