lfnetwork.com mark read register faq members calendar

Thread: Having Problems with NPC with sabers
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 04-12-2005, 10:20 AM   #1
Zappa_0
JOM Director
 
Zappa_0's Avatar
 
Join Date: May 2002
Location: USA
Posts: 2,967
Having Problems with NPC with sabers

I am having problems of them spawning and not using the right color I want them to have. I have it to a certain color, but its random, how to fix this?

Zappa_0 is offline   you may: quote & reply,
Old 04-12-2005, 11:38 AM   #2
Codja X
Junior Member
 
Codja X's Avatar
 
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
Post your .npc file here and we'll have a look
Codja X is offline   you may: quote & reply,
Old 04-12-2005, 01:55 PM   #3
Zappa_0
JOM Director
 
Zappa_0's Avatar
 
Join Date: May 2002
Location: USA
Posts: 2,967
ki
{
playerModel ki_adi
weapon WP_SABER
saber single_1
saberColor blue
saberStyle 2
FP_LEVITATION 3
FP_PULL 3
FP_PUSH 3
FP_SEE 3
FP_SPEED 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 0
rank captain
aggression 5
aim 5
evasion 5
intelligence 5
move 5
reactions 5
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 5000
snd ki_adi
sndcombat ki_adi
sndextra ki_adi
sndjedi ki_adi
dismemberProbArms 100
dismemberProbHands 100
dismemberProbHead 100
dismemberProbLegs 100
dismemberProbWaist 100
}

ti
{
playerModel ShaakTiVM
sex female
scale 95
weapon WP_SABER
saber single_8
saberColor blue
saberStyle 2
FP_LEVITATION 3
FP_PULL 3
FP_PUSH 3
FP_SEE 3
FP_SPEED 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 0
rank commander
aggression 5
aim 5
evasion 5
intelligence 5
move 5
reactions 5
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 5000
}

aayla
{
playerModel aayla
sex female
weapon WP_SABER
saber single_4
saberColor blue
saberStyle 2
FP_LEVITATION 3
FP_PULL 3
FP_PUSH 3
FP_SEE 3
FP_SPEED 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 0
rank commander
aggression 4
aim 4
evasion 5
intelligence 4
move 4
reactions 4
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 5000
}

wolf
{
playerModel werewolf
weapon WP_SABER
saber single_7
saberColor green
saberStyle 2
FP_LEVITATION 3
FP_PULL 1
FP_PUSH 1
FP_SEE 2
FP_SPEED 1
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 3
rank ltcomm
aggression 5
move 5
reactions 5
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 2500
}

cole
{
playerModel Coleman_Trebor_VM
weapon WP_SABER
saber single_8
saberColor green
saberStyle 2
FP_LEVITATION 3
FP_PULL 1
FP_PUSH 1
FP_SEE 1
FP_SPEED 2
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 3
rank ltcomm
aggression 5
aim 5
evasion 4
intelligence 4
move 4
reactions 4
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 2500
snd Coleman_Trebor
sndcombat Coleman_Trebor
sndextra Coleman_Trebor
sndjedi Coleman_Trebor
}

jmalak
{
playerModel malek
weapon WP_SABER
saber single_2
saberColor yellow
saberStyle 2
FP_LEVITATION 2
FP_PULL 1
FP_PUSH 1
FP_SEE 2
FP_SPEED 1
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 3
rank ltcomm
aggression 4
aim 4
evasion 4
intelligence 4
move 4
reactions 4
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 2500
snd malek
sndcombat malek
sndextra malek
sndjedi malek
}

grev
{
playerModel general_grievous
scale 110
weapon WP_SABER
saber single_9
saberColor blue
saber2 Kyle
saber2Color green
saberStyle 6
FP_LEVITATION 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 3
rank captain
aggression 5
aim 5
evasion 5
intelligence 5
move 5
reactions 5
playerTeam TEAM_ENEMY
enemyTeam TEAM_ENEMY
class CLASS_DESANN
health 7500
snd grievous
sndcombat grievous
sndextra grievous
sndjedi grievous
}

Zappa_0 is offline   you may: quote & reply,
Old 04-12-2005, 05:25 PM   #4
Codja X
Junior Member
 
Codja X's Avatar
 
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
Is Grevious's random or does his come out red?

They're all CLASS_JEDI, so that would probably explain why they are random. Try CLASS_KYLE for blue saber and CLASS_LUKE for green saber.

You may want to try specifying numbers instead of typing the actual colour in (1=red for example). I'll check it out myself when I get home tonight as i've got a couple of npcs that need sorting out as well.
Codja X is offline   you may: quote & reply,
Old 04-12-2005, 05:52 PM   #5
Zappa_0
JOM Director
 
