Mostly npc script adjusments

and placeable tag changes
This commit is contained in:
EpicValor 2023-09-04 21:06:50 -05:00
parent 430f3102d9
commit a896bdd164
62 changed files with 9383 additions and 293 deletions

View File

@ -4891,7 +4891,7 @@
},
"Version": {
"type": "dword",
"value": 155
"value": 156
},
"Width": {
"type": "int",

View File

@ -2913,7 +2913,7 @@
},
"Version": {
"type": "dword",
"value": 31
"value": 32
},
"Width": {
"type": "int",

View File

@ -806,7 +806,7 @@
},
"Version": {
"type": "dword",
"value": 23
"value": 24
},
"Width": {
"type": "int",

View File

@ -4418,7 +4418,7 @@
},
"Version": {
"type": "dword",
"value": 35
"value": 36
},
"Width": {
"type": "int",

View File

@ -4461,7 +4461,7 @@
},
"Version": {
"type": "dword",
"value": 21
"value": 22
},
"Width": {
"type": "int",

View File

@ -4891,7 +4891,7 @@
},
"Version": {
"type": "dword",
"value": 26
"value": 27
},
"Width": {
"type": "int",

View File

@ -7901,7 +7901,7 @@
},
"Version": {
"type": "dword",
"value": 24
"value": 25
},
"Width": {
"type": "int",

View File

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

View File

@ -2913,7 +2913,7 @@
},
"Version": {
"type": "dword",
"value": 36
"value": 39
},
"Width": {
"type": "int",

View File

@ -822,6 +822,20 @@
"type": "cexostring",
"value": "This is a waypoint that can be placed in an area to mark a safe point where injured NPCs can rest. \r\n\r\nThis will affect the animations and behavior of NPCs that spawn inside this area that are 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. "
}
},
{
"__struct_id": 5,
"Comment": {
"type": "cexostring",
"value": "spawn 1-3 npc's.\r\nonce killed no more spawned.\r\nspawn randomly in 5m rad of waypoint.\r\ndaytime only, gone at night.\r\nrandon walk in 10m rad of waypoint."
}
},
{
"__struct_id": 5,
"Comment": {
"type": "cexostring",
"value": "spawn 1-3 npc's.\r\nonce killed no more spawned.\r\nspawn randomly in 5m rad of waypoint.\r\ndaytime only, gone at night.\r\nrandon walk in 10m rad of waypoint."
}
}
]
}

View File

@ -2211,6 +2211,118 @@
"type": "cexostring",
"value": ""
}
},
{
"__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": {
"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": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
}
}
]
},

View File

@ -86,6 +86,34 @@
"type": "cexostring",
"value": "devinor city main\r\nthe kings arms\r\nPLOT NPC!!!"
}
},
{
"__struct_id": 4,
"Comment": {
"type": "cexostring",
"value": "devinor city main"
}
},
{
"__struct_id": 4,
"Comment": {
"type": "cexostring",
"value": ""
}
},
{
"__struct_id": 4,
"Comment": {
"type": "cexostring",
"value": ""
}
},
{
"__struct_id": 4,
"Comment": {
"type": "cexostring",
"value": ""
}
}
]
},

View File

