Jump to content

Photo

Quicky.


  • Please log in to reply
20 replies to this topic

#11
german_man

german_man

    Regular

  • Members
  • PipPip
  • 83 posts
put this
AiFollow 0 0 0 0
somewhere (usually goes in a result box in dialgue)

then in a script put something like
;put a condition when you want the person to stop then
set AiPackage to 1



or




in the dialgue put AiWander 0 0 0 0 0 0 0 0
change the zeros to the numbers you think he should wander.




that should do it, hopefully this helped
:bleh:

#12
Vampire

Vampire

    Newbie

  • Members
  • Pip
  • 19 posts
No because... I don't really understand.

#13
Almelexia

Almelexia

    Old hand

  • Members
  • PipPipPip
  • 539 posts
In the dialogue tab (there you make a new dialogue) then the results box lays at the bottom of the dialogue page. Sorry for bad spelling

#14
Lord Of The Cheese

Lord Of The Cheese

    Enthusiast

  • Members
  • PipPip
  • 116 posts
ok since your seeming to have problems here you go, put this on your npc.

Begin LC_FollowVamp

short button
short DoOnce

If ( OnActivate == 1 )
If ( DoOnce == 0 )
MessageBox, "I'm looking for someone to travel with, may I travel with you?", "Yes", "No"
set Button to GetButtonPressed
If ( Button == -1 )
return
endif
If ( Button == 0 )
"insert id of the npc to follow"->AiFollow, "player", 0,0,0,0
set DoOnce to 1
endif
If ( Button == 1 )
messagebox, "Fine, but if you do need me, just come back"
Activate
endif
endif
endif

End


ok just copy (ctr+c) and paste (ctr+v) into the script editor, then when it says "insert id of the npc to follow" put the id of the npc that u want to follow you. then put the script on the npc. when u activate him(as if to talk to him) a message box will appear, click yes to make him follow you, click no to talk to him regularly, once hes following you he will follow you till he dies. (if it suddenly stops working, its cause of something, just tell me, but i dont think i have to put this on npcs.)
<edit>ops messed button pressed up, fixed</edit>

#15
Kethruch

Kethruch

    Idiot Savant

  • Members
  • PipPipPip
  • 933 posts
While it is helpful to get help in this fashion, understanding why it works is more important if you want to create more mods. For example - once you get the person following you, what other tasks would you like to set for him, or is he just a Sherpa to lug a lot of weight that you can't carry (like if his strength was 1000, and he had 5000 hits with a regeneration item on him.....). If you want him to be able to interact in certain situations, you have to know how to script it.

There are some tutorials listed on the first page of this site or you can go to Ghanburigahn's (sp) on the site listed above, as his is also excellent. (It's the one I learned with....) I highly suggest taking the time now, and saving yourself a lot of frustration later.

#16
Vampire

Vampire

    Newbie

  • Members
  • Pip
  • 19 posts
What language is the scripting done it? C++?

#17
Akrid

Akrid

    Old hand

  • Members
  • PipPipPip
  • 500 posts
I think it is C++ I used C++ 6.0 before for some basic applications and the scripting in the TES seems almost idenical other than a few word changes.

#18
Lord Of The Cheese

Lord Of The Cheese

    Enthusiast

  • Members
  • PipPip
  • 116 posts
i made just a basic script for the npc to follow him, if you need more ask ill help, but i seriously recommend the morrowind scripting for dummbies(thelys's site). scripting for morrowind is really easy, i used to look at it as something hard, but once you get the basic syntax, all u will ever need to do is check the functions once in awhile. i understand you kethruch(give a man a fish, feed him for a day; teach a man to fish, feed him for a lifetime),and all he said was to have the npc follow him, which is what i did with the script...

<edit>i morrowind isnt c++ it is its own language, much less complicated, and less powerful</edit>

#19
Vampire

Vampire

    Newbie

  • Members
  • Pip
  • 19 posts
Damn, because I was intrested in learning C++ :(

Oh well I will give it a try, what is the link?

#20
hundinman

hundinman

    Enthusiast

  • Members
  • PipPip
  • 201 posts

What language is the scripting done it? C++?

it's not in c++!!! it is a whole scripting language made by Bethesda. it bears little resemblance to c++. and if you are interested in learning c++ forget it and learn java, which is the new c++.

the programming language goes C -> C++ -> Java

hundinman and germanman




Page loaded in: 1.243 seconds