Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [AI] Get talkers sex (https://postpacific.loc-online.com/showthread.php?t=7535)

GMan 10.05.2007 18:55

[AI] Get talkers sex
 
I want to make an NPC greet people with either "Sir SoAndSo" or "Lady SoandSo" so i need to know if there is a way to get the talkers sex in AI.


Thanks

m4rk 10.05.2007 19:17

I was trying to make the same and I ended up thinking (didn't make it yet) to make a script that adds an invisible item to females and another one to males... and the AI would work on that...

testdude 10.05.2007 21:23

Code:

        push_event        //  talker
        push_const 40
        add
        fetch_i        //  sex
        push_const 196
        add
        fetch_i4

not 100% sure but that should work


All times are GMT. The time now is 15:26.