@ -2042,7 +2042,7 @@
},
"ScriptSpawn": {
"type": "resref",
"value": "nw_c2_default9si"
"value": "queen_sit"
},
"ScriptSpellAt": {
"type": "resref",

View File

@ -1338,7 +1338,7 @@
},
"XPosition": {
"type": "float",
"value": 15.32663726806641
"value": 19.03022384643555
},
"YOrientation": {
"type": "float",
@ -1346,11 +1346,11 @@
},
"YPosition": {
"type": "float",
"value": 24.27904510498047
"value": 25.44141006469727
},
"ZPosition": {
"type": "float",
"value": 0.02049732208251953
"value": -5.7220458984375e-006
}
},
{
@ -6824,7 +6824,7 @@
},
"Bearing": {
"type": "float",
"value": 0.09817466884851456
"value": 2.061670064926148
},
"BodyBag": {
"type": "byte",
@ -6950,7 +6950,7 @@
},
"OnUsed": {
"type": "resref",
"value": ""
"value": "sei_sit"
},
"OnUserDefined": {
"type": "resref",
@ -7049,7 +7049,7 @@
},
"Bearing": {
"type": "float",
"value": -3.043408632278442
"value": 1.055378675460815
},
"BodyBag": {
"type": "byte",
@ -7175,7 +7175,7 @@
},
"OnUsed": {
"type": "resref",
"value": ""
"value": "sei_sit"
},
"OnUserDefined": {
"type": "resref",
@ -7203,7 +7203,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -10162,7 +10162,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -10391,7 +10391,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -10620,7 +10620,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -10849,7 +10849,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -11078,7 +11078,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -11307,7 +11307,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -11536,7 +11536,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -11765,7 +11765,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -12436,7 +12436,7 @@
},
"Plot": {
"type": "byte",
"value": 0
"value": 1
},
"PortraitId": {
"type": "word",
@ -12452,7 +12452,7 @@
},
"Tag": {
"type": "cexostring",
"value": "CHAIR_OldMan"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -12681,7 +12681,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -12910,7 +12910,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -13139,7 +13139,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Chair"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -13597,7 +13597,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Couch_sit2"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -13826,7 +13826,7 @@
},
"Tag": {
"type": "cexostring",
"value": "Couch_sit2"
"value": "CHAIR"
},
"TemplateResRef": {
"type": "resref",
@ -20785,7 +20785,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01R03_SS_SR05_DT_RW10"
"0": "SP_SX01_DT_RW10"
}
},
"MapNote": {
@ -21550,6 +21550,132 @@
"type": "float",
"value": 0.009999841451644898
}
},
{
"__struct_id": 5,
"Appearance": {
"type": "byte",
"value": 2
},
"Description": {
"type": "cexolocstring",
"value": {
"0": ""
}
},
"HasMapNote": {
"type": "byte",
"value": 0
},
"LinkedTo": {
"type": "cexostring",
"value": ""
},
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_DT_RW10"
}
},
"MapNote": {
"type": "cexolocstring",
"value": {}
},
"MapNoteEnabled": {
"type": "byte",
"value": 0
},
"Tag": {
"type": "cexostring",
"value": "oldman"
},
"TemplateResRef": {
"type": "resref",
"value": "sp_sx01r03_ss_sr"
},
"XOrientation": {
"type": "float",
"value": 1.541428310757299e-043
},
"XPosition": {
"type": "float",
"value": 21.54107284545898
},
"YOrientation": {
"type": "float",
"value": 1.0
},
"YPosition": {
"type": "float",
"value": 7.453859329223633
},
"ZPosition": {
"type": "float",
"value": 0.01000607013702393
}
},
{
"__struct_id": 5,
"Appearance": {
"type": "byte",
"value": 2
},
"Description": {
"type": "cexolocstring",
"value": {
"0": ""
}
},
"HasMapNote": {
"type": "byte",
"value": 0
},
"LinkedTo": {
"type": "cexostring",
"value": ""
},
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_DT_RW10"
}
},
"MapNote": {
"type": "cexolocstring",
"value": {}
},
"MapNoteEnabled": {
"type": "byte",
"value": 0
},
"Tag": {
"type": "cexostring",
"value": "oldman"
},
"TemplateResRef": {
"type": "resref",
"value": "sp_sx01r03_ss_sr"
},
"XOrientation": {
"type": "float",
"value": 1.019387880208499e-038
},
"XPosition": {
"type": "float",
"value": 14.12450218200684
},
"YOrientation": {
"type": "float",
"value": 1.0
},
"YPosition": {
"type": "float",
"value": 23.98554229736328
},
"ZPosition": {
"type": "float",
"value": 0.0166015625
}
}
]
}

View File

