Buttons

  • Thread starter Thread starter Kiyomori
  • Start date Start date
K

Kiyomori

Guest
Ok I want player 1 to type -music and a dialog box with all the music I put into the game and all that stuff. But I don't really know how to. If anyone could help me on this it would be great. THX!
 
FIrst you need to make a dialog varible and then make an array of dialog button varibles. In my trigger Music is the dialog varible and Musicbuttons are the array of dialog button varibles. Takes two triggers to get this to work and here they are.

First Trigger:

MusicBox
Events
Player - Player 1 (Red) types a chat message containing -music as An exact match
Conditions
Actions
Dialog - Change the title of Music to Pick Music:
Dialog - Create a dialog button for Music labelled Song 1
Set Musicbuttons[1] = (Last created dialog Button)
Dialog - Create a dialog button for Music labelled Song 2
Set Musicbuttons[2] = (Last created dialog Button)
Dialog - Create a dialog button for Music labelled Song 3
Set Musicbuttons[3] = (Last created dialog Button)
Dialog - Show Music for Player 1 (Red)


Second Trigger:

MusicPicked
Events
Dialog - A dialog button is clicked for Music
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Musicbuttons[1]
Then - Actions
Sound - Play Music
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Musicbuttons[2]
Then - Actions
Sound - Play Music
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Musicbuttons[3]
Then - Actions
Sound - Play Music
Else - Actions
Do nothing


I THink its all self explanatory but if you have any questions just ask.
 
Ok I got the first trigger but in the second trigger I can't find the first action. Can you tell me how to get it?
 
hi

If (All Conditions are True) then do (Then Actions) else do (Else Actions)

is an


action: IF / THEN / ELSE trigger

in IF :

BOARLEN CONDITION
EVALUATE (this trigger) conditions equal to true
^
or others

in then: ok i donno wat he did but if u go to each trigger that this is spose to do action/ make a new trigger that turns off all other triggers then add this to this condition


at part

then: turn (triggers)ON
^
same with else do-- um little complicated but it might work
if u whant i can try to explane it a bit better
 
I dont mean to be mean, but dont look at iceking's response im not even sure what he is getting at (sorry iceking)

The first action is a if/then/else(multiple function). Its right at the top of the action list like 10 down from the top.

In the Condition section:

its a NOT a boolean like iceking said its a dialog button comparison. Set one side equal to last dialog button clicked and the other to one of your varible dialog buttons.
(MusicButton[1], MusicButton[2], MusicButton[3], ect.)

In the Then section:

THis is where you play the song

In the action:

Simply put a do nothing, first action on the list


THe second trigger just copys these lines per number of songs you have, so just copy these triggers down changing the Condition to a different dialog button and the THen to the correct music file.

Hope this clarifies everything
 
ok to show u how lazy I am Im gonna ask u if you could put it in a map and give it to me. I still dont really understand it and if you do ill put your name in it or wutever u want. Plz and thx.
 
I cant open that map in the editor, did you protect it. It says the level info is missing.
 
yo I just found out that its way too big to put on here. I think when I put it on it only put 1/3 of the map because its about 3 times what its supposed to be(big game huh, and I'm not even close to being done!) Do you think I could put it into a zip file and it work?
 
Ok I figured out why it was so big. It was because I had all those music things. THEY WERE HUGE! Now I guess I'll just use the mp3 in the game, you know the credits and the storm earth and fire song, those three there ok here it is small and better. Well you know what I might replace the internal music with my music when you put them in there, maybe. Well here it is...
 
alright THX you rock. I'll put your name in it. Um is it stupidmouse on bnet?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.
  • U Uberplayer:
    Thanks for everything!
  • XXXconanXXX XXXconanXXX:
    And we JUST got a new warcraft 3 campaign after 20 years! Bummer lol. Thanks for building and maintaining such an awesome community over the years TheHelper! Forums like these are definitely a relic of their time, and in its heyday it really was the place to be in its niche. Hopefully the discord community stays active!
  • WildTurkey WildTurkey:
    All the best helper
  • WildTurkey WildTurkey:
    Thanks for what you have done for me and my family
  • WildTurkey WildTurkey:
    I wish you all the best and am saddened to say goodbye
  • The Helper The Helper:
    That is fantastic WildTurkey I am so happy to hear that! Bless you and your family!
  • The Helper The Helper:
    and i dont think I am going to close the site it is just likely to change drastically but I am working on something for the interim still fleshing it out. Most of the forums are going to be gone though and the NUON site and Warcraft sites will probably to to different hosts. I might keep the news forum though :)
    +1
  • The Helper The Helper:
    So I paired down the forums to what is going to be in the interim
  • The Helper The Helper:
    I might also just go for one news forum and make it Headline News only all that sub forum stuff was busy work on my part i think :)
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    I know right
    +1
  • Varine Varine:
    It's been great guys, I appreciate you having kept it up for so long! I feel like this has been a big part of my growing up in life, and I do very much appreciate everything that this forum has been able to give to me. So thank you.
    +2
  • Varine Varine:
    If there's bits still around I am willing to bet I will be, but I honestly wouldn't be too upset if some of my teenager posts were to no longer be around. I was a little fucking problem back then
    +1
  • Varine Varine:
    I'm going on a backpacking trip pretty soon. I've been trying to do it for a few years now and it just couldn't happen. I'll be by myself, and I think it'll be really good for me. My pack is already too heavy so I can't bring alcohol, and that might be a benefit to me. Like had that probation and couldn't drink, but it's a bit different when you can't do something voluntarily versus threat of literal imprisonment
    +1
  • Varine Varine:
    The trail is 40 miles altogether, but I'm planning on cutting cross country a bit because I want to camp on top of this mountain. I'm bringing a little telescope, if there's still a place for it I'll post some pictures when I get back!
    +2
  • jonas jonas:
    honestly there's nothing on that trip that would become better by drinking
  • jonas jonas:
    looking forward to those pictures
  • The Helper The Helper:
    Happy Thursday people! I think I have come up with a new direction for the site. One that will never fizzle out because a game is not popular anymore. I think I am going to try to make TheHelper.net a place that helps people with real stuff as much as it did with game technical support back in the day. Stay tuned...
    +3
  • The Helper The Helper:
    Happy Tuesday!
    +1
  • The Helper The Helper:
    Happy Thursday! Hope everyone has a Fantastic Day!

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top