Difference between revisions of "Simple Companion Tutorial"
m
spelling, grammar, punctuation
imported>Haama (Reverting - see talk page) |
imported>D4v3 m (spelling, grammar, punctuation) |
||
|
{{Unfinished}}
This will show you how to make a companion in CS. You will get to create your own
== Creating an NPC ==
Start customizing your companion like you would do any other
Now
Once you found one go back to the Object Window and drag your
Now we completed our companion but
Right click on the list in the left and click on new.
Now
Now before we work on this further we want to create 2 more responses. Right click on the left list again and go to Add Topic, this time we want to create our own topic so right click in the topic list and select new.
Now our
First
Take a breath and
<pre>ScriptName AAveroniascript
short veroniafollow</pre>
Now we must set up our conditions. Whenever you make responses you must always make sure the
Now
Again we only want our
Do the same for the stay topic, this time giving your
You may wanna take a break, get a drink or something. I know I got a headache from writing this tutorial... Don’t worry
Before we do anything here
Near the bottom click on the Conditions tab. Again we only want our
After that our first package is done. But it isn’t quite ready to work properly yet as we need to add more lines of code to our quest later. When
This time we will need to check some flags to ensure our companion will function properly. First check '''Continue if PC Near''' so they will keep following you even when
Now
After that hit OK at the bottom and our second package is done. Hit Save in the package window and hit OK in the
To make things easier we only want our choices to show up when we need them so select the follow topic, for mine its '''AAfollow''' and look down to the conditions box. We only want the Follow Me option to show when the
Do the same for the stay topic but this time make the Value 1. This will make sure the '''Stay Here''' command will only show when the
In the Result Script box type: '''StopWaiting yourfollowpackagename''' for mine it is '''StopWaiting AAveroniafollow''' this will resume the
<pre>StopWaiting AAveroniafollow
set AAveroniaquest.veroniafollow to 1</pre>
Hit the compile button to check for errors, if there are some then you may
Now go to your stay topic. In the result script box type the same thing only this time change the first command to '''Wait''' and the value of your variable at the end to 0. This will tell the
Now your companion is complete. First make sure you check it in the data files of the
Your companion should be ready to journey with you and fight along side like true
== Tweaking your Companion ==
-The most prevalent problem with companions is leaving them behind on the other side of shut down
-If you plan to create more then one companion or use your companion mod along side others keep in mind you
-The most requested feature for companions is of course to get access to
-One thing your companion
-If you find your companion not able to keep up with you
| |||