Display an item's description? - 20/10/17 01:51 PM
Hi all,
I'm a complete and utter noob with scripting (and have almost zero programming experience to begin with), but wondering if there is a way to call an item's description.
What I'm getting at is to click on a sign and it displays the signs description in floating text. This way the GM could change the description on the fly. This would be useful in quite a few other circumstances as well.
I was looking at DisplayTextOnCharacter.itemScript
Where DialogKey is defined ( EXTERN STRING:%DialogKey = "" ) - could that be set to an item's description? Any idea how?
Thanks so much!
I'm a complete and utter noob with scripting (and have almost zero programming experience to begin with), but wondering if there is a way to call an item's description.
What I'm getting at is to click on a sign and it displays the signs description in floating text. This way the GM could change the description on the fly. This would be useful in quite a few other circumstances as well.
I was looking at DisplayTextOnCharacter.itemScript
Code
INIT ITEM:__Me EXTERN STRING:%DialogKey = "" EVENTS EVENT OnClick VARS CHARACTER:_Source ON OnUseItem(_Source,__Me) ACTIONS IF "!c1&!c2&!c3" CharacterIsSummon(_Source) CharacterIsPolymorphInteractionDisabled(_Source) CharacterIsPartyFollower(_Source) THEN IF "!c1" IsEqual(%DialogKey,"") THEN DialogStart(_, %DialogKey, _Source) ENDIF ENDIF
Where DialogKey is defined ( EXTERN STRING:%DialogKey = "" ) - could that be set to an item's description? Any idea how?
Thanks so much!