@ -2002,7 +2002,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2063,7 +2063,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2124,7 +2124,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2247,7 +2247,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2308,7 +2308,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2369,7 +2369,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2430,7 +2430,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2491,7 +2491,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2552,7 +2552,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2613,7 +2613,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2674,7 +2674,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2735,7 +2735,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2796,7 +2796,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2857,7 +2857,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -2918,7 +2918,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX02R03_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX02R03_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {

View File

@ -8146,7 +8146,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -8209,7 +8209,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -8272,7 +8272,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -8335,7 +8335,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -8398,7 +8398,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -8461,7 +8461,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01R02_PA_SR05_TM10M_DS_RW10"
"0": "SP_SX01R02_PA_SR05_TM15M_RW10"
}
},
"MapNote": {
@ -8524,7 +8524,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM15M_RW15"
}
},
"MapNote": {

View File

@ -3378,7 +3378,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM10M_RW15"
}
},
"MapNote": {
@ -3441,7 +3441,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM10M_RW15"
}
},
"MapNote": {
@ -3504,7 +3504,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM10M_RW15"
}
},
"MapNote": {
@ -3567,7 +3567,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX05R08_PA_SR05_TM10M_DS_RW15"
"0": "SP_SX05R08_PA_SR05_TM10M_RW15"
}
},
"MapNote": {

View File

@ -3739,7 +3739,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -3800,7 +3800,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -3861,7 +3861,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -3922,7 +3922,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -3983,7 +3983,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -4044,7 +4044,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4105,7 +4105,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4166,7 +4166,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -4227,7 +4227,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4288,7 +4288,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4349,7 +4349,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -4410,7 +4410,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4471,7 +4471,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4532,7 +4532,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4593,7 +4593,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -4654,7 +4654,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4715,7 +4715,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -4776,7 +4776,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -4837,7 +4837,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -4898,7 +4898,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -4959,7 +4959,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5020,7 +5020,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5081,7 +5081,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5142,7 +5142,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5203,7 +5203,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -5264,7 +5264,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5325,7 +5325,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -5386,7 +5386,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5447,7 +5447,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5508,7 +5508,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -5569,7 +5569,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5630,7 +5630,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5691,7 +5691,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -5752,7 +5752,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -5813,7 +5813,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -5874,7 +5874,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -5935,7 +5935,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {
@ -5996,7 +5996,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -6057,7 +6057,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -6118,7 +6118,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -6179,7 +6179,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -6240,7 +6240,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX03R06_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX03R06_PA_GT01_SR05_TM15M_DS_RW15"
}
},
"MapNote": {
@ -6301,7 +6301,7 @@
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "SP_SX01_PA_GT01_SR05_TM10M_DS_RW15"
"0": "SP_SX01_PA_GT01_SR05_TM15M_RW15"
}
},
"MapNote": {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -374,6 +374,17 @@
"value": "corpse"
}
},
{
"__struct_id": 0,
"NAME": {
"type": "cexostring",
"value": "NPC Waypoint"
},
"RESREF": {
"type": "resref",
"value": "invisobj002"
}
},
{
"__struct_id": 0,
"NAME": {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
_module/ncs/oldman_sit.ncs Normal file

Binary file not shown.

BIN
_module/ncs/queen_sit.ncs Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,7 +7,7 @@ to an areacleanup script which cleans the area
void main()
{
float cleanupdelay = 600.0; //if you change this it alters how long before
float cleanupdelay = 300.0; //if you change this it alters how long before
// the area cleans up, if you do change it INCLUDE THE DECIMAL, or it won't
// work
if(!GetIsPC(GetExitingObject()) ) {

View File

@ -0,0 +1,60 @@
//::///////////////////////////////////////////////
//:: npc_sit_stay
//:://////////////////////////////////////////////
/*Goes on the OnSpawn and OnConversation script of the NPC that you want to stay <span class="highlight">seated</span>*/
#include "nw_i0_spells"
#include "NW_I0_GENERIC"
void main()
{
int nMatch = GetListenPatternNumber();
object oShouter = GetLastSpeaker();
object oIntruder;
if (nMatch == -1 && GetCommandable(OBJECT_SELF))
{
ClearAllActions();
}
else
if(nMatch != -1 && GetIsObjectValid(oShouter) && !GetIsPC(oShouter) && GetIsFriend(oShouter))
{
if(nMatch == 4)
{
oIntruder = GetLocalObject(oShouter, "NW_BLOCKER_INTRUDER");
}
else if (nMatch == 5)
{
oIntruder = GetLastHostileActor(oShouter);
if(!GetIsObjectValid(oIntruder))
{
oIntruder = GetAttemptedAttackTarget();
if(!GetIsObjectValid(oIntruder))
{
oIntruder = GetAttemptedSpellTarget();
if(!GetIsObjectValid(oIntruder))
{
oIntruder = OBJECT_INVALID;
}
}
}
}
RespondToShout(oShouter, nMatch, oIntruder);
}
if(GetSpawnInCondition(NW_FLAG_ON_DIALOGUE_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1004));
}
if(GetCommandable(OBJECT_SELF))
{
//{
//BeginConversation();
//}
ClearAllActions();
string sWay = "NW_STOP";
object oWay = GetRandomObjectByTag(sWay, 110.0);
ActionMoveToObject (oWay, FALSE);
}
DelayCommand(GetRandomDelay(180.0, 300.0), ExecuteScript("npc_sit_chair", OBJECT_SELF));
}

View File

@ -52,11 +52,11 @@ void main()
int nChair = 50;
string sMyTagName = GetTag(OBJECT_SELF);
string sSittableTagName = "CHAIR";
object oChair = GetRandomObjectByTag(sSittableTagName, 99.0);
object oChair = GetRandomObjectByTag(sSittableTagName, 110.0);
ActionMoveToObject (oChair, FALSE);
ActionSit(oChair);
}
DelayCommand(GetRandomDelay(180.0, 240.0), ExecuteScript("npc_sit_chair", OBJECT_SELF));
DelayCommand(GetRandomDelay(180.0, 300.0), ExecuteScript("npc_sit_chair", OBJECT_SELF));
}

View File

@ -53,10 +53,10 @@ void main()
int nChair = 1;
string sMyTagName = GetTag(OBJECT_SELF);
string sSittableTagName = "CHAIR_" + sMyTagName;
object oChair = GetRandomObjectByTag(sSittableTagName, 99.0);
object oChair = GetRandomObjectByTag(sSittableTagName, 110.0);
ActionMoveToObject (oChair, FALSE);
ActionSit(oChair);
}
DelayCommand(GetRandomDelay(30.0, 60.0), ExecuteScript("npc_sit_stay", OBJECT_SELF));
DelayCommand(GetRandomDelay(120.0, 300.0), ExecuteScript("npc_sit_stay", OBJECT_SELF));
}

View File

@ -53,10 +53,10 @@ void main()
int nChair = 1;
string sMyTagName = GetTag(OBJECT_SELF);
string sSittableTagName = "Woodenbench";
object oChair = GetRandomObjectByTag(sSittableTagName, 99.0);
object oChair = GetRandomObjectByTag(sSittableTagName, 110.0);
ActionMoveToObject (oChair, FALSE);
ActionSit(oChair);
}
DelayCommand(GetRandomDelay(180.0, 240.0), ExecuteScript("npc_sit_woodenbe", OBJECT_SELF));
DelayCommand(GetRandomDelay(200.0, 280.0), ExecuteScript("npc_sit_woodenbe", OBJECT_SELF));
}

