PDA

View Full Version : Creating new NPCs.


Scoundrel
09-26-2003, 11:14 AM
Could someone tell me how to do this? I tried myself, nut no luck. I'm trying to get Obi-Wan and few others working.

Prime
09-26-2003, 01:28 PM
I will be writing a little tutorial about how to do this sort of thing either tonight or this weekend. It will likely end up in the JA modeling section or in this section. Keep your eyes open :)

TK-8252
09-26-2003, 02:05 PM
Here's an example of what an Obi-Wan .npc file could look like...

Obi-Wan
{
playerModel obi-wan
saber jedi
saberColor blue
weapon WP_SABER
saberStyle 6
FP_HEAL 2
FP_LEVITATION 3
FP_SPEED 3
FP_PUSH 3
FP_PULL 2
FP_TELEPATHY 2
FP_GRIP 0
FP_LIGHTNING 0
FP_RAGE 0
FP_PROTECT 2
FP_ABSORB 2
FP_DRAIN 0
FP_SEE 2
FP_SABERTHROW 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
rank commander
reactions 5
aim 5
move 5
aggression 5
evasion 5
intelligence 5
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
yawSpeed 140
walkSpeed 55
runSpeed 200
snd obi-wan
sndcombat obi-wan
sndjedi obi-wan
health 400
dismemberProbHead 0
dismemberProbArms 5
dismemberProbLegs 0
dismemberProbHands 10
dismemberProbWaist 0
}

Just wait for Prime to make a tutorial. That should show you exactly what to do.

VanishingVision
09-26-2003, 02:11 PM
Ha, Ha! I have had the same question.... I plan to make a reincarnated Vader & Maul, similar to the comic book episode where Maul is brought back and fights Vader... I'd like to have the option to have a good version of them too, for an alternate story like... it would be awesome to fight along side of Luke, Maul, Vader and maybe Yoda even!

Cheers,
-VanishingVision

Scoundrel
09-26-2003, 04:19 PM
I think that I got it, but one thing more.. Where should I put model of NPC? Like that Obi-Wan model?

VanishingVision
09-26-2003, 06:38 PM
And would someone direct me to where I can learn more about the different variables like saberStyle 6 etc... thnx.

Cheers,
-VanishingVision

TK-8252
09-27-2003, 05:41 AM
I'm terrible at writing tutorials... Just wait for Prime, the Super Nerd. :D

Hey, you admited it in that ranks thread!

Scoundrel
09-27-2003, 06:07 AM
Yeah, write that soon Prime! And TK8252MJL, couldnt you just tell me where I should put that Obi-Wan model?;)

TK-8252
09-27-2003, 08:02 AM
Nah, I'm sorry. It's just too confusing for me to explain. Plus, it's 5:04 AM right now. I don't feel like thinking very hard.

And PLEASE read my signature, call me TK. You know, like R2 for R2-D2, and 3PO for C-3PO...?

idontlikegeorge
09-27-2003, 08:46 AM
Player models are in Base\models\player\charactername\

The saberStyle variable locks the NPCs saber stance.
1-2-3 are the single saber stances - fast, medium, strong;
4-Desann, 5-Tavion, 6-dual, 7-staff.

You wouldn't want, in that NPC, to have only saberStyle 6.
You would want:
saberStyle 1
saberStyle 2
saberStyle 3
and the Obi-Wan NPC would use all the single saber stances. Hell, it's Obi-Wan, give him Desann and Tavion's too!
saberStyle 4
saberStyle 5

For more customation, also look into some of the saber entries as well. Make some unique attributes to the saber the NPC has.