What is wrong with this? [message #55416] |
Mon, 28 December 2009 21:00 |
jp_b46
Messages: 70 Registered: January 2009
|
|
|
|
Hello, i tried to use customizable NPC to make a guard, but they just wanter around, they dont do anything, i used this script
NewThing AICreature;
Player 4;
UID 1844674198899549415592154;
DefinitionType "CREATURE_HERO_RIVAL_GOOD_01";
ScriptName GuardToHelpDefend;
ScriptData “GUARD_NERVOUS”;
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
Health 1.00000;
ObjectScale 1.00000;
OverridingBrainName "BRAIN_GUARD";
HasInformation FALSE;
WanderWithInformation FALSE;
WaveWithInformation FALSE;
ContinueAIWithInformation FALSE;
RespondingToFollowAndWait FALSE;
CanBeMarried FALSE;
CanBeCourted FALSE;
AllowedToFollowHero FALSE;
InitialPosX 4670.33000;
InitialPosY 3631.56500;
InitialPosZ 20.02433;
EnableCreatureAutoPlacing FALSE;
RegionFollowingOverriddenFromScript FALSE;
HasRelationships FALSE;
HomeBuildingUID 0;
WorkBuildingUID 0;
FatherCreatureUID 0;
MotherCreatureUID 0;
SpouseCreatureUID 0;
StartCTCPhysicsNavigator;
PositionX 94.33057;
PositionY 79.56567;
PositionZ 20.02433;
RHSetForwardX 0.00000;
RHSetForwardY 1.00000;
RHSetForwardZ 0.00000;
RHSetUpX 0.00068;
RHSetUpY -0.00253;
RHSetUpZ 1.00000;
EndCTCPhysicsNavigator;
StartCTCEnemy;
FriendsWithEverythingFlag FALSE;
EnableFollowersEnemyProxy TRUE;
FactionName "";
EndCTCEnemy;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCRandomAppearanceMorph;
Seed -859535768;
EndCTCRandomAppearanceMorph;
StartCTCHeroMorph;
Strength 0.7;
Will 0.0;
Skill 1.0;
Age 0.3;
Morality 0.5;
Fatness 0.0;
Tan 0.0;
EndCTCHeroMorph;
StartCTCHeroAttachableAppearanceModifiers;
HairModifierNames[0] "OBJECT_HERO_NO_HAIR_01";
HairModifierNames[1] "OBJECT_HERO_MASK_STEALTH";
HairModifierNames[2] "OBJECT_HERO_BOOTS_CHAINMAIL";
HairModifierNames[3] "OBJECT_HERO_TROUSERS_CHAINMAIL";
HairModifierNames[4] "OBJECT_HERO_SHIRT_CHAINMAIL";
HairModifierNames[5] "OBJECT_HERO_GLOVES_CHAINMAIL";
EndCTCHeroAttachableAppearanceModifiers;
EndThing;
Could someone tell me whats wrong with this?
|
|
|
|
|
Re: What is wrong with this? [message #55523 is a reply to message #55416] |
Sun, 03 January 2010 05:37 |
Satoh
Messages: 19 Registered: December 2009 Location: NC USA
|
|
|
|
All I recognize (though I've yet to have a direct problem with it) is that the Player is set to 4, denoting inanimate objects... try setting it to 3, which is armed NPC.
I don't guarantee this will affect anything, as there are markers that use the -1 for marker as well as ones that use 4 for object...
It might help, might not, hope it does, good luck.
EDIT: you could also try changing the GUARD_NERVOUS to just GUARD or some other type of guard...
[Updated on: Sun, 03 January 2010 05:40] Report message to a moderator
|
|
|
|