Hirato wrote:that should be r_get_skill, not r_get_attr.
Of course... silly me
Hirato wrote:all your script will do is trigger the "trigger" animation of the model though if the condition is met.
I assume I don't have to mention that trading isn't implemented and that you'd need to transfer items either through dialogue or dropping them to the floor
I intend to just transfer the items of the chest to player inventory (r_remove talker/r_additem player) and make an echo "you found a healthpotion and 2 silver" or some thing like that.
For now the trading system I just use -2 like you use in the default game, and look forward to implementing trading so I can sell all my loot.
I have some thoughts on how to build a trading system, but for now I'll just leave the coding to someone who actually knows what they are doing
EDIT:
This is how the script looks now:
Code: Select all
r_script_signal interact [
if (< (r_get_skill player $SKILL_STEALTH) 1) [
echo "Raise your stealth skill to open this lock"
] [
r_trigger self
r_additem player 1 2
echo "You found two healthpotions"
]
]