Page 1 of 1
Weapons bound to character
Posted: Sun Jan 27, 2019 10:40 pm
by meadwarrior
Hello!

How would I go about making weapons that are only usable by certain characters and nobody else?
Thanks!
Re: Weapons bound to character
Posted: Mon Jan 28, 2019 1:10 am
by Sophia
The simplest approach is probably to define a rend_method_check function for the weapon's arch. A return value of false is treated as though the weapon had no attack methods, while true uses the weapon's normal attack methods. It takes the weapon's id as its one and only parameter, so to only make it work with certain characters you can dsb_fetch its location and see whose inventory the weapon is in and return values accordingly.
Re: Weapons bound to character
Posted: Tue Jan 29, 2019 2:19 am
by meadwarrior
Thank you, I'll try it out!