generated from Jaysyn/ModuleTemplate
Merged redundant hak files
Merged redundant hak files. Moved hak scripts into module. Updated gitignore. Full Compile. Added release folder & archive.
This commit is contained in:
14
_mod/_module/nss/npcact_cms_cag.nss
Normal file
14
_mod/_module/nss/npcact_cms_cag.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
// npcact_cms_cag - Set Mode for Give
|
||||
void main()
|
||||
{
|
||||
object oPC=GetPCSpeaker();
|
||||
object oItem=GetLocalObject(oPC,"oCMSItem");
|
||||
int nCurr=GetLocalInt(oItem,"nCurrency");
|
||||
int nCoins=GetLocalInt(oItem,"nCoins");
|
||||
string sS;
|
||||
SetLocalInt(oPC,"nCMSMax",nCoins); // must leave at least one coin original stack
|
||||
sS="You have "+IntToString(nCoins)+" of those coins that you can give to "+GetName(GetLocalObject(oPC,"oCMSTarget"))+".";
|
||||
SetLocalString(oPC,"sCMSSelection",sS);
|
||||
DeleteLocalInt(oPC,"nCMSSelection");
|
||||
SetLocalInt(oPC,"nCMSMode",2);
|
||||
}
|
||||
Reference in New Issue
Block a user