how to create a small button to kill all unit at region like this ? and this button can be used only a time. (I am newbie on this editor. let me know those triggers or screen shot of those triggers or download the map..)
hey,
well first of all you need some variables.
Let's start with thte menu button.
You need a dialog variable called menu.
then you need a dialog item lvariable called menu item.
you will also need these for your next box. So make another dialog variable called showed box. also create 2 ialog items called close and Kill.
Then create an event called Map initilization.
The actions will be to create a modal dialog box (what ever size you want, looks like you want 100, 200)
then set menu ==(last created dialog) - this is the variable you created earlier.
Next you want to create a button for dialog menu wiant, offset is justth text menu and size 100,200 (no off set, set it what ever side you want, offset is just lower/wider from where you set the box eg left.)
then set dialog item menu item == (last created dialog.
Now you need to make it visible for you.
Show Menu for (active Players) (you can do triggering player by going - player group- clcik on it triggering player.)
Now o this again except with 2 dialog items ( 1 called close 1 called kill.) and dont forget to HIDE, this is with the showed box when you click menu, so you dont want it visible.
Now create another trigger.
The event will be any dilog is clicked.
Action will be an IF Then Else.
It will be
IF (used dialog item) == Menu
THEN - hide Menu for (triggering player)
show Showed Box (triggering player)
NExt, create another trigger for if close or kill is clicked.
so again event = any dialog is clicked by player (blah)
again another IF then else.
ok this one will be slightly different,
IF (used dialog item) == kill
THEN - hide Showed Box
then show menu.
- - Kill unit (what ever this is marine or whatever - specify here)
Then you want another IF then Else
This one says
IF (used dialog item) == Close
hide dialog showe box
show dialog menu.
um sorry about the red lines... not sure what they are, ignore them, and sorry about the bunching at the top , i hope you can read it :D
its funny cos i did this almnost exact same thing. if does not work pm me!
um sorry about the red lines... not sure what they are, ignore them, and sorry about the bunching at the top , i hope you can read it :D its funny cos i did this almnost exact same thing. if does not work pm me!
red lines is when you write -'- without the apostrophe, since your text gets automatically converted to wikicreole and those 2 lines mean "strikethrough".
You can click the gears icon above your post on the right beside URL and IMG to create sort of "Code" which makes trigger text more readable.
Sorry for not contributing to this thread, it's 00:20, I see there's a long post above mine which has a good chance of being right and I don't feel like reading, so i guessed i'd just write this so you know :)
ahhj so thats how u do it thanks.. yea ive done almost exact same thing could be slightly off just woke up
ikjkj<<code EVENT : any dialog item is use>>
I made a dialog variable called menu. it is not dialog item variable.
so I can't do this trigger. " IF (used dialog item) == Menu " ..
can you explain me this more easily ? I don't understand most of things you said.
I just made 3 dialog items variable and 2 dialog variables. (5 variables are "initial value = No dialog ") and I made 2 triggers. and I make another trigger "any dilog is clicked........ " now I am not sure I am doing right... I am a newbie on this editor. I don't know a thing..
well, i you are a "newbie" you should watch some tutorials on how to do this if this is not basic enough for you. Go to forums, resources then tutorials and search for dialog or buttons.
First you need to create the whole design(Dialog and the Dialog Items) then set each of them to a variable.
After that you make a new trigger with the event Dialog Item Pressed...then in the actions of that trigger you use alot of "Ifs" If Then Else-(With Multiple cases) "If Used Dialog Item = (Your Dialog Item Variable) Then do..."
I think I must see the whole triggers and actions with my eyes to understand this.. I am trying it .. when I found how to do it, I will upload a screen shot for other people..
how to create a small button to kill all unit at region like this ? and this button can be used only a time. (I am newbie on this editor. let me know those triggers or screen shot of those triggers or download the map..)
hey, well first of all you need some variables. Let's start with thte menu button. You need a dialog variable called menu. then you need a dialog item lvariable called menu item. you will also need these for your next box. So make another dialog variable called showed box. also create 2 ialog items called close and Kill. Then create an event called Map initilization. The actions will be to create a modal dialog box (what ever size you want, looks like you want 100, 200) then set menu ==(last created dialog) - this is the variable you created earlier. Next you want to create a button for dialog menu wiant, offset is justth text menu and size 100,200 (no off set, set it what ever side you want, offset is just lower/wider from where you set the box eg left.) then set dialog item menu item == (last created dialog. Now you need to make it visible for you. Show Menu for (active Players) (you can do triggering player by going - player group- clcik on it triggering player.)
Now create another trigger. The event will be any dilog is clicked. Action will be an IF Then Else.
It will be IF (used dialog item) == Menu
show Showed Box (triggering player)NExt, create another trigger for if close or kill is clicked. so again event = any dialog is clicked by player (blah) again another IF then else. ok this one will be slightly different,
IF (used dialog item) == kill THEN - hide Showed Box
then show menu.-- Kill unit (what ever this is marine or whatever - specify here)Then you want another IF then Else This one says
IF (used dialog item) == Close hide dialog showe box show dialog menu.Hope This helped!!
um sorry about the red lines... not sure what they are, ignore them, and sorry about the bunching at the top , i hope you can read it :D its funny cos i did this almnost exact same thing. if does not work pm me!
red lines is when you write -'- without the apostrophe, since your text gets automatically converted to wikicreole and those 2 lines mean "strikethrough".
You can click the gears icon above your post on the right beside URL and IMG to create sort of "Code" which makes trigger text more readable.
Sorry for not contributing to this thread, it's 00:20, I see there's a long post above mine which has a good chance of being right and I don't feel like reading, so i guessed i'd just write this so you know :)
ahhj so thats how u do it thanks.. yea ive done almost exact same thing could be slightly off just woke up ikjkj
<<code EVENT : any dialog item is use>>
<</code>>
testing@@
im still not quite sure how to do tht quote thing :D
I made a dialog variable called menu. it is not dialog item variable. so I can't do this trigger. " IF (used dialog item) == Menu " ..
can you explain me this more easily ? I don't understand most of things you said.
I just made 3 dialog items variable and 2 dialog variables. (5 variables are "initial value = No dialog ") and I made 2 triggers. and I make another trigger "any dilog is clicked........ " now I am not sure I am doing right... I am a newbie on this editor. I don't know a thing..
well, i you are a "newbie" you should watch some tutorials on how to do this if this is not basic enough for you. Go to forums, resources then tutorials and search for dialog or buttons.
it is not simple triggers that a newbie can make.. plz show me a screenshot image of the triggers so I can do it easily alone.
Create your dialog/Dialog item, then set the variable to it, Set (Variable) to Last Created Dialog or Dialog Item
where do I create dialog ? in the trigger ?? I am very confused
I didn't check it for myself, but I've searched the tutorial section for 2 minutes and found this: http://forums.sc2mapster.com/resources/tutorials/18876-tutorial-how-to-make-a-simple-dialog/#p1
First you need to create the whole design(Dialog and the Dialog Items) then set each of them to a variable. After that you make a new trigger with the event Dialog Item Pressed...then in the actions of that trigger you use alot of "Ifs" If Then Else-(With Multiple cases) "If Used Dialog Item = (Your Dialog Item Variable) Then do..."
I think I must see the whole triggers and actions with my eyes to understand this.. I am trying it .. when I found how to do it, I will upload a screen shot for other people..
Sorry for spamming same thread =) Hope this helps. There is attachment file on post that helps you to create buttons. http://forums.sc2mapster.com/development/triggers/21449-a-very-basic-button-solved/