Amon_PRC8/_module/nss/tr_make_string.nss

35 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
#include "tr_items_inc"
#include "nw_i0_tool"
#include "craft_inc"
void main()
{
int nSkillTest;
int nWoodSkillNumber;
object oPC = GetLastUsedBy();
//////////////////////////////////////////////////////////
if(HasItem(GetPCSpeaker(), "AnimalTendon")){
DestroyObject(GetItemPossessedBy(GetPCSpeaker(), "AnimalTendon"));
nWoodSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_BD_WOODCRAFT!", oPC);
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0));
if(nSkillTest = (nWoodSkillNumber+nRoll100) >= TENDON_STRING){
FloatingTextStringOnCreature("*You craft some string*", oPC);
//AmonCraftWood(oPC, nWoodSkillNumber = nWoodSkillNumber+nRoll6);
CreateItemOnObject("string", oPC);
}
else{
AmonCraftWood(oPC, nWoodSkillNumber=nWoodSkillNumber+nRoll2);
}
}
else
FloatingTextStringOnCreature("*You do not have any animal tendons*", oPC);
//debug msg
//FloatingTextStringOnCreature("Your Baking skill is " + IntToString(nWoodSkillNumber),oPC);
}