Jump to content

adding AI packages via script


cfh85

Recommended Posts

Preventing actors from fleeing combat might work by adjusting their confidence. Based on the CS Wiki article about Confidence, one might assume that setting the confidence to 100 should prevent them from fleeing (so they would need to have lost 100% of their health before they flee), assuming the wiki is correct, I have not tested it myself, which is why I am just assuming things. :blush:

 

Adding a new greeting to an NPC might work by creating a new line under the GREETING topic (it is in caps in the game/CS). However, I think it requires a quest to be attached to. If you have a quest already, you can:

  • Open the quest (from the "Q" button in the top toolbar -> select the quest from the left side list).
  • Open the "Topics" tab/option for your quest from the top row of buttons.
  • Right-click on the tall list in the middle and select "Add Topic", a list will appear, select "GREETING" from the list and it will be added to the topic list on your quest.
  • Select the GREETING in the quest topic list, then right-click in the right side list (the short one) and select "New" to create a new response. Type in the Response Text (the text the NPC will say), select emotion type and such and click "OK" to add the new response to the list.
  • Select the new response in the short list and add the necessary conditions for the response. Conditions are necessary to restrict who may deliver that line and when they may do so. Without conditions, if I remember correctly, all NPCs in the game might always use that greeting. To restrict it to your summon, you can add a new condition to the conditions list by clicking the "New" button and setting the condition function to GetIsID, the function parameter to your summoned actor form, comparison to "==" and the value to "1" - that way the response will be delivered by your summon only (because only your summon has its ID set to your summon). If you want to run a condition check on the one the response would be delivered to (when the player talks to the summon, that would be the player), you can use the "Run on Target" option. The "Use Global" allows to compare the condition function result value to a global value.

Hopefully that helps a bit. :thumbsup:

Edited by Contrathetix
Link to comment
Share on other sites

  • Recently Browsing   0 members

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