1) So im devoloping this map for college chemistry class and i need a little help. I have gotton to the point where i know everything i need to know and have a very GOOD understanding of the map editor but i have hit a wall.... While making buttons i am having trouble IMPORTING an image i create to display in the dialog body. I know how to replace skins but i would like to completly import it so it doesnt change how my game looks on a day to day basis. Any directions wher ei could get a walkthgough how to do tihs would be great I have already saved the file as a .dds
2) also any idea how to randimise a chat window like lets say i make 150 of them and i want one to randomly trigger when someone walks on point one... Again a tutorial link would be great
Couldnt find what i was looking for in there. Im trying to import my own image into the game as a dds file. Like i want to make a button with a picture i took as the background. (In essence) I have the dds file but i dont want to overwrite any exsisting dds files in the SC2 editor.
Yeah you won't overwrite anything, I can't even overwrite the same imported file when I import stuff for some reason.
Any by random chat window do you mean a random text message that would display of 150?
Just going to assume that's why you mean 'cause I'm going to go to bed.
Make a Text array of X size named, let's say phraseList. Make a trigger that uses Set Variable to define each entry in the array for all your random phrases. Make a trigger with the event unit enters/leave region and have the region be wherever you want it to trigger from. Make an integer variable, name it let's say randomPhraseInteger. Make a Set Variable action to set randomPhraseInteger and go to Functions, type Random and it should come up with Random Integer and set range to X. Make an Action using Send Text Message and click the Variable option, then select phraseList and insert randomPhraseInteger in the brackets so it looks like phraseList[randomPhraseInteger].
There may be a simpler way to do it with fragments or whatever but I'm not sure how to do that because I'm basically just going off of what I remember 5 minutes before passing out.
Thanks.... a lot, ill try that. Any tutorials for this would help. I figured out how to import an image.... Like correct me if im doing this wrong but. I tried the import way and i got the ability t overwrite a file i couldn't save is as a new dds file in the directories provided.... i may just be Nubing it up. Anyhow to what i did was got an MPQ editor and save the files as a dds and then use the MPQ editor to save it in the MPQ file... It seems to work but i don't know if it will transfer over wen other people load the map. Anyhow any more tips or help/tutorials on how to make a (randomized) chat window would still be helpful
Yeah you won't overwrite anything, I can't even overwrite the same imported file when I import stuff for some reason.
Any by random chat window do you mean a random text message that would display of 150?
Just going to assume that's why you mean 'cause I'm going to go to bed.
Make a Text array of X size named, let's say phraseList. Make a trigger that uses Set Variable to define each entry in the array for all your random phrases. Make a trigger with the event unit enters/leave region and have the region be wherever you want it to trigger from. Make an integer variable, name it let's say randomPhraseInteger. Make a Set Variable action to set randomPhraseInteger and go to Functions, type Random and it should come up with Random Integer and set range to X. Make an Action using Send Text Message and click the Variable option, then select phraseList and insert randomPhraseInteger in the brackets so it looks like phraseList[randomPhraseInteger].
There may be a simpler way to do it with fragments or whatever but I'm not sure how to do that because I'm basically just going off of what I remember 5 minutes before passing out.
Im sure this works wonderfully.. but alas im a nub. :( Thanks though. Guess i just need to watch more tutorials.
Here you go, take a look at the triggers in this map.
For importing, bring up the Import window (F9). Right-click the big empty white space and hit Import, then find your directory via Browse. After finding your directory, uncheck everything in the directory but the particular file you want. It cuts down a lot if you make a new folder specifically for importing.
I'm betting you hit Browse and tried to manually find your image, and then got confused because nothing but folders was showing. Browse lets you select what folders to view.
Its not really importing that has been the problem i can check all but the file i want and import, then it says "Imported" on the side... like it has been done But then wen i go to load an image into a dialog so my dialog has a picture in it i click brows images and i get assets/ blah blah blah and all there is is like preset SC2 skins. my file is nowhere to be found. Is it just saving somewhere else that i not aware of because i tried like saving the file to y desktop then browsing to it from the image selection window and i cant go back out of the MPQ file... i HAVE to stay in it while selecting an image.
Here you go, take a look at the triggers in this map.
For importing, bring up the Import window (F9). Right-click the big empty white space and hit Import, then find your directory via Browse. After finding your directory, uncheck everything in the directory but the particular file you want. It cuts down a lot if you make a new folder specifically for importing.
I'm betting you hit Browse and tried to manually find your image, and then got confused because nothing but folders was showing. Browse lets you select what folders to view.
Thank you so much!!!! This helps a lot! I have a much better understanding now... Teach a man to fish and all :) Anyhow What im trying to do is make it so a random questions will pop up when unit activates trigger or area... etc like This pictures answer is (a b c) abc are buttons and the picture is a random picture or Dialog that i make i will be making about 80 of these dialogs (dont REALLY know how to although i have made like 3) that have pictuers and buttons in them
So this is what i have been looking for. Thank you all so far for the help it has been very very helpful Learned a lot about the map editor. But what im trying to do is to get the game to generate ONE of two (more like 100) questions like the ones above.... at random when a units goes to Spot X. ALSO i want the true answer to generate gas upon click (Which i know how to do kinda) I know how to import images thats not a problem... it was just me not saving : / Any edits to the above linked map that i would have to do to make this happen would be awesome
So since this is for your science project, I'm assuming you don't necessarily want it to be when a given unit enters a given spot, but that was just a simple way of doing it. I'll make a map real quick and upload it for you with a random 5 questions (not really questions but just random text) with multiple choice questions with a button for each answer that will increment variables depending on whether you answer "correctly" or "incorrectly" and then display a total right/wrong after all questions have been answered.
Took longer than I thought because I overcomplicated it. Oh well, this should be easy to figure out.
Also, the answers are cut off, but I didn't really want to bother fixing it. If you end up needing more room, you can change the text style to a smaller one. It doesn't specifically let you change font sizes, so you have to use a smaller style. Style examples here: http://static.sc2mapster.com/content/attachments/3/164/3ICE_s_SC2_Styles.jpg
This is perfect.... Thanks! I set it up to where it triggers on an event which is great. Now im trying to figure out how to make the correct number of answer reward the player with resources. What build up the intergers for the correct answer window at the end?
There should be a line in the If Then Else-If statements that increments the Answers Right/Wrong variable. Add a line in the same spot to give the player resources.
Also, you'll probably be using different size images and stuff, so just remember to change the size of the dialog if your pictures are larger so that they fit. Also, offsets go directly away from where you anchor your dialog/dialog item, so offsets from a Bottom Left anchor will move it up and to the right. 1-direction anchors have the missing axis default to up/right for offsets.
1) So im devoloping this map for college chemistry class and i need a little help. I have gotton to the point where i know everything i need to know and have a very GOOD understanding of the map editor but i have hit a wall.... While making buttons i am having trouble IMPORTING an image i create to display in the dialog body. I know how to replace skins but i would like to completly import it so it doesnt change how my game looks on a day to day basis. Any directions wher ei could get a walkthgough how to do tihs would be great I have already saved the file as a .dds
2) also any idea how to randimise a chat window like lets say i make 150 of them and i want one to randomly trigger when someone walks on point one... Again a tutorial link would be great
Thanks in advance - Jeremy
1) http://forums.sc2mapster.com/resources/tutorials/17969-dialogs-really-great-looking-dialogs-part-1/ like this?
Couldnt find what i was looking for in there. Im trying to import my own image into the game as a dds file. Like i want to make a button with a picture i took as the background. (In essence) I have the dds file but i dont want to overwrite any exsisting dds files in the SC2 editor.
Just import it, create a new button/dialog image and use the path of your imported image o_0
Yeah you won't overwrite anything, I can't even overwrite the same imported file when I import stuff for some reason.
Any by random chat window do you mean a random text message that would display of 150?
Just going to assume that's why you mean 'cause I'm going to go to bed.
Make a Text array of X size named, let's say phraseList. Make a trigger that uses Set Variable to define each entry in the array for all your random phrases. Make a trigger with the event unit enters/leave region and have the region be wherever you want it to trigger from. Make an integer variable, name it let's say randomPhraseInteger. Make a Set Variable action to set randomPhraseInteger and go to Functions, type Random and it should come up with Random Integer and set range to X. Make an Action using Send Text Message and click the Variable option, then select phraseList and insert randomPhraseInteger in the brackets so it looks like phraseList[randomPhraseInteger].
There may be a simpler way to do it with fragments or whatever but I'm not sure how to do that because I'm basically just going off of what I remember 5 minutes before passing out.
@Tudentau: Go
Thanks.... a lot, ill try that. Any tutorials for this would help. I figured out how to import an image.... Like correct me if im doing this wrong but. I tried the import way and i got the ability t overwrite a file i couldn't save is as a new dds file in the directories provided.... i may just be Nubing it up. Anyhow to what i did was got an MPQ editor and save the files as a dds and then use the MPQ editor to save it in the MPQ file... It seems to work but i don't know if it will transfer over wen other people load the map. Anyhow any more tips or help/tutorials on how to make a (randomized) chat window would still be helpful
O.o
-open the import tool
-press import file
-???
-profit
there is a new file, in a new directory with a new name. you can use this file like every other file. it should have a unique name tho
Im sure this works wonderfully.. but alas im a nub. :( Thanks though. Guess i just need to watch more tutorials.
Here you go, take a look at the triggers in this map.
For importing, bring up the Import window (F9). Right-click the big empty white space and hit Import, then find your directory via Browse. After finding your directory, uncheck everything in the directory but the particular file you want. It cuts down a lot if you make a new folder specifically for importing.
I'm betting you hit Browse and tried to manually find your image, and then got confused because nothing but folders was showing. Browse lets you select what folders to view.
@Tudentau: Go
Its not really importing that has been the problem i can check all but the file i want and import, then it says "Imported" on the side... like it has been done But then wen i go to load an image into a dialog so my dialog has a picture in it i click brows images and i get assets/ blah blah blah and all there is is like preset SC2 skins. my file is nowhere to be found. Is it just saving somewhere else that i not aware of because i tried like saving the file to y desktop then browsing to it from the image selection window and i cant go back out of the MPQ file... i HAVE to stay in it while selecting an image.
I believe you may have to specify it through the text path something like
assets\images\mynewimage.dds
I know Mephs does a ton of custom images in his maps.....
this may be relevant.... http://forums.sc2mapster.com/development/triggers/15108-importing-images-with-transparent-backgrounds-into/#p9
this says you should see it available after you import then save the map. Possibly try reloading the editor after saving
http://forums.sc2mapster.com/development/map-development/3713-custom-images-importing/
Thank you so much!!!! This helps a lot! I have a much better understanding now... Teach a man to fish and all :) Anyhow What im trying to do is make it so a random questions will pop up when unit activates trigger or area... etc like This pictures answer is (a b c) abc are buttons and the picture is a random picture or Dialog that i make i will be making about 80 of these dialogs (dont REALLY know how to although i have made like 3) that have pictuers and buttons in them
Like everybody else I can just repeat.
1) Import the image using the default import manager. The path doesn't matter. Nor the location of the file.
2) SAVE.
3) Search for the filename in the file browser, when adding the image.
4) Yay.
This is really, really, simple. >_>
I got how to import images... I was just making a stupid mistake.... over and over again.
@Jagernaut1: Go
So this is what i have been looking for. Thank you all so far for the help it has been very very helpful Learned a lot about the map editor. But what im trying to do is to get the game to generate ONE of two (more like 100) questions like the ones above.... at random when a units goes to Spot X. ALSO i want the true answer to generate gas upon click (Which i know how to do kinda) I know how to import images thats not a problem... it was just me not saving : / Any edits to the above linked map that i would have to do to make this happen would be awesome
Thanks again for all your help.
@Jagernaut1: Go
No love on this :(
So since this is for your science project, I'm assuming you don't necessarily want it to be when a given unit enters a given spot, but that was just a simple way of doing it. I'll make a map real quick and upload it for you with a random 5 questions (not really questions but just random text) with multiple choice questions with a button for each answer that will increment variables depending on whether you answer "correctly" or "incorrectly" and then display a total right/wrong after all questions have been answered.
Took longer than I thought because I overcomplicated it. Oh well, this should be easy to figure out.
Also, the answers are cut off, but I didn't really want to bother fixing it. If you end up needing more room, you can change the text style to a smaller one. It doesn't specifically let you change font sizes, so you have to use a smaller style. Style examples here: http://static.sc2mapster.com/content/attachments/3/164/3ICE_s_SC2_Styles.jpg
@Tudentau: Go
This is perfect.... Thanks! I set it up to where it triggers on an event which is great. Now im trying to figure out how to make the correct number of answer reward the player with resources. What build up the intergers for the correct answer window at the end?
There should be a line in the If Then Else-If statements that increments the Answers Right/Wrong variable. Add a line in the same spot to give the player resources.
Also, you'll probably be using different size images and stuff, so just remember to change the size of the dialog if your pictures are larger so that they fit. Also, offsets go directly away from where you anchor your dialog/dialog item, so offsets from a Bottom Left anchor will move it up and to the right. 1-direction anchors have the missing axis default to up/right for offsets.