Act messages messing with me

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
7 months 5 days ago - 7 months 5 days ago #7011 by JTP
JTP created the topic: Act messages messing with me
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: 7 months 5 days ago by JTP.

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

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
7 months 4 days ago #7013 by JTP
JTP replied the 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
7 months 4 days ago #7014 by thomas
thomas replied the 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.

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
7 months 4 days ago #7015 by JTP
JTP replied the 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
7 months 4 days ago #7016 by thomas
thomas replied the 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: 1.020 seconds