Skip to content
MSN

dialog help

A TG007 community discussion started by snake1.

Discussion 9 posts
Page 1 of 1
Open
Topic #2026 · 9 published posts · 895 views

right here,s my problem a downloaded a tutorial and followed it exactly but offcourse makeing it the way i wanted it to look but i realy have no idea how to put the commands to the buttons the tutorial just doesent explain it in a way that i understand lol so if any1 know and could give me a few exaples to get me on my way that'ed be realy good thaks for your help in andvance .

 

snake1

Edited Nov 28, 2004 3:46 AM by snake1

on *:sclick:table_name:button_id:{ kick $chan $nick }

 

Sclick means single click (theres also a dclick for double click)

table_name is the dialog name

button id is the id of the button in dialog studio

after that there its the command that you want to do (I used kick)

 

Theres a lot of other things for it but thats just a basic look.

glitch im not useing dialog studio would it be easyer through that then trying to do it my way cos all im doin is typeing everythink up and its takeing ages :| lol any faster way of doin it would be good tongue.gif

Well its the same command no matter what way your using to create your dialogs tongue.gif

lol thats a shame i though my life might have gotten a lil bit easyer tongue.gif

Edited Nov 28, 2004 4:23 AM by snake1

another question m8 how do i set commands to work wen i check a box ?

 

as in those boxes that u can put ticks in and out

i tryed the code u gave me m8 but it dont workany other ideas ?

 

i tryed the code u gave me m8 but it dont workany other ideas ?

the code should be as followed

 

on *:DIALOG:<dialog name>:<event>:<id relation>: { command }

 

e.g.

 

on *:DIALOG:test:sclick:1: { echo -at hello }

 

e.g. 2

 

on *:DIALOG:test:init:*: { echo -at hello2 }

Edited Nov 28, 2004 10:30 AM by The Gate Keeper

For check boxes the dialog code would be

 

on *:DIALOG:Test:*:*:{
 if ($did(checkboxidhere).state == 1)) { command here }
 else { command here }
}

 

The "1" lets the script know that the checkbox was marked, and should do the appropriate command. Else if it's not marked it should do something else.