script and npc changes

This commit is contained in:
EpicValor 2023-09-02 22:56:38 -05:00
parent be5bd6b0bc
commit b3a5e77663
18 changed files with 1916 additions and 58 deletions

View File

@ -15684,7 +15684,7 @@
},
"Version": {
"type": "dword",
"value": 190
"value": 191
},
"Width": {
"type": "int",

View File

@ -3278,7 +3278,7 @@
"__struct_id": 0,
"Active": {
"type": "resref",
"value": "sc_ra_rnd_dialog"
"value": ""
},
"ConditionParams": {
"type": "list",

View File

@ -1204,6 +1204,34 @@
"value": "Bench / Pew that one can sit on.\r\n\r\nCreated by Shir'le E. Illios\r\nshirle@drowwanderer.com\r\nhttp://chosen.drowwanderer.com\r\n"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Bench / Pew that one can sit on.\r\n\r\nCreated by Shir'le E. Illios\r\nshirle@drowwanderer.com\r\nhttp://chosen.drowwanderer.com\r\n"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Bench / Pew that one can sit on.\r\n\r\nCreated by Shir'le E. Illios\r\nshirle@drowwanderer.com\r\nhttp://chosen.drowwanderer.com\r\n"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Bench / Pew that one can sit on.\r\n\r\nCreated by Shir'le E. Illios\r\nshirle@drowwanderer.com\r\nhttp://chosen.drowwanderer.com\r\n"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Bench / Pew that one can sit on.\r\n\r\nCreated by Shir'le E. Illios\r\nshirle@drowwanderer.com\r\nhttp://chosen.drowwanderer.com\r\n"
}
},
{
"__struct_id": 9,
"Comment": {
@ -2416,6 +2444,13 @@
"type": "cexostring",
"value": ""
}
},
{
"__struct_id": 5,
"Comment": {
"type": "cexostring",
"value": "This is a waypoint that can be placed in an interior area to mark it as a shop. This will affect the animations and behavior of NPCs using the PlayAmbientAnimations functions (see the OnSpawn script nw_c2_default9 and the library x0_i0_anims for details). \r\n\r\nNote that this feature will only work in modules that use the XP1 modified AI. "
}
}
]
}

File diff suppressed because it is too large Load Diff

View File

