License from €75
DE EN FR ES IT CZ

Comment Set for Unreachable Areas

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 10 years ago
    Hello All,

    Have the following situation:

    Character is standing on a balcony. Around him and below there are some objects which are not reachable. He can look at them but for any other action, would like to fallback to another comment set named e.g. 'unreachable' so that the character says stuff like "Cannot Reach it" etc... Switching to this comment set is easy with the relevent action part.

    The issue here is that, from what i understand, the comment sets in VS are a fallback for 'Execution at Destination' type commands and not for 'Immediate Execution' type commands. (Since he cannot reach any object we have to use Immediate Execution commands only). However, VS doesn't fallback to the new comment set, instead the character tries to go to the item.

    Maybe i'm missing smth here, so any feedback is appreciated!
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.

    Get 15 % off Try it for free
  3. · 10 years ago
    You can specify a position that character can walk to to look at the objects. Immediate exectution should also fallback to comment sets if the command/item is not found in the actions list, though of course you could forgo the comment sets & create a called by other action block, a VS value, then inside of the called by other action block you would do something like this...

    set random value "example" between 1 and 5
    if value "example" is 1
     display text "some text"
    end if
    if value "example" is 2
     display text "some other text"
    end if
    ...

    I think you get the general idea? It's basically how comment sets work anyway. So you could create an action command [any] item [any] and inside that have it call the called by other action. Should do the trick. wink
  4. · 10 years ago
    Thanks AFRLme for the nice tips! specifying the position will work yes, but in this case i will prefer the 2nd solution; this is because the character will later go down the balcony and will be able to interact with these items closely.

    So in this case, need to set a variable 'on balcony' so when the char is on the balcony the random 'unreachable responses' will fire and when he goes down he interacts normally wink


  5. · 10 years ago
    If the interaction is based on the way system & the character being able to reach the scene object / point of interest then I would recommend using separate scene objects & a assigning a condition to both of them (same condition) which you can toggle to determine which object should be displayed/active.

    immediate actions/commands will always take priority over execute at destination commands.
  6. · 10 years ago
    yes, duplicating the items seems to be always the most failsafe solution to such issues razz
  7. · 10 years ago
    Another tip in order to avoid duplication of items that seems to be working (need further testing) is the following:

    In the actions lists, you order the 'immediate action' command first and call the 'executed command on destination' from within the immediate action if needed, i.e.:

    'open' executed (immediate)
    'open' executed
    .
    .

    Then you have a condition to check whether the character can reach the item or not, let's say he can open the item only when he is on the balcony:

    If condition on balcony is true
      Call action 'open' executed
    else.. (do stuff if he is not on the balcony, i.e. he cannot reach the item)

    Also noted that you mentioned:

    action command [any] item [any]
    but it seems that [any] is applicable only for items, not for commands correct? Need to make a separate action for each command.
  8. · 10 years ago
    Aye, yeah sorry. I was writing without having VS open.

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?