Added random dialog & dungeon rumor system.
Added random dialog & dungeon rumor system.
This commit is contained in:
parent
6c78e38de8
commit
1cbe12fdda
@ -11169,7 +11169,7 @@
|
|||||||
},
|
},
|
||||||
"Version": {
|
"Version": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 15
|
"value": 16
|
||||||
},
|
},
|
||||||
"Width": {
|
"Width": {
|
||||||
"type": "int",
|
"type": "int",
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
BIN
_module/ncs/rnd_commoner_cv.ncs
Normal file
BIN
_module/ncs/rnd_commoner_cv.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/rnd_rumor_cv.ncs
Normal file
BIN
_module/ncs/rnd_rumor_cv.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/sc_ra_rnd_dialog.ncs
Normal file
BIN
_module/ncs/sc_ra_rnd_dialog.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/sc_ra_rnd_rumors.ncs
Normal file
BIN
_module/ncs/sc_ra_rnd_rumors.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/sc_ra_rnd_rumour.ncs
Normal file
BIN
_module/ncs/sc_ra_rnd_rumour.ncs
Normal file
Binary file not shown.
@ -102,6 +102,8 @@ void main()
|
|||||||
|
|
||||||
SetLocalInt(OBJECT_SELF, "iDialogue", Random(10) + 1);
|
SetLocalInt(OBJECT_SELF, "iDialogue", Random(10) + 1);
|
||||||
|
|
||||||
|
SetLocalInt(OBJECT_SELF, "iRumor", Random(10) + 1);
|
||||||
|
|
||||||
SetListeningPatterns(); // Goes through and sets up which shouts the NPC will listen to.
|
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)
|
//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
|
// 1. Looks to see if any Way Points in the module have the tag "WP_" + NPC TAG + "_0X", if so walk them
|
||||||
|
4
_module/nss/rnd_commoner_cv.nss
Normal file
4
_module/nss/rnd_commoner_cv.nss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
void main()
|
||||||
|
{
|
||||||
|
SetLocalInt(OBJECT_SELF, "iDialogue", Random(10) + 1);
|
||||||
|
}
|
4
_module/nss/rnd_rumor_cv.nss
Normal file
4
_module/nss/rnd_rumor_cv.nss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
void main()
|
||||||
|
{
|
||||||
|
SetLocalInt(OBJECT_SELF, "iRumor", Random(60) + 1);
|
||||||
|
}
|
19
_module/nss/sc_ra_rnd_dialog.nss
Normal file
19
_module/nss/sc_ra_rnd_dialog.nss
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// sc_ra_rnd_dialog
|
||||||
|
// by: Tsurani.Nevericy
|
||||||
|
|
||||||
|
int StartingConditional()
|
||||||
|
{
|
||||||
|
object oSelf = OBJECT_SELF;
|
||||||
|
string sParam = GetScriptParam("iDialogueNum");
|
||||||
|
int nCheck = GetLocalInt(oSelf, "iDialogue");
|
||||||
|
if (!nCheck) // if no random value yet
|
||||||
|
SetLocalInt(oSelf, "iDialogue", Random(10)+1);
|
||||||
|
|
||||||
|
int nVal = StringToInt(sParam);
|
||||||
|
if (nVal == nCheck)
|
||||||
|
{
|
||||||
|
DeleteLocalInt(oSelf, "iDialogue");
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
19
_module/nss/sc_ra_rnd_rumors.nss
Normal file
19
_module/nss/sc_ra_rnd_rumors.nss
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// sc_ra_rnd_rumors
|
||||||
|
// by: Tsurani.Nevericy
|
||||||
|
|
||||||
|
int StartingConditional()
|
||||||
|
{
|
||||||
|
object oSelf = OBJECT_SELF;
|
||||||
|
string sParam = GetScriptParam("iRumorNum");
|
||||||
|
int nCheck = GetLocalInt(oSelf, "iRumor");
|
||||||
|
if (!nCheck) // if no random value yet
|
||||||
|
SetLocalInt(oSelf, "iRumor", Random(60)+1);
|
||||||
|
|
||||||
|
int nVal = StringToInt(sParam);
|
||||||
|
if (nVal == nCheck)
|
||||||
|
{
|
||||||
|
DeleteLocalInt(oSelf, "iRumor");
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
19
_module/nss/sc_ra_rnd_rumour.nss
Normal file
19
_module/nss/sc_ra_rnd_rumour.nss
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// sc_ra_rnd_rumours
|
||||||
|
// by: Tsurani.Nevericy
|
||||||
|
|
||||||
|
int StartingConditional()
|
||||||
|
{
|
||||||
|
object oSelf = OBJECT_SELF;
|
||||||
|
string sParam = GetScriptParam("iRumourNum");
|
||||||
|
int nCheck = GetLocalInt(oSelf, "iRumour");
|
||||||
|
if (!nCheck) // if no random value yet
|
||||||
|
SetLocalInt(oSelf, "iRumour", Random(60)+1);
|
||||||
|
|
||||||
|
int nVal = StringToInt(sParam);
|
||||||
|
if (nVal == nCheck)
|
||||||
|
{
|
||||||
|
DeleteLocalInt(oSelf, "iRumour");
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
Binary file not shown.
@ -2,7 +2,7 @@
|
|||||||
"__data_type": "UTC ",
|
"__data_type": "UTC ",
|
||||||
"Appearance_Head": {
|
"Appearance_Head": {
|
||||||
"type": "byte",
|
"type": "byte",
|
||||||
"value": 36
|
"value": 54
|
||||||
},
|
},
|
||||||
"Appearance_Type": {
|
"Appearance_Type": {
|
||||||
"type": "word",
|
"type": "word",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user