cursor where are you? maybe on lunch break

  • #1, by ScubidubiThursday, 20. March 2014, 14:28 7 years ago
    Sometimes my cursor disappears. If i left or right click it will reappear. But i have no idea why it would act this wqy. Since it happens even if i just stand idle in a scene. Also whilst being in a dialogue this may happen. But in dialogues even the dialogue box disappears.

    Also i have one question regarding dialogues. When creating longer dialogue trees. After the last branch, the dialogue ends afterwards. Instead of looping me back to the "choice box". If i have a lil nore complex trees what do i chose after each level? Stay on dialogue level or go back to previous?

    Short trees loop back perfectly to the main dialogue box. Tgis is basically not a bug..just amatter if me not understanding smile

    Forum Fan

    106 Posts


  • #2, by afrlmeThursday, 20. March 2014, 15:22 7 years ago
    dialog should only close if the exit dialog afterwards option was selected for the dialog choice. in the next version there is also an action part option available for ending dialogs. the dialog box disappears during displayed text automatically, I'm not sure why - ideally there should be an option to toggle whether it stays or disappears... in the meantime you can add the dialog box as a button to an interface & just display/fade in/out as needed.

    not sure about the disappearing mouse cursor... have you set animations for both the active & inactive animation sections for each cursor?

    Imperator

    6846 Posts

  • #3, by ScubidubiThursday, 20. March 2014, 15:45 7 years ago
    I learned my lesson from you and propwrly ended every querie. So this couldn't be the reason. The cursor and dialogue only disappear on the larger scene outside the house if you remember my project. I am aware of the dialogue box disappearing when text is displayed. But it disappears whilst choosing a dialogue option. Since i know i have both active and inactive animation and coordinates set for the cursor..i think something elsw might interrupt with the interface controlling the character possibly? I already removed the particle system for that scene. It seems as if the engine is busy with something..i need to look at it more closely again.

    Forum Fan

    106 Posts

  • #4, by afrlmeThursday, 20. March 2014, 16:35 7 years ago
    are there any error messages in the log file? make sure log level is set to "info" in the player tab of editor options.

    in regards to if queries in the editor... I don't really like creating them in the editor because it lacks certain operators available in Lua such as: and, or, & elseif.

    In editor you have to remember that because there is none of these operators that you need to have same amount of end if as if!

    Imperator

    6846 Posts

  • #5, by AlexThursday, 20. March 2014, 17:14 7 years ago

    in regards to if queries in the editor... I don't really like creating them in the editor because it lacks certain operators available in Lua such as: and, or, & elseif.

    missing operators (and/or) can be replaced by combined conditions (at least partially). elseif can be replaced (semantically) with if block inside else block.

    ... just as information for other users who are more comfortable with the action editor than with lua scripts.

    Great Poster

    378 Posts

  • #6, by afrlmeThursday, 20. March 2014, 17:36 7 years ago

    in regards to if queries in the editor... I don't really like creating them in the editor because it lacks certain operators available in Lua such as: and, or, & elseif.

    missing operators (and/or) can be replaced by combined conditions (at least partially). elseif can be replaced (semantically) with if block inside else block.

    ... just as information for other users who are more comfortable with the action editor than with lua scripts.


    yeah exactly "partially" - I find the if query trees in editor get confusing if you use more than a couple of ifs.

    in lua I can type some complex queries without having to think about it.
    if condition1 and not condition2 and value1 < 10 or condition1 == true and condition2 == false and value1 < 10 then
    -- do something...
    elseif ....
    -- do something else...
    else -- if none of above do...
    -- fall back code here...
    end
    1
    2
    3
    4
    5
    6
    7
    8

    Imperator

    6846 Posts

  • #7, by ScubidubiThursday, 20. March 2014, 17:56 7 years ago
    I have put two end ifs if i actually use two if conditions. Is that the correct modus operandi?

    Forum Fan

    106 Posts

  • #8, by afrlmeThursday, 20. March 2014, 18:57 7 years ago
    if something
    if something
    ...
    end if
    end if
    1
    2
    3
    4
    5
    6

    it all depends on how you format the if query block.

    for instance: you could create multiple if queries inside of a main if query condition...
    if condition
    if value is 1
    do something
    else
    do something else
    end if
    if current scene is...
    do something
    else
    do something else
    end if
    else
    end if
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14

    kind of hard for me to explain via action format as it splits every new thing into a new line whereas when I write queries in Lua, I tend to use a more compact method. here's my version of the above code block.
    if main_condition then
    if value == 1 then do something else do something end
    if current_scene == something then do something else do something end
    else do fallback code
    end
    1
    2
    3
    4
    5
    6

    it's a very loose example...

    Imperator

    6846 Posts

  • #9, by ScubidubiTuesday, 25. March 2014, 00:09 7 years ago
    I finally figured out why my cursor and dialogues would disappear. I set up an action area that would trigger a certain character in a scene to talk in intervalls of time x on entering. When exiting the scene the script would carry on and even tho the text wouldn't be displayed since it happens in another room, the cursor and dialog box are affected. I checked the box "display text as background text" making it passive. And the error which wasnt an error but my lack of experience - was gone.

    Forum Fan

    106 Posts

  • #10, by afrlmeTuesday, 25. March 2014, 02:21 7 years ago
    if it was inside of a "called by other action" then you could quit the action inside of an "at end of scene action" problem solved, I think?

    Imperator

    6846 Posts

  • #11, by ScubidubiTuesday, 25. March 2014, 09:01 7 years ago
    That would be an option too.

    Forum Fan

    106 Posts

Write post