I always made a lot of dialogs. Like... A LOT. And then one day I decided that since I was beginning to mass produce a specific type of one, I had to make a custom action for it. Now I wanted to set the variable within the trigger itself instead of out of it (I have my reasons.) But when I realized that I couldn't find that one awesome function called "Last Created Dialog". I totally spazzed out. To death. So I made a dialog variable and set it as "last created dialog" and set it as the pictures below.
I thought this worked for a while, but then after a few days of testing, some major dialog errors and bugs started showing up. I thought it might have been that it wasn't working anymore, or maybe it never worked at all. I really can't test removing it because it would take forever to re-do the system without it.
HOLY CRAP. Did I just type all that? Amazing.
Anyway, does this method I'm using work? Honestly I just got back to working on my map two weeks ago, so a lot of my knowledge went down the drain.
Dogmai is right, there really is no point... just like you have a blur tool we have a sharpen tool so really? There no reason even in a action defintion you can tell it what dialog and variable you want it to set from outside in the trigger through the parameters (just swap the places around from your pic so its set varialbe(parameter) = last created dialog)
Anyways what you may want instead is a function definition; basically the same an action but the function will allow you to set the return to the last created dialog which you can then used outside the function to set within the trigger. Last created dialog is kinda like picked integer in that it only returns the dialog that was made last within the current thread.
The problem was that I couldn't use parameters in the first one in set variable (this one.)
Anyway, I found a work-around using another action and a custom function. But if anyone finds a way to use a parameter in the first parmater in "set variable" please tell me! D:
As for SMUDGING my stuff, it's just because I don't want to reveal anything this early into the map's production. Those few things actually reveal a lot xD.
I always made a lot of dialogs. Like... A LOT. And then one day I decided that since I was beginning to mass produce a specific type of one, I had to make a custom action for it. Now I wanted to set the variable within the trigger itself instead of out of it (I have my reasons.) But when I realized that I couldn't find that one awesome function called "Last Created Dialog". I totally spazzed out. To death. So I made a dialog variable and set it as "last created dialog" and set it as the pictures below.
I thought this worked for a while, but then after a few days of testing, some major dialog errors and bugs started showing up. I thought it might have been that it wasn't working anymore, or maybe it never worked at all. I really can't test removing it because it would take forever to re-do the system without it.
HOLY CRAP. Did I just type all that? Amazing.
Anyway, does this method I'm using work? Honestly I just got back to working on my map two weeks ago, so a lot of my knowledge went down the drain.
Thanks (again) in advance.
Cookies to whoever helps :D
You don't have any secret uber code ... blurring out code is useless when trying to debug a problem.
Just didn't want any info on my map :P. If people saw it and expected it, but then it was removed before release, that's pretty bad.
Dogmai is right, there really is no point... just like you have a blur tool we have a sharpen tool so really? There no reason even in a action defintion you can tell it what dialog and variable you want it to set from outside in the trigger through the parameters (just swap the places around from your pic so its set varialbe(parameter) = last created dialog)
Anyways what you may want instead is a function definition; basically the same an action but the function will allow you to set the return to the last created dialog which you can then used outside the function to set within the trigger. Last created dialog is kinda like picked integer in that it only returns the dialog that was made last within the current thread.
@hobbidude: Go
The problem was that I couldn't use parameters in the first one in set variable (this one.)
Anyway, I found a work-around using another action and a custom function. But if anyone finds a way to use a parameter in the first parmater in "set variable" please tell me! D:
As for SMUDGING my stuff, it's just because I don't want to reveal anything this early into the map's production. Those few things actually reveal a lot xD.