@ -9220,6 +9220,25 @@
"LIST": {
"type": "list",
"value": [
{
"__struct_id": 0,
"CR": {
"type": "float",
"value": 0.5
},
"FACTION": {
"type": "cexostring",
"value": "Commoner"
},
"NAME": {
"type": "cexostring",
"value": "A Noble"
},
"RESREF": {
"type": "resref",
"value": "anoble"
}
},
{
"__struct_id": 0,
"CR": {

Binary file not shown.

Binary file not shown.

View File

@ -18,8 +18,8 @@ void main()
float fOrient = GetFacing( oBench );
// Calculate location of the 2 pillows
location locPillow1 = Location( oArea, locBench + AngleToVector( fOrient + 90.0f ) / 2.0f, fOrient );
location locPillow2 = Location( oArea, locBench + AngleToVector( fOrient - 90.0f ) / 2.0f, fOrient );
location locPillow1 = Location( oArea, locBench + AngleToVector( fOrient + 90.0f ) / 2.1f, fOrient );
location locPillow2 = Location( oArea, locBench + AngleToVector( fOrient - 90.0f ) / 2.1f, fOrient );
// Create the 2 pillows
oPillow1 = CreateObject( OBJECT_TYPE_PLACEABLE, "plc_invisobj", locPillow1 );

View File

@ -22,9 +22,9 @@ void main()
SetLocalInt(OBJECT_SELF, "X2_NUMTIMES_BLOCKED",0);
ClearAllActions();
}
if(GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 5)
if(GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 2)
{
if(GetIsDoorActionPossible(oDoor, DOOR_ACTION_OPEN) && GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 7 )
if(GetIsDoorActionPossible(oDoor, DOOR_ACTION_OPEN) && GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 4 )
{
DoDoorAction(oDoor, DOOR_ACTION_OPEN);
}

828
_module/utc/anoble.utc.json Normal file
View File

@ -0,0 +1,828 @@
{
"__data_type": "UTC ",
"Appearance_Head": {
"type": "byte",
"value": 1
},
"Appearance_Type": {
"type": "word",
"value": 6
},
"ArmorPart_RFoot": {
"type": "byte",
"value": 1
},
"BodyBag": {
"type": "byte",
"value": 0
},
"BodyPart_Belt": {
"type": "byte",
"value": 0
},
"BodyPart_LBicep": {
"type": "byte",
"value": 1
},
"BodyPart_LFArm": {
"type": "byte",
"value": 1
},
"BodyPart_LFoot": {
"type": "byte",
"value": 1
},
"BodyPart_LHand": {
"type": "byte",
"value": 1
},
"BodyPart_LShin": {
"type": "byte",
"value": 1
},
"BodyPart_LShoul": {
"type": "byte",
"value": 0
},
"BodyPart_LThigh": {
"type": "byte",
"value": 1
},
"BodyPart_Neck": {
"type": "byte",
"value": 1
},
"BodyPart_Pelvis": {
"type": "byte",
"value": 1
},
"BodyPart_RBicep": {
"type": "byte",
"value": 1
},
"BodyPart_RFArm": {
"type": "byte",
"value": 1
},
"BodyPart_RHand": {
"type": "byte",
"value": 1
},
"BodyPart_RShin": {
"type": "byte",
"value": 1
},
"BodyPart_RShoul": {
"type": "byte",
"value": 0
},
"BodyPart_RThigh": {
"type": "byte",
"value": 1
},
"BodyPart_Torso": {
"type": "byte",
"value": 1
},
"Cha": {
"type": "byte",
"value": 10
},
"ChallengeRating": {
"type": "float",
"value": 0.5
},
"ClassList": {
"type": "list",
"value": [
{
"__struct_id": 2,
"Class": {
"type": "int",
"value": 20
},
"ClassLevel": {
"type": "short",
"value": 1
}
}
]
},
"Color_Hair": {
"type": "byte",
"value": 1
},
"Color_Skin": {
"type": "byte",
"value": 1
},
"Color_Tattoo1": {
"type": "byte",
"value": 1
},
"Color_Tattoo2": {
"type": "byte",
"value": 1
},
"Comment": {
"type": "cexostring",
"value": ""
},
"Con": {
"type": "byte",
"value": 12
},
"Conversation": {
"type": "resref",
"value": ""
},
"CRAdjust": {
"type": "int",
"value": 0
},
"CurrentHitPoints": {
"type": "short",
"value": 4
},
"DecayTime": {
"type": "dword",
"value": 5000
},
"Deity": {
"type": "cexostring",
"value": ""
},
"Description": {
"type": "cexolocstring",
"value": {}
},
"Dex": {
"type": "byte",
"value": 10
},
"Disarmable": {
"type": "byte",
"value": 0
},
"Equip_ItemList": {
"type": "list",
"value": []
},
"FactionID": {
"type": "word",
"value": 2
},
"FeatList": {
"type": "list",
"value": [
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 3112
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 2898
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 5195
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 2468
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 2919
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 4095
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 4092
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 2884
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 1089
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 3415
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 2285
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 258
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 4235
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 51
}
}
]
},
"FirstName": {
"type": "cexolocstring",
"value": {
"0": "A Noble"
}
},
"fortbonus": {
"type": "short",
"value": 0
},
"Gender": {
"type": "byte",
"value": 0
},
"GoodEvil": {
"type": "byte",
"value": 50
},
"HitPoints": {
"type": "short",
"value": 4
},
"Int": {
"type": "byte",
"value": 10
},
"Interruptable": {
"type": "byte",
"value": 1
},
"IsImmortal": {
"type": "byte",
"value": 0
},
"IsPC": {
"type": "byte",
"value": 0
},
"LastName": {
"type": "cexolocstring",
"value": {
"0": ""
}
},
"LawfulChaotic": {
"type": "byte",
"value": 50
},
"Lootable": {
"type": "byte",
"value": 0
},
"MaxHitPoints": {
"type": "short",
"value": 5
},
"NaturalAC": {
"type": "byte",
"value": 0
},
"NoPermDeath": {
"type": "byte",
"value": 0
},
"PaletteID": {
"type": "byte",
"value": 44
},
"PerceptionRange": {
"type": "byte",
"value": 11
},
"Phenotype": {
"type": "int",
"value": 0
},
"Plot": {
"type": "byte",
"value": 0
},
"PortraitId": {
"type": "word",
"value": 101
},
"Race": {
"type": "byte",
"value": 6
},
"refbonus": {
"type": "short",
"value": 0
},
"ScriptAttacked": {
"type": "resref",
"value": "x2_def_attacked"
},
"ScriptDamaged": {
"type": "resref",
"value": "x2_def_ondamage"
},
"ScriptDeath": {
"type": "resref",
"value": "x2_def_ondeath"
},
"ScriptDialogue": {
"type": "resref",
"value": "x2_def_onconv"
},
"ScriptDisturbed": {
"type": "resref",
"value": "x2_def_ondisturb"
},
"ScriptEndRound": {
"type": "resref",
"value": "x2_def_endcombat"
},
"ScriptHeartbeat": {
"type": "resref",
"value": "x2_def_heartbeat"
},
"ScriptOnBlocked": {
"type": "resref",
"value": "x2_def_onblocked"
},
"ScriptOnNotice": {
"type": "resref",
"value": "x2_def_percept"
},
"ScriptRested": {
"type": "resref",
"value": "x2_def_rested"
},
"ScriptSpawn": {
"type": "resref",
"value": "x2_def_spawn"
},
"ScriptSpellAt": {
"type": "resref",
"value": "x2_def_spellcast"
},
"ScriptUserDefine": {
"type": "resref",
"value": "x2_def_userdef"
},
"SkillList": {
"type": "list",
"value": [
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
}
]
},
"SoundSetFile": {
"type": "word",
"value": 15
},
"SpecAbilityList": {
"type": "list",
"value": []
},
"StartingPackage": {
"type": "byte",
"value": 82
},
"Str": {
"type": "byte",
"value": 10
},
"Subrace": {
"type": "cexostring",
"value": ""
},
"Tag": {
"type": "cexostring",
"value": "ANoble"
},
"Tail_New": {
"type": "dword",
"value": 0
},
"TemplateList": {
"type": "list",
"value": []
},
"TemplateResRef": {
"type": "resref",
"value": "anoble"
},
"WalkRate": {
"type": "int",
"value": 4
},
"willbonus": {
"type": "short",
"value": 0
},
"Wings_New": {
"type": "dword",
"value": 0
},
"Wis": {
"type": "byte",
"value": 10
},
"xAppearance_Head": {
"type": "word",
"value": 1
},
"xArmorPart_RFoot": {
"type": "word",
"value": 1
},
"xBodyPart_Belt": {
"type": "word",
"value": 0
},
"xBodyPart_LBicep": {
"type": "word",
"value": 1
},
"xBodyPart_LFArm": {
"type": "word",
"value": 1
},
"xBodyPart_LFoot": {
"type": "word",
"value": 1
},
"xBodyPart_LHand": {
"type": "word",
"value": 1
},
"xBodyPart_LShin": {
"type": "word",
"value": 1
},
"xBodyPart_LShoul": {
"type": "word",
"value": 0
},
"xBodyPart_LThigh": {
"type": "word",
"value": 1
},
"xBodyPart_Neck": {
"type": "word",
"value": 1
},
"xBodyPart_Pelvis": {
"type": "word",
"value": 1
},
"xBodyPart_RBicep": {
"type": "word",
"value": 1
},
"xBodyPart_RFArm": {
"type": "word",
"value": 1
},
"xBodyPart_RHand": {
"type": "word",
"value": 1
},
"xBodyPart_RShin": {
"type": "word",
"value": 1
},
"xBodyPart_RShoul": {
"type": "word",
"value": 0
},
"xBodyPart_RThigh": {
"type": "word",
"value": 1
},
"xBodyPart_Torso": {
"type": "word",
"value": 1
}
}

View File

@ -356,11 +356,11 @@
},
"ScriptHeartbeat": {
"type": "resref",
"value": "npc_sit_stay"
"value": "x2_def_heartbeat"
},
"ScriptOnBlocked": {
"type": "resref",
"value": "re_common_blkd"
"value": "x2_def_onblocked"
},
"ScriptOnNotice": {
"type": "resref",
@ -380,7 +380,7 @@
},
"ScriptUserDefine": {
"type": "resref",
"value": "re_com_userdef"
"value": "x2_def_userdef"
},
"SkillList": {
"type": "list",

View File

@ -200,55 +200,55 @@
},
"ScriptAttacked": {
"type": "resref",
"value": "nw_c2_default5"
"value": "x2_def_attacked"
},
"ScriptDamaged": {
"type": "resref",
"value": "nw_c2_default6"
"value": "x2_def_ondamage"
},
"ScriptDeath": {
"type": "resref",
"value": "nw_c2_default7"
"value": "x2_def_ondeath"
},
"ScriptDialogue": {
"type": "resref",
"value": "nw_c2_default4"
"value": "x2_def_onconv"
},
"ScriptDisturbed": {
"type": "resref",
"value": "nw_c2_default8"
"value": "x2_def_ondisturb"
},
"ScriptEndRound": {
"type": "resref",
"value": "nw_c2_default3"
"value": "x2_def_endcombat"
},
"ScriptHeartbeat": {
"type": "resref",
"value": "nw_c2_default1"
"value": "x2_def_heartbeat"
},
"ScriptOnBlocked": {
"type": "resref",
"value": "nw_c2_defaulte"
"value": "x2_def_onblocked"
},
"ScriptOnNotice": {
"type": "resref",
"value": "nw_c2_default2"
"value": "x2_def_percept"
},
"ScriptRested": {
"type": "resref",
"value": "nw_c2_defaulta"
"value": "x2_def_rested"
},
"ScriptSpawn": {
"type": "resref",
"value": "nw_c2_default9"
"value": "x2_def_spawn"
},
"ScriptSpellAt": {
"type": "resref",
"value": "nw_c2_defaultb"
"value": "x2_def_spellcast"
},
"ScriptUserDefine": {
"type": "resref",
"value": "nw_c2_defaultd"
"value": "x2_def_userdef"
},
"SkillList": {
"type": "list",

View File

@ -345,11 +345,11 @@
},
"ScriptHeartbeat": {
"type": "resref",
"value": "npc_sit_woodenbe"
"value": "x2_def_heartbeat"
},
"ScriptOnBlocked": {
"type": "resref",
"value": "re_common_blkd"
"value": "x2_def_onblocked"
},
"ScriptOnNotice": {
"type": "resref",
@ -369,7 +369,7 @@
},
"ScriptUserDefine": {
"type": "resref",
"value": "re_com_userdef"
"value": "x2_def_userdef"
},
"SkillList": {
"type": "list",

View File

@ -349,7 +349,7 @@
},
"ScriptOnBlocked": {
"type": "resref",
"value": "re_common_blkd"
"value": "x2_def_onblocked"
},
"ScriptOnNotice": {
"type": "resref",
@ -369,7 +369,7 @@
},
"ScriptUserDefine": {
"type": "resref",
"value": "re_com_userdef"
"value": "x2_def_userdef"
},
"SkillList": {
"type": "list",

View File

@ -345,11 +345,11 @@
},
"ScriptHeartbeat": {
"type": "resref",
"value": "npc_sit_woodenbe"
"value": "x2_def_heartbeat"
},
"ScriptOnBlocked": {
"type": "resref",
"value": "re_common_blkd"
"value": "x2_def_onblocked"
},
"ScriptOnNotice": {
"type": "resref",
@ -369,7 +369,7 @@
},
"ScriptUserDefine": {
"type": "resref",
"value": "re_com_userdef"
"value": "x2_def_userdef"
},
"SkillList": {
"type": "list",

View File

@ -472,7 +472,7 @@
},
"ScriptOnBlocked": {
"type": "resref",
"value": "re_common_blkd"
"value": "x2_def_onblocked"
},
"ScriptOnNotice": {
"type": "resref",
@ -492,7 +492,7 @@
},
"ScriptUserDefine": {
"type": "resref",
"value": "re_com_userdef"
"value": "x2_def_userdef"
},
"SkillList": {
"type": "list",

View File

@ -345,11 +345,11 @@
},
"ScriptHeartbeat": {
"type": "resref",
"value": "npc_sit_woodenbe"
"value": "x2_def_heartbeat"
},
"ScriptOnBlocked": {
"type": "resref",
"value": "re_common_blkd"
"value": "x2_def_onblocked"
},
"ScriptOnNotice": {
"type": "resref",
@ -369,7 +369,7 @@
},
"ScriptUserDefine": {
"type": "resref",
"value": "re_com_userdef"
"value": "x2_def_userdef"
},
"SkillList": {
"type": "list",

Binary file not shown.