SC2Mapster Forums

Resources > Trigger Libraries & Scripts

Dialogception

  • 15 posts
    #1 Feb 02, 2013 at 05:25 UTC - 1 like

    Dialogception

    This is still a work in progress

    Are you tired of dreaming dreams within a dream.
    Are you ready to take it to the next level

    Then this is the library for you.

    What is it?


    Dialogception is a library where you use dialogs to make dialogs and test them in the actual game. This allows you to be able to see your dialogs before they come into play and find out their exact sizes. Also Dialogception uses the GetResolution library by Desiderius in order to make sure your dialogs are the right size for you.
    Some currently supported features of it.

    • Supports up to 14 layers of 36 items
    • Can be used in multiplayer games, to get feedback on dialog design on the fly
    • Can resize set anchors set offsets
    • Can set images and unit models
    • Can set item cameras
    • Can set the text of the items, and text styles, along with tooltips
    • Can create many types of items
    • Can set item color
    • can set transparency and render priority
    • Can save the items you make to a bank and allow you to recreate them using a code.
    • Bonus: Can create text tags on the field that everyone can see

      Items refer to dialog items

    Coming soon

    • The ability to set effects and units to buttons in order to help you feel like a god when you use it in a game
    • Portrait support (I don't know much about using them so any info on them would be great)
    • A button that will create a bank with the sizes of the dialogs you have currently made along with their offsets, types, anchors, and any other relevant stuff that I deem fit to put in.
    • Making it so that offsets are in relation to that actual dialog.

    How to

    1. Add stuff like more images and text styles
      1. You open the library -> dialogception folder -> functions -> Start dialogception
      2. Each thing is clearly labeled with comments making it easy for you to find what section you want.
      3. You then use to functions I have in there already to add more stuff in
        Important
        If you add in a text style, when you type in its name copy it character for character into it's name or else it will just look the same as before.
    2. Return a just saved dialog session.
      1. go to the bank "dialogception"
      2. Find the code under the section you want sections are labelled in this manner "layer" " " "item #"
      3. Use the Return function of your choice, insert code, insert screen size if using getresolution function, insert what dialog you want to put the item in.
    3. You can remove the rest of the library and only keep the folder save dialog info in order to be able to keep returning the items
    4. Code is modifiable by you if you figure out how it works.

    Known Caveats

    • If you already use GetResolution you have to delete it because this library contains a copy of it or else you may get errors.
    • Doesn't support unit status bars, and progress bars currently
    • Must be a published map played online to return a bank. Basically publish privately and play online to get the bank.
    • Only returns size and offset
    • Created in fullsize dialogs so offsets may be off.

    FYI's

    If you know any of these things if you could leave a reply informing me about them that would be great and help the development of this

    • How to use portrait items
    • Any other dialog cameras besides Star2camera
    • How unit status bars work
    • What RTT channels are for
    • What can i do with a dialog marked offscreen
    • Any info on dialogs that you think would be useful to know that I obviously don't know

    Interesting dialog facts i learned while making this

    • when you create more than one dialog, they stack on top of each other, in order, from top to bottom, of most recently created. Even if you change the render priority of the dialog layers items, it will stay beneath the top layer.
    Last edited Feb 05, 2013 by willuwontu
    Name Size MD5
    Dialogception.SC2Map 414.4 KiB d28a76cad200...
    Dialogception.SC2Lib 4.0 MiB 7555741531fe...
    #2 Feb 02, 2013 at 05:30 UTC - 0 likes

    Changelog

    V 0.2

    • Added in a save dialog function
    • added in the ability to return dialogs using the code left in the bank.
    • didn't update title so it still says V 0.1
    Last edited Feb 05, 2013 by willuwontu
    #3 Feb 02, 2013 at 05:30 UTC - 0 likes

    And it can't hurt to reserve twice

    #4 Feb 02, 2013 at 11:39 UTC - 0 likes

    I am Mozared and I have literally 0 knowledge of dialogs, but I approve of this message.

    #5 Feb 02, 2013 at 16:44 UTC - 0 likes

    YAY someone likes it. :)

    #6 Feb 02, 2013 at 19:00 UTC - 0 likes

    Create Dialog Item of Portrait

    Then use actions in the Portrait category to modify that dialog item.

    #7 Feb 02, 2013 at 19:38 UTC - 0 likes

    when you say "How unit status bars work"
    What do you mean?
    such as the UI status bars?

    #9 Feb 03, 2013 at 01:12 UTC - 0 likes

    @Vicboy: Go

    More specific than that, I know that much.

    @zaysite: Go

    As in the dialog item unit status bar. UI status bars i know how to use, do you know what the key for a shield bar though, not shielded health but just shields, i never found that out.

    #10 Feb 03, 2013 at 21:24 UTC - 1 like

    This is a cool idea :). So how does this get your new dialog into the editor? Does it generate a script you can copy/paste into the map? Or is it purely intended to preview your dialogs before making them.

    Send me a PM with any questions or comments.

    Learn about HotS mods, publishing, and regions here

    #11 Feb 03, 2013 at 21:34 UTC - 0 likes

    @zeldarules28: Go

    not yet. but planned for the future

    #12 Feb 05, 2013 at 16:48 UTC - 0 likes

    Updated with a saving function. Is anyone actually interested in this or should i just abandon it?

    Last edited Feb 06, 2013 by willuwontu
    #13 Feb 06, 2013 at 21:13 UTC - 0 likes

    Just saw this today. If a good saving-copy/paste system gets implemented, I'd use this all the time.

    #14 Feb 07, 2013 at 04:45 UTC - 0 likes

    K i'll get back to working on it then.

    #15 Feb 12, 2013 at 16:09 UTC - 0 likes

    Are there any features anyone would like specially worked in. I'm also working on it to make it so that you don't have to publish in order to return the code.

    #16 Feb 19, 2013 at 05:36 UTC - 0 likes

    Had an update coming where it would record the items in game and give you the code for it in the game, but patch 2.0.4 broke it.

  • 15 posts

You must login to post a comment. Don't have an account? Register to get one!