Zappa_0's Avatar
 
Join Date: May 2002
Location: USA
Posts: 2,967
Grevious is random too....

Zappa_0 is offline   you may: quote & reply,
Old 04-12-2005, 06:21 PM   #6
Codja X
Junior Member
 
Codja X's Avatar
 
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
Just had a go myself and it seems to work okay for me:

jedi_red
{
playerModel jedi
saber single_2
saberColor red
weapon WP_SABER
saberStyle 1
saberStyle 3
saberStyle 2
FP_HEAL 1
FP_LEVITATION 2
FP_SPEED 2
FP_PUSH 2
FP_PULL 1
FP_TELEPATHY 1
FP_GRIP 0
FP_LIGHTNING 0
FP_RAGE 0
FP_PROTECT 1
FP_ABSORB 1
FP_DRAIN 0
FP_SEE 1
FP_SABERTHROW 2
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
forceRegenRate 150
forcePowerMax 90
rank lt
reactions 3
aim 3
move 3
aggression 3
evasion 2
intelligence 3
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
yawSpeed 140
walkSpeed 55
runSpeed 200
snd jedi1
sndcombat jedi1
sndjedi jedi1
health 200
dismemberProbHead 0
dismemberProbArms 5
dismemberProbLegs 0
dismemberProbHands 10
dismemberProbWaist 0
}

In game console, npc spawn jedi_red

Works okay. Have you tried putting them into separate npc files? I'm not overly sure why that would get it working, but it's worth a go

Codja X is offline   you may: quote & reply,
Old 04-12-2005, 07:53 PM   #7
Zappa_0
JOM Director
 
Zappa_0's Avatar
 
Join Date: May 2002
Location: USA
Posts: 2,967
Just tried that, and still the same outcome.

Zappa_0 is offline   you may: quote & reply,
Old 04-12-2005, 11:47 PM   #8
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
See where it says saber single_8? Go to the .saber files and make sure the saber you want is set to the color you want for whichever saber you want your npc to use.


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 04-13-2005, 09:59 AM   #9
Zappa_0
JOM Director
 
Zappa_0's Avatar
 
Join Date: May 2002
Location: USA
Posts: 2,967
Yep tinny your right...the saber color for most of the sabers are random.

Zappa_0 is offline   you may: quote & reply,
Old 04-13-2005, 03:00 PM   #10
Codja X
Junior Member
 
Codja X's Avatar
 
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
I think i'll stick to mapping in the future
Codja X is offline   you may: quote & reply,
Old 04-13-2005, 03:12 PM   #11
Zappa_0
JOM Director
 
Zappa_0's Avatar
 
Join Date: May 2002
Location: USA
Posts: 2,967
You got any maps out codja X?

Zappa_0 is offline   you may: quote & reply,
Old 04-13-2005, 04:51 PM   #12
Codja X
Junior Member
 
Codja X's Avatar
 
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
Not out yet, but i've a WIP in action - based on the Clone Wars cartoons and set on Muunilinst:

http://66.90.64.18/showthread.php?s=&threadid=133471

or

http://www.map-review.com/forums/viewtopic.php?t=800

and a more updated version:

http://www.map-review.com/forums/viewtopic.php?t=1235

Nowhere near finished yet though
Codja X is offline   you may: quote & reply,
Old 04-13-2005, 07:11 PM   #13
Zappa_0
JOM Director
 
Zappa_0's Avatar
 
Join Date: May 2002
Location: USA
Posts: 2,967
WOW thats nice!

Zappa_0 is offline   you may: quote & reply,
Old 04-17-2005, 04:31 PM   #14
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,186
Is there any reason why you're not working with the Clone Wars mod?


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is online now   you may: quote & reply,
Old 04-18-2005, 01:32 PM   #15
Codja X
Junior Member
 
Codja X's Avatar
 
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
Quote:
Originally posted by razorace
Is there any reason why you're not working with the Clone Wars mod?
2 reasons:

1) time, and
2) my very recently fried motherboard
3) My job involves targets and deadlines, so when it comes to mapping (which is a hobby), I like to work at my own pace and not have other people relying on me and vice versa etc

The lack of time is probably my biggest enemy though. Maybe I should simply stop sleeping
Codja X is offline   you may: quote & reply,
Old 04-18-2005, 02:16 PM   #16
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,186
Ah, well, we're not exactly picky about deadlines.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is online now   you may: quote & reply,
Old 04-18-2005, 07:21 PM   #17
MyKell
Rookie
 
Join Date: Jun 2004
Location: Dallas, TX
Posts: 25
SaberColor is a number, not a word. You can use NPC Tool for coding them more easily.
MyKell is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Having Problems with NPC with sabers

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:33 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.