need help with dialog

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Dr4c0
Newcomer
Posts: 1
Joined: June 22nd, 2009, 4:23 am

need help with dialog

Post by Dr4c0 »

ok i am reading a map i deprotected. And im onlly slightly ok with Jass new language for me.

But here is my problem. I see the part where they make the dialog called "Host Options" after the Call. But where is the part that says. (and im parphrasing) When ESC key is pressed by red show "Host Options".

What does that look like in Jass? What is the Call for ESC key in Jass?

I will post the Jass in Text file since it is long
You do not have the required permissions to view the files attached to this post.
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: need help with dialog

Post by Ken »

I got this from looking through TBR 2.0's script...

Code: Select all

call TriggerRegisterPlayerEventEndCinematic(trigger t,player p)
So, replace "trigger t" with whatever trigger it should be for, and "player p" with the player it should trigger for (example, Player(0) for red).

Then

Code: Select all

call TriggerAddAction(trigger t, function SomeFunc )
And replace "trigger t" with the same thing as above, and change SomeFunc to whatever function it should run.
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: need help with dialog

Post by Risen »

If FT didn't cover it i'll try and explain a tad more.

The call for cinematic was right, and the call for dialogdisplay is

Code: Select all

call DialogDisplay( true )
true to show, false to hide.
Not sure if it's the exact arguements taken, i'm on a public cpu without jasscraft.

If you want help to coding your own dialog, just reply and say so.
Image
Wanna learn to hack maps? --> Guide
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: need help with dialog

Post by Ken »

Risen wrote:FT
Ahem?
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that