Difference between revisions of "Simple Companion Tutorial"
Simple companion npc well organized/
imported>DragoonWraith (unfinished - removing categories til this gets cleared up) |
imported>Rionukyo (Simple companion npc well organized/) |
||
|
{{
You Should create your quest script and ai packages before you edit
your npc's appearance,add items,spells as follows.
Use note pad to remember:
QuestName,Character id, variable name,ai package names,etc
if you cant remember what you named them
thy all have to be different names in the editor.
make new NPC: just give her an easy to remember id. Starting with the
letter "A" is not a bad idea for the id so its at the top
of the list and a name to show up in game.
check essential if you want them to be immortal.
to make her go places that your guilds restrict click
factions in the npc's tab
leave the npc window open
then bring up the characters menu at the top
of the program window click faction locate PlayerFaction
highlight it then drag it to the factions box in your npcs window.
Now click the ai box,
Adjust the ai attributes to what you want. like setting the energy Lev to
100 means that the npc is less likely to stop,sit down,etc.
now right click the editorid box and make a new package
this will be are staypackage name it accordingly.
leave packedge type as find
under target select player
now on conditions you will need to:
1.add GetIsID and under function parameters select your Npc.
it should be at a value of 1.0000
2.add GetQuestVariable and set the value to 0.0000
hit OK
we have a wait package with a value of 0.
make a new package its your follow package, name it accordingly.
this time set the type to follow.
and check always run,defencive combat,take falls,
continue if near pc,allow swimming
now do steps 1 again
and then step 2 but this time the value is 1.0000
now we have a follow package with a value of 1
hit save.
press okay on the npc window we are done with that for now.
click character and select quest
Now make a new quest
On Quest conditions select new and GetIsPlayableRace this
should be at value 1.0000
Click the |...| box to
Create a Script
in your quest data screen:
ScriptName "Your Script Name"
Short "Variable name"
Save your Script. If you are confused follow example below.
|Example of script|
ScriptName alexfollowscript
Short alexfollowme
|Example of script|
----------------------------------------------
Press okay on the quest window and reopen it, or your
Script will not show up yet so don't freak out.
reopen quest window select your quest.
to save time go back to your npc's ai window
now that we have are variable script
on conditions GetQuestVariable click function parameters
select are quest and the script
do this to both packages.
done with that click the save button and OK on the npc window.
Back to quest window:
select your quest
go to topics
right click in editor id box
add Greeting the one all in caps from the list
now topic text is what you see in game keep that in mind.
in the info box this is what the npcs says when u talk to him.
write something for him to say here to continue.
now on conditions put GetIsID click function parameters and select
your npc the value should be 1
now make a new topic for follow name it accordingly.
add the text you want him to say wen you ask him to follow.
now add the conditions
1.GetIsID select are npc value of 1.0000
2.GetQuestVariable select are variable script, value of 0.0000
3.Check goodbye.
now repeat previous steps with a wait topic name it accordingly.
1.GetIsID select are npc value of 1.0000
2.GetQuestVariable select are variable script,value of 1.0000
3.Check goodbye.
now to avoid bugs
highlight the greeting topic in your quest window
in the result text box type
AddTopic yourfollowtopicname
AddTopic youwaittopicname
hit compile if all is well your names are
correct if not check you spelling
|Example of script|
AddTopic alexfollow
AddTopic alexstay
|Example of script|
now highlight your follow topic,
in result script type the following.
StopWaiting yourfollowpackagename
Set yourquestname.variablename to 1
now compile to check for errors,wrong names.
|Example of script|
StopWaiting alexfollowme
Set aaalex.alexfollow to 1
|Example of script|
on to the wait topic result script type the following.
Wait yourfollowpackagename
Set yourquestname.variablename to 0
compile
|Example of script|
Wait alexfollowme
Set aaalex.alexfollow to 0
|Example of script|
okay now that you have a Brain you can focus one beauty now make
you npc look great add items,spells and place were ever you like enjoy.
E.p.H . 08
please email me [email protected]
| |||