Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 18:13:22 -04:00
parent 684ef76c20
commit 499aba4eb3
5734 changed files with 4843758 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
void main()
{
object oAttacker=GetLastAttacker();
int unlockDC=GetLockUnlockDC(OBJECT_SELF)-7;
int abilitymod=GetAbilityModifier(ABILITY_STRENGTH, oAttacker);
int roll=d20();
int result=roll+abilitymod;
string sRoll=IntToString(roll);
string sRank=IntToString(abilitymod);
string sResult=IntToString(result);
AssignCommand( oAttacker, SpeakString("Strength Check, Roll: "+sRoll+" Modifier: "+sRank+" = "+sResult));
if(result > unlockDC || roll==30) //perfect 20 will always succeed.
{
SetLocked(OBJECT_SELF, FALSE);
ActionOpenDoor(OBJECT_SELF);
SpeakString("You forced the door open.");
}
else
{
SpeakString("You failed to force the door open.");
}
}