View File

@ -0,0 +1,13 @@
#include "x0_i0_anims"
#include "x0_i0_treasure"
#include "x2_inc_switches"
void main()
{
SetAnimationCondition(NW_ANIM_FLAG_IS_CIVILIZED);
SetAnimationCondition(NW_ANIM_FLAG_CHATTER);
SetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS);
ClearAllActions();
ActionSit (GetNearestObjectByTag ("CHAIR", OBJECT_SELF));
DelayCommand(10.0,ExecuteScript("oldman_sit",OBJECT_SELF));
}

View File

@ -0,0 +1,5 @@
void main()
{
ActionSit (GetNearestObjectByTag ("CHAIR_Queen", OBJECT_SELF));
DelayCommand(10.0,ExecuteScript("queen_sit",OBJECT_SELF));
}

View File

@ -11,7 +11,7 @@
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 25, 2001
//:://////////////////////////////////////////////
#include "nw_i0_spells"
#include "ms_name_inc"
#include "rnd_commoner_inc"
#include "NW_O2_CONINCLUDE"
@ -65,7 +65,7 @@ void main()
//Creatures that spawn in during the night will be asleep.
//SetSpawnInCondition(NW_FLAG_DAY_NIGHT_POSTING);
//SetSpawnInCondition(NW_FLAG_APPEAR_SPAWN_IN_ANIMATION);
//SetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS);
SetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS);
//SetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS);
//This will play Ambient Animations until the NPC sees an enemy or is cleared.
@ -110,7 +110,8 @@ void main()
// 2. If the tag of the Way Point is "POST_" + NPC TAG the creature will return this way point after
// combat.
GenerateNPCTreasure(); //* Use this to create a small amount of treasure on the creature
DelayCommand(10.5, ExecuteScript("npc_sit_woodenbe", OBJECT_SELF));
DelayCommand(GetRandomDelay(5.0, 15.0), ExecuteScript("npc_sit_woodenbe", OBJECT_SELF));
}

View File

@ -11,7 +11,7 @@
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 25, 2001
//:://////////////////////////////////////////////
#include "nw_i0_spells"
#include "ms_name_inc"
#include "rnd_commoner_inc"
#include "NW_O2_CONINCLUDE"
@ -110,7 +110,8 @@ void main()
// 2. If the tag of the Way Point is "POST_" + NPC TAG the creature will return this way point after
// combat.
GenerateNPCTreasure(); //* Use this to create a small amount of treasure on the creature
DelayCommand(10.5, ExecuteScript("npc_sit_stay", OBJECT_SELF));
DelayCommand(GetRandomDelay(5.0, 15.0), ExecuteScript("npc_sit_stay", OBJECT_SELF));
}

View File

