Menu
Login
Language
DE EN FR ES IT CZ
Back

Displayed Text tag for current object?

  • #1, by propapanda Sunday, 17. March 2019, 16:23 7 years ago Quote
    Hey,

    I'm currently setting up comment sets for my main character and I'd like him to reference the object the action is running on. So instead of always saying "I can't open that" it would be nicer to have him to say "I can't open a door/box/bed/whathaveyou". 

    I've tried obvious things like <o> and <object> to no avail and couldn't find anything regarding this in the wiki or forum. Is there any way to achieve this?

    Thanks!

    Newbie

    6 Posts

  • #2, by afrlme Sunday, 17. March 2019, 17:13 7 years ago Quote
    There are no built in tokens for that. What you could do is create a value, & store the current object/saved object inside of the string section of the value. On mouse over (or on click) what you would do is create an execute a script action part & then add something like this to it...

    Values["example"].String = game.CurrentObject:getName()

    Now inside of the display text you can reference the string part of the value...

    I can't open the <vs=example>.

    replace "example" with the actual name of the value you have created - also take into account that names are case sensitive.

    Imperator

    7290 Posts

  • #3, by propapanda Monday, 18. March 2019, 19:21 7 years ago Quote
    Thanks, that works.

    Newbie

    6 Posts