Code for open and close cloaks
Code for open and close cloaks
There are a few items in the game that can change into other items, I'd like to use this for cloaks, but I need the code to do so, So a cloak that you can wear with a transparent flag then with the typing of a command becomes a cloak without that flag, what would the fully coded item look like? Thank you.
Justice is not neccesarily honourable, it is a tolerable business, in essence you tolerate honour until it impedes justice, then you do what is right.
Spelling is not necessarily correct
Spelling is not necessarily correct
Re: Code for open and close cloaks
If you want the cloak to change it while it is worn then you would do this:
The same command (mposet $o flags transparent) should remove the flag from the item.
Code: Select all
>intercept_prog opencloak~
if actorhasobjnum(OBJVNUMHERE)
if wear_loc($o) != -1
mpechoat $n {80}You open your cloak.
mpechoaround $n {80}@N opens $s cloak.
mposet $o flags transparent
else
mpunintercept
endif
else
mpunintercept
endif
~
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons
Re: Code for open and close cloaks
Excellent, thank you *fans cloak*
Justice is not neccesarily honourable, it is a tolerable business, in essence you tolerate honour until it impedes justice, then you do what is right.
Spelling is not necessarily correct
Spelling is not necessarily correct