@ -0,0 +1,117 @@
//::///////////////////////////////////////////////
//:: Default: On Spawn In
//:: NW_C2_DEFAULT9
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Determines the course of action to be taken
after having just been spawned in
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 25, 2001
//:://////////////////////////////////////////////
#include "nw_i0_spells"
#include "ms_name_inc"
#include "rnd_commoner_inc"
#include "NW_O2_CONINCLUDE"
#include "NW_I0_GENERIC"
void main()
{
// Randomize Skin Tone
rnd_skin(OBJECT_SELF);
// Randomize Head & Hair color
rnd_head(OBJECT_SELF);
// Randomize Tattoos
rnd_tattoo(OBJECT_SELF);
// Randomize Clothing
rnd_clothes(OBJECT_SELF);
// Randomize Last Name Usage
int bNameChance = d100() > 33;
SetLocalInt(OBJECT_SELF, "NAME_TYPE", bNameChance);
int nOneName = GetLocalInt(OBJECT_SELF,"SINGLE_NAME");
if (nOneName = 1)
{
SetLocalInt(OBJECT_SELF, "NAME_TYPE", 0);
}
//Calls the Random Name Generator
ms_Nomenclature(OBJECT_SELF);
// OPTIONAL BEHAVIORS (Comment In or Out to Activate )****************************************************************************
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
// This causes the creature to say a special greeting in their conversation file
// upon Perceiving the player. Attach the [NW_D2_GenCheck.nss] script to the desired
// greeting in order to designate it. As the creature is actually saying this to
// himself, don't attach any player responses to the greeting.
//SetSpawnInCondition(NW_FLAG_SHOUT_ATTACK_MY_TARGET);
// This will set the listening pattern on the NPC to attack when allies call
//SetSpawnInCondition(NW_FLAG_STEALTH);
// If the NPC has stealth and they are a rogue go into stealth mode
//SetSpawnInCondition(NW_FLAG_SEARCH);
// If the NPC has Search go into Search Mode
//SetSpawnInCondition(NW_FLAG_SET_WARNINGS);
// This will set the NPC to give a warning to non-enemies before attacking
//SetSpawnInCondition(NW_FLAG_SLEEP);
//Creatures that spawn in during the night will be asleep.
//SetSpawnInCondition(NW_FLAG_DAY_NIGHT_POSTING);
//SetSpawnInCondition(NW_FLAG_APPEAR_SPAWN_IN_ANIMATION);
//SetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS);
//SetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS);
//This will play Ambient Animations until the NPC sees an enemy or is cleared.
//NOTE that these animations will play automatically for Encounter Creatures.
SetAnimationCondition(NW_ANIM_FLAG_IS_CIVILIZED);
// Interacts with placeables + More civilized actions. See Readme.
SetAnimationCondition(NW_ANIM_FLAG_CHATTER);
// Will use random voicechats during animations, if Civilized
// NOTE: ONLY ONE OF THE FOLOOWING ESCAPE COMMANDS SHOULD EVER BE ACTIVATED AT ANY ONE TIME.
//SetSpawnInCondition(NW_FLAG_ESCAPE_RETURN); // OPTIONAL BEHAVIOR (Flee to a way point and return a short time later.)
//SetSpawnInCondition(NW_FLAG_ESCAPE_LEAVE); // OPTIONAL BEHAVIOR (Flee to a way point and do not return.)
//SetSpawnInCondition(NW_FLAG_TELEPORT_LEAVE); // OPTIONAL BEHAVIOR (Teleport to safety and do not return.)
//SetSpawnInCondition(NW_FLAG_TELEPORT_RETURN); // OPTIONAL BEHAVIOR (Teleport to safety and return a short time later.)
// CUSTOM USER DEFINED EVENTS
/*
The following settings will allow the user to fire one of the blank user defined events in the NW_D2_DefaultD. Like the
On Spawn In script this script is meant to be customized by the end user to allow for unique behaviors. The user defined
events user 1000 - 1010
*/
//SetSpawnInCondition(NW_FLAG_HEARTBEAT_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1001
//SetSpawnInCondition(NW_FLAG_PERCIEVE_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1002
//SetSpawnInCondition(NW_FLAG_ATTACK_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1005
//SetSpawnInCondition(NW_FLAG_DAMAGED_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1006
//SetSpawnInCondition(NW_FLAG_DISTURBED_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1008
//SetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1003
//SetSpawnInCondition(NW_FLAG_ON_DIALOGUE_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1004
//SetSpawnInCondition(NW_FLAG_DEATH_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1007
// DEFAULT GENERIC BEHAVIOR (DO NOT TOUCH) *****************************************************************************************
SetLocalInt(OBJECT_SELF, "iDialogue", Random(10) + 1);
SetLocalInt(OBJECT_SELF, "iRumor", Random(60) + 1);
SetListeningPatterns(); // Goes through and sets up which shouts the NPC will listen to.
WalkWayPoints(); // Optional Parameter: void WalkWayPoints(int nRun = FALSE, float fPause = 1.0)
// 1. Looks to see if any Way Points in the module have the tag "WP_" + NPC TAG + "_0X", if so walk them
// 2. If the tag of the Way Point is "POST_" + NPC TAG the creature will return this way point after
// combat.
GenerateNPCTreasure(); //* Use this to create a small amount of treasure on the creature
DelayCommand(GetRandomDelay(5.0, 15.0), ExecuteScript("re_rndwayp_go", OBJECT_SELF));
}

View File

@ -0,0 +1,60 @@
//::///////////////////////////////////////////////
//:: npc_sit_stay
//:://////////////////////////////////////////////
/*Goes on the OnSpawn and OnConversation script of the NPC that you want to stay <span class="highlight">seated</span>*/
#include "nw_i0_spells"
#include "NW_I0_GENERIC"
void main()
{
int nMatch = GetListenPatternNumber();
object oShouter = GetLastSpeaker();
object oIntruder;
if (nMatch == -1 && GetCommandable(OBJECT_SELF))
{
ClearAllActions();
}
else
if(nMatch != -1 && GetIsObjectValid(oShouter) && !GetIsPC(oShouter) && GetIsFriend(oShouter))
{
if(nMatch == 4)
{
oIntruder = GetLocalObject(oShouter, "NW_BLOCKER_INTRUDER");
}
else if (nMatch == 5)
{
oIntruder = GetLastHostileActor(oShouter);
if(!GetIsObjectValid(oIntruder))
{
oIntruder = GetAttemptedAttackTarget();
if(!GetIsObjectValid(oIntruder))
{
oIntruder = GetAttemptedSpellTarget();
if(!GetIsObjectValid(oIntruder))
{
oIntruder = OBJECT_INVALID;
}
}
}
}
RespondToShout(oShouter, nMatch, oIntruder);
}
if(GetSpawnInCondition(NW_FLAG_ON_DIALOGUE_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1004));
}
if(GetCommandable(OBJECT_SELF))
{
//{
//BeginConversation();
//}
ClearAllActions();
string sWay = "NW_STOP";
object oWay = GetRandomObjectByTag(sWay, 110.0);
ActionMoveToObject (oWay, FALSE);
}
DelayCommand(GetRandomDelay(180.0, 300.0), ExecuteScript("re_rndwayp_go", OBJECT_SELF));
}

View File

@ -0,0 +1,89 @@
//:://////////////////////////////////////////////////
//:: X0_CH_HEN_HEART
/*
OnHeartbeat event handler for henchmen/associates.
*/
//:://////////////////////////////////////////////////
//:: Copyright (c) 2002 Floodgate Entertainment
//:: Created By: Naomi Novik
//:: Created On: 01/05/2003
//:://////////////////////////////////////////////////
#include "X0_INC_HENAI"
void main()
{ // SpawnScriptDebugger();
// If the henchman is in dying mode, make sure
// they are non commandable. Sometimes they seem to
// 'slip' out of this mode
int bDying = GetIsHenchmanDying();
if (bDying == TRUE)
{
int bCommandable = GetCommandable();
if (bCommandable == TRUE)
{
// lie down again
ActionPlayAnimation(ANIMATION_LOOPING_DEAD_FRONT,
1.0, 65.0);
SetCommandable(FALSE);
}
}
// If we're dying or busy, we return
// (without sending the user-defined event)
if(GetAssociateState(NW_ASC_IS_BUSY) ||
bDying)
return;
// Check to see if should re-enter stealth mode
if (GetIsInCombat() == FALSE)
{
int nStealth=GetLocalInt(OBJECT_SELF, "X2_HENCH_STEALTH_MODE");
if((nStealth == 1 || nStealth == 2)
&& GetActionMode(OBJECT_SELF, ACTION_MODE_STEALTH) == FALSE)
{
SetActionMode(OBJECT_SELF, ACTION_MODE_STEALTH, TRUE);
effect eEffect = ExtraordinaryEffect(EffectMovementSpeedIncrease(50));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, OBJECT_SELF, 6.0);
}
}
// * checks to see if a ranged weapon was being used
// * if so, it equips it back
if (GetIsInCombat() == FALSE)
{ // SpawnScriptDebugger();
object oRight = GetLocalObject(OBJECT_SELF, "X0_L_RIGHTHAND");
if (GetIsObjectValid(oRight) == TRUE)
{ // * you always want to blank this value, if it not invalid
SetLocalObject(OBJECT_SELF, "X0_L_RIGHTHAND", OBJECT_INVALID);
if (GetWeaponRanged(oRight) == TRUE)
{
ClearAllActions();
bkEquipRanged(OBJECT_INVALID, TRUE, TRUE);
//ActionEquipItem(
return;
}
}
}
ExecuteScript("race_hb", OBJECT_SELF);
ExecuteScript("nw_ch_ac1", OBJECT_SELF);
}

View File

@ -407,7 +407,7 @@
},
"NaturalAC": {
"type": "byte",
"value": 0
"value": 5
},
"NoPermDeath": {
"type": "byte",
@ -785,7 +785,7 @@
},
"Str": {
"type": "byte",
"value": 14
"value": 16
},
"Subrace": {
"type": "cexostring",

View File

@ -361,7 +361,7 @@
},
"ScriptSpawn": {
"type": "resref",
"value": "re_common_spawn"
"value": "re_comspawn_wayp"
},
"ScriptSpellAt": {
"type": "resref",

View File

@ -1044,6 +1044,13 @@
"value": 294
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 95
}
},
{
"__struct_id": 1,
"Feat": {
@ -1637,7 +1644,7 @@
},
"StartingPackage": {
"type": "byte",
"value": 20
"value": 22
},
"Str": {
"type": "byte",
@ -1775,7 +1782,7 @@
},
"WalkRate": {
"type": "int",
"value": 5
"value": 4
},
"willbonus": {
"type": "short",

View File

@ -1095,7 +1095,7 @@
},
"WalkRate": {
"type": "int",
"value": 5
"value": 4
},
"willbonus": {
"type": "short",

View File

@ -224,6 +224,13 @@
"value": 240
}
},
{
"__struct_id": 1,
"Feat": {
"type": "word",
"value": 4556
}
},
{
"__struct_id": 1,
"Feat": {
@ -763,7 +770,7 @@
},
"Race": {
"type": "byte",
"value": 10
"value": 124
},
"refbonus": {
"type": "short",
@ -795,7 +802,7 @@
},
"ScriptHeartbeat": {
"type": "resref",
"value": "x0_ch_hen_heart"
"value": "x0_ch_hen_stealt"
},
"ScriptOnBlocked": {
"type": "resref",
@ -1308,7 +1315,7 @@
},
"WalkRate": {
"type": "int",
"value": 5
"value": 4
},
"willbonus": {
"type": "short",

View File

@ -204,7 +204,7 @@
},
"ScriptDialogue": {
"type": "resref",
"value": "npc_sit_stay"
"value": "nw_c2_default4"
},
"ScriptDisturbed": {
"type": "resref",
@ -216,7 +216,7 @@
},
"ScriptHeartbeat": {
"type": "resref",
"value": "npc_sit_stay"
"value": "x2_def_heartbeat"
},
"ScriptOnBlocked": {
"type": "resref",
@ -232,7 +232,7 @@
},
"ScriptSpawn": {
"type": "resref",
"value": "npc_sit_stay"
"value": "oldman_sit"
},
"ScriptSpellAt": {
"type": "resref",

View File

@ -18,7 +18,7 @@
},
"Cost": {
"type": "dword",
"value": 371624
"value": 226050
},
"Cursed": {
"type": "byte",
@ -93,7 +93,7 @@
},
"Subtype": {
"type": "word",
"value": 5
"value": 6
}
},
{
@ -124,7 +124,7 @@
},
"Subtype": {
"type": "word",
"value": 12
"value": 13
}
},
{
@ -139,7 +139,7 @@
},
"CostValue": {
"type": "word",
"value": 5
"value": 2
},
"Param1": {
"type": "byte",
@ -250,6 +250,37 @@
"type": "word",
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 0
},
"CostValue": {
"type": "word",
"value": 0
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 83
},
"Subtype": {
"type": "word",
"value": 4
}
}
]
},

View File

@ -18,7 +18,7 @@
},
"Cost": {
"type": "dword",
"value": 371720
"value": 226146
},
"Cursed": {
"type": "byte",
@ -139,7 +139,7 @@
},
"CostValue": {
"type": "word",
"value": 5
"value": 2
},
"Param1": {
"type": "byte",

View File

@ -18,7 +18,7 @@
},
"Cost": {
"type": "dword",
"value": 6516526
"value": 0
},
"Cursed": {
"type": "byte",
@ -69,7 +69,7 @@
},
"CostValue": {
"type": "word",
"value": 10
"value": 8
},
"Param1": {
"type": "byte",
@ -770,6 +770,37 @@
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 37
},
"CostValue": {
"type": "word",
"value": 2
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 133
},
"Subtype": {
"type": "word",
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {

View File

@ -18,7 +18,7 @@
},
"Cost": {
"type": "dword",
"value": 371650
"value": 226076
},
"Cursed": {
"type": "byte",
@ -139,7 +139,7 @@
},
"CostValue": {
"type": "word",
"value": 5
"value": 2
},
"Param1": {
"type": "byte",

View File

@ -18,7 +18,7 @@
},
"Cost": {
"type": "dword",
"value": 371636
"value": 226062
},
"Cursed": {
"type": "byte",
@ -95,7 +95,7 @@
},
"Subtype": {
"type": "word",
"value": 8
"value": 7
}
},
{
@ -126,7 +126,7 @@
},
"Subtype": {
"type": "word",
"value": 5
"value": 9
}
},
{
@ -141,7 +141,7 @@
},
"CostValue": {
"type": "word",
"value": 5
"value": 2
},
"Param1": {
"type": "byte",
@ -252,37 +252,6 @@
"type": "word",
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 0
},
"CostValue": {
"type": "word",
"value": 0
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 83
},
"Subtype": {
"type": "word",
"value": 5
}
}
]
},

View File

@ -18,7 +18,7 @@
},
"Cost": {
"type": "dword",
"value": 371640
"value": 226066
},
"Cursed": {
"type": "byte",
@ -93,7 +93,7 @@
},
"Subtype": {
"type": "word",
"value": 5
"value": 9
}
},
{
@ -124,7 +124,7 @@
},
"Subtype": {
"type": "word",
"value": 12
"value": 10
}
},
{
@ -139,7 +139,7 @@
},
"CostValue": {
"type": "word",
"value": 5
"value": 2
},
"Param1": {
"type": "byte",
@ -250,6 +250,37 @@
"type": "word",
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 0
},
"CostValue": {
"type": "word",
"value": 0
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 83
},
"Subtype": {
"type": "word",
"value": 3
}
}
]
},

View File

@ -18,7 +18,7 @@
},
"Cost": {
"type": "dword",
"value": 141948
"value": 98238
},
"Cursed": {
"type": "byte",
@ -180,68 +180,6 @@
"type": "word",
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 0
},
"CostValue": {
"type": "word",
"value": 0
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 12
},
"Subtype": {
"type": "word",
"value": 2
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 0
},
"CostValue": {
"type": "word",
"value": 0
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 12
},
"Subtype": {
"type": "word",
"value": 106
}
}
]
},

View File

@ -60,6 +60,37 @@
"PropertiesList": {
"type": "list",
"value": [
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 2
},
"CostValue": {
"type": "word",
"value": 6
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 1
},
"Subtype": {
"type": "word",
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {
@ -91,6 +122,37 @@
"value": 1170
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 0
},
"CostValue": {
"type": "word",
"value": 0
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 12
},
"Subtype": {
"type": "word",
"value": 63
}
},
{
"__struct_id": 0,
"ChanceAppear": {
@ -277,6 +339,37 @@
"value": 2
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 0
},
"CostValue": {
"type": "word",
"value": 0
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 37
},
"Subtype": {
"type": "word",
"value": 8
}
},
{
"__struct_id": 0,
"ChanceAppear": {
@ -525,6 +618,68 @@
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 26
},
"CostValue": {
"type": "word",
"value": 14
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 82
},
"Subtype": {
"type": "word",
"value": 85
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 26
},
"CostValue": {
"type": "word",
"value": 14
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 82
},
"Subtype": {
"type": "word",
"value": 138
}
},
{
"__struct_id": 0,
"ChanceAppear": {
@ -587,6 +742,37 @@
"value": 8
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 25
},
"CostValue": {
"type": "word",
"value": 12
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 52
},
"Subtype": {
"type": "word",
"value": 17
}
},
{
"__struct_id": 0,
"ChanceAppear": {

View File

@ -18,7 +18,7 @@
},
"Cost": {
"type": "dword",
"value": 349140
"value": 403990
},
"Cursed": {
"type": "byte",
@ -151,6 +151,37 @@
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {
"type": "byte",
"value": 100
},
"CostTable": {
"type": "byte",
"value": 0
},
"CostValue": {
"type": "word",
"value": 0
},
"Param1": {
"type": "byte",
"value": 255
},
"Param1Value": {
"type": "byte",
"value": 0
},
"PropertyName": {
"type": "word",
"value": 43
},
"Subtype": {
"type": "word",
"value": 0
}
},
{
"__struct_id": 0,
"ChanceAppear": {

View File

@ -0,0 +1,219 @@
{
"__data_type": "UTP ",
"AnimationState": {
"type": "byte",
"value": 0
},
"Appearance": {
"type": "dword",
"value": 157
},
"AutoRemoveKey": {
"type": "byte",
"value": 0
},
"BodyBag": {
"type": "byte",
"value": 0
},
"CloseLockDC": {
"type": "byte",
"value": 0
},
"Comment": {
"type": "cexostring",
"value": "Invisible Object"
},
"Conversation": {
"type": "resref",
"value": ""
},
"CurrentHP": {
"type": "short",
"value": 15
},
"Description": {
"id": 14662,
"type": "cexolocstring",
"value": {}
},
"DisarmDC": {
"type": "byte",
"value": 15
},
"Faction": {
"type": "dword",
"value": 2
},
"Fort": {
"type": "byte",
"value": 16
},
"Hardness": {
"type": "byte",
"value": 5
},
"HasInventory": {
"type": "byte",
"value": 0
},
"HP": {
"type": "short",
"value": 15
},
"Interruptable": {
"type": "byte",
"value": 1
},
"KeyName": {
"type": "cexostring",
"value": ""
},
"KeyRequired": {
"type": "byte",
"value": 0
},
"Lockable": {
"type": "byte",
"value": 0
},
"Locked": {
"type": "byte",
"value": 0
},
"LocName": {
"id": 5800,
"type": "cexolocstring",
"value": {
"0": "NPC Waypoint"
}
},
"OnClick": {
"type": "resref",
"value": ""
},
"OnClosed": {
"type": "resref",
"value": ""
},
"OnDamaged": {
"type": "resref",
"value": ""
},
"OnDeath": {
"type": "resref",
"value": ""
},
"OnDisarm": {
"type": "resref",
"value": ""
},
"OnHeartbeat": {
"type": "resref",
"value": ""
},
"OnInvDisturbed": {
"type": "resref",
"value": ""
},
"OnLock": {
"type": "resref",
"value": ""
},
"OnMeleeAttacked": {
"type": "resref",
"value": ""
},
"OnOpen": {
"type": "resref",
"value": ""
},
"OnSpellCastAt": {
"type": "resref",
"value": ""
},
"OnTrapTriggered": {
"type": "resref",
"value": ""
},
"OnUnlock": {
"type": "resref",
"value": ""
},
"OnUsed": {
"type": "resref",
"value": ""
},
"OnUserDefined": {
"type": "resref",
"value": ""
},
"OpenLockDC": {
"type": "byte",
"value": 18
},
"PaletteID": {
"type": "byte",
"value": 9
},
"Plot": {
"type": "byte",
"value": 0
},
"PortraitId": {
"type": "word",
"value": 515
},
"Ref": {
"type": "byte",
"value": 0
},
"Static": {
"type": "byte",
"value": 1
},
"Tag": {
"type": "cexostring",
"value": "NW_STOP"
},
"TemplateResRef": {
"type": "resref",
"value": "invisobj002"
},
"TrapDetectable": {
"type": "byte",
"value": 1
},
"TrapDetectDC": {
"type": "byte",
"value": 0
},
"TrapDisarmable": {
"type": "byte",
"value": 1
},
"TrapFlag": {
"type": "byte",
"value": 0
},
"TrapOneShot": {
"type": "byte",
"value": 1
},
"TrapType": {
"type": "byte",
"value": 0
},
"Type": {
"type": "byte",
"value": 0
},
"Useable": {
"type": "byte",
"value": 0
},
"Will": {
"type": "byte",
"value": 0
}
}

Binary file not shown.