how do i make animated npcs?

Results 1 to 4 of 4
  1. #1
    Newbie evern is offline
    MemberRank
    Jun 2006 Join Date
    13Posts

    how do i make animated npcs?

    hi all, for example, i wanna make the npc show gestures, where do i edit that?


  2. #2
    Elite Member djnouri is offline
    Member +Rank
    Jun 2006 Join Date
    GreeceLocation
    174Posts
    Quote Originally Posted by evern
    hi all, for example, i wanna make the npc show gestures, where do i edit that?


    U have to edit ai.obj for animations, which is kinda hard in editting.
    Anyway good luck with editting

  3. #3
    Elite Member ZomgZ is offline
    Member +Rank
    Apr 2006 Join Date
    ChinaLocation
    105Posts
    Code:
    handler 3    //  TALKED
        variable_begin
            "myself"
            "_choiceN"
            "_code"
            "_from_choice"
        variable_end
    
        shift_sp 1
        push_event    //  myself
        push_const 28
        add
        fetch_i    //  sm
        push_const 2400
        add
        fetch_i
        push_const 1
        push_const 3000
        push_const 10000
        func_call 13    //  func[AddEffectActionDesire]
        shift_sp -4
        shift_sp -1
    handler_end
    
    handler 5    //  SEE_CREATURE
        variable_begin
            "creature"
            "i0"
            "myself"
            "_choiceN"
            "_code"
            "_from_choice"
        variable_end
    
        shift_sp 1
        push_const 4
        func_call 55    //  func[Rand]
        shift_sp -1
        push_const 0
        equal
        branch_false L74001
    L74000
        shift_sp 1
        push_event    //  myself
        push_const 28
        add
        fetch_i    //  sm
        push_const 2400
        add
        fetch_i
        push_const 2
        push_const 3000
        push_const 10000
        func_call 13    //  func[AddEffectActionDesire]
        shift_sp -4
        shift_sp -1
    L74001
    handler_end ?>
    Put this in your ai.obj into CLASS defaul_tnpc adding handlers.

  4. #4
    Newbie evern is offline
    MemberRank
    Jun 2006 Join Date
    13Posts
    Quote Originally Posted by ZomgZ
    Code:
    handler 3    //  TALKED
        variable_begin
            "myself"
            "_choiceN"
            "_code"
            "_from_choice"
        variable_end
    
        shift_sp 1
        push_event    //  myself
        push_const 28
        add
        fetch_i    //  sm
        push_const 2400
        add
        fetch_i
        push_const 1
        push_const 3000
        push_const 10000
        func_call 13    //  func[AddEffectActionDesire]
        shift_sp -4
        shift_sp -1
    handler_end
    
    handler 5    //  SEE_CREATURE
        variable_begin
            "creature"
            "i0"
            "myself"
            "_choiceN"
            "_code"
            "_from_choice"
        variable_end
    
        shift_sp 1
        push_const 4
        func_call 55    //  func[Rand]
        shift_sp -1
        push_const 0
        equal
        branch_false L74001
    L74000
        shift_sp 1
        push_event    //  myself
        push_const 28
        add
        fetch_i    //  sm
        push_const 2400
        add
        fetch_i
        push_const 2
        push_const 3000
        push_const 10000
        func_call 13    //  func[AddEffectActionDesire]
        shift_sp -4
        shift_sp -1
    L74001
    handler_end ?>
    Put this in your ai.obj into CLASS defaul_tnpc adding handlers.
    thanks a bunch! it worked partially, some npcs will not show their html upon animation, and those that shows html wont show gestures, i'll go investigate and post my findings here



Advertisement