Jump to content

Looking for the help of a script writer


Koreno

Recommended Posts

I need a script that I can put in a new AI package. I have a package for an NPC to change to another cell then fo to their room and sit in a chair by their bed. But the hallway to their room has 2 turns before they get to the room. SO what I need is to make an NPC walk a specific path hitting 3 markers that I already placed in the map (khhBarracksMarker01, 02, and 03) then go to the chair and sit.

 

This is the only way I can think of to make the NPC not run in place against walls trying to get to their destination. They dont sense the walls or something.

Link to comment
Share on other sites

This is what I have so far.... HEHE Im so stupid when it comes to this. :( Any help in making this work would be great. In what I have so far there are no script errors when I saved it. I just dont know the commands on how to get the NPC to go to the ref.

 

scriptName khhShelbyToBedroomScript

 

Ref khhSlut01

Ref khhBarracksMarker01

Ref khhBarracksMarker02

Ref khhBarracksMarker03

Ref khhShelbysChair

Short Var1

 

begin OnPackageStart khhShelbyRead

 

set var1 to 0

 

if var1==0

;go to Marker01

set var1 to 1

endif

 

if var1==1

;go to Marker02

set var1 to 2

endif

 

if var1==2

;go to Marker03

set var1 to 3

endif

 

if var1==3

;go to ShelbyChair

endif

 

set var1 to 0

 

end

Link to comment
Share on other sites

You might want to look at pathgrids. Check the Wiki, and ask yourself why you didn't earlier. What you're trying to do would be more for some specific scene you want the actor to be in, standing at a certain point at a certain time. For day to day stuff, you'll want to use pathgrids, and have them figure out how to get from point A to point B.
Link to comment
Share on other sites

You might want to look at pathgrids. Check the Wiki, and ask yourself why you didn't earlier. What you're trying to do would be more for some specific scene you want the actor to be in, standing at a certain point at a certain time. For day to day stuff, you'll want to use pathgrids, and have them figure out how to get from point A to point B.

 

I just found that.. HAHAHA... I was searching on the CS wiki forever ... its not layed out very well.. The wiki that is. I threw does some waypoints and tested it out... it worked great... YAHOOOOOOO Im learning!

 

Not bad for an old man like me.. :) Now if I could only figure out how to make the NPCs hold books and read like Martin does.

Link to comment
Share on other sites

Playing "idle" animations.

 

Look for something like "PlayGroup", "PlayIdle", "PlayLoop" or "PlayAnimation" on the wiki. I haven't done animations, and I can't remember the commands.

Link to comment
Share on other sites

Playing "idle" animations.

 

Look for something like "PlayGroup", "PlayIdle", "PlayLoop" or "PlayAnimation" on the wiki. I haven't done animations, and I can't remember the commands.

 

I will take a look .. thank you

Link to comment
Share on other sites

Playing "idle" animations.

 

Look for something like "PlayGroup", "PlayIdle", "PlayLoop" or "PlayAnimation" on the wiki. I haven't done animations, and I can't remember the commands.

 

Actually, that can be setup within packages. Give them a "use item at" package with the target being a book, and the location being a chair somewhere. When that package gets called, they will walk to the book, then walk to the chair to start reading. It should be noted that having a shield equiped while reading doesn't look right.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...