Staredit Network > Forums > SC2 Assistance > Topic: Menus (custom)
Menus (custom)
Aug 9 2010, 11:06 pm
By: IcY  

Aug 9 2010, 11:06 pm IcY Post #1

Cruisin' on that LSD

in the beginning of same games custom menus pop up revealing choices such as difficulty, character choice, income choice etc...
i need a character choice menu for my map to pop up in the beginning to allow players to choose a character(hero) for this map.




Aug 9 2010, 11:18 pm Devourer Post #2

Hello

Button-variables are global and type of "dialog item"


Event: map initialitation
Condition: none
Actions:
- Create a modal dialog of size X Y aligned to the.... (up to you)
- Set title of the dialog (last created dialog) to "Character Choice"

- Add dialog item (button) with value "Hero1" and hover text "Hero's abilities...wutsoever...totally up to you
- Set variable "Button1" to Last created dialog item
--- Same as above, for the characters you want to have

- Show last created Dialog

New trigger:
Event: Player uses Dialogitem (replace dialog item with the variable, e.g. Hero1)
Condition: not necesarry
Actions: Hide Dialog ( convert player to player group ( triggering player ) )
Actions: Create HERO at POINT for Triggering Player (or whatever actions you want)

These are the basics, hope this helps, for more help simply reply to this or/and provide us with more information :)



Please report errors in the Staredit.Network forum.

Aug 13 2010, 4:54 am StormTemplar Post #3



Thank you! I like to experiment myself and look around before asking but I couldnt get this to work right, new triggers are difficult to get..
EDIT: actually. Most of the actions I cant find in the list of possibilities. Or if I do, the ability to put them as youve typed isnt possible.. :-/ Do I have to write custom script?

Post has been edited 1 time(s), last time on Aug 13 2010, 11:26 pm by StormTemplar.



None.

Aug 17 2010, 5:04 am Deev Post #4



You have to remember that the actual text of your trigger changes as you change the content of the line. I just tried to follow his instructions to see what you might have missed out on. Here is the actual list of commands he used, and where to find them. This is only the names of the triggers in the menu, I left out the values, and what they need to be set too, since he already covered all that, and it is my understanding that you're only having problems actually finding the actions he is refering to. (Especially the first thing, you have to set your variable to a dialog type, else it wont show up later)


Variable1:
Type: Dialog



Trigger 1:

Event: Game-> "Map initilization"
Action: Dialog-> "Create dialog"
Action: Dialog-> "Set dialog title"
Action: Dialog-> "Add dialog item"
Action: Dialog-> "Add dialog item (Button)"
Action: Variable-> "Set variable"
Action Dialog-> "Show/Hide Dialog"


Trigger 2:
Event: Dialog-> "Dialog item is used"



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-1-27. : 10:57 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: As for the 0 bytes zip, you just rename the file extension of any 0-byte file to zip. I however had to make it 1 byte because SEN throws an error when uploading a 0 bytes file.
yeah, that much is obvious, but I can only check if that's actualy the case (and not just the size rounded down) if I download the file.
[2026-1-27. : 10:52 pm]
NudeRaider -- Oh and that's on Win 10 as well, but a IoT Enterprise LTSC edition which (I think?) misses the latest feature upgrades, despite being current on security updates.
[2026-1-27. : 10:48 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: On Win10, when I right-click > New > Compressed Folder, I get the 22B file that I had. This is only the EOCD header, with the magic number 0x06054B50 and the remaining 18 bytes are null.
oof, so much to unpack for such a seemingly insignificant topic. Firstly I tried with 7zip. Choosing the default right click > 7zip > Send to "filename.zip" on an empty file creates a 156 Bytes .zip. 82 Bytes I only get via custom options. Secondly I don't have > New > Compressed folder, I have Send To > Compressed (zipped) Folder. When I do that Windows refuses to create it because it's empty. If I do it on a 0 Byte file the resulting zip is 140 Bytes. Under rightclick -> new (on the empty area of a folder) I can only create a (regular) folder and several file types like text, spreadsheet, image etc. but not zip.
[2026-1-27. : 3:09 pm]
DarkenedFantasies -- As for the 0 bytes zip, you just rename the file extension of any 0-byte file to zip. I however had to make it 1 byte because SEN throws an error when uploading a 0 bytes file.
[2026-1-27. : 3:07 pm]
DarkenedFantasies -- On Win10, when I right-click > New > Compressed Folder, I get the 22B file that I had. This is only the EOCD header, with the magic number 0x06054B50 and the remaining 18 bytes are null.
[2026-1-27. : 8:36 am]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: i was typing 0KB as shorthand for 0.02KB, but what would you be curious about? could simply be any type of empty file that's had the file extension renamed to zip. with 0 bytes of data, there's nothing at all to investigate.
yes. That's already 2 things I'd investigate. :lol: Also still interested at 20 Bytes because the smallest I can get is 82.
[2026-1-27. : 7:11 am]
DarkenedFantasies -- here ya go, I updated it to a 0KB zip file... or is it truly 0KB this time? hmmmmmmm...
[2026-1-27. : 7:07 am]
DarkenedFantasies -- i was typing 0KB as shorthand for 0.02KB, but what would you be curious about? could simply be any type of empty file that's had the file extension renamed to zip. with 0 bytes of data, there's nothing at all to investigate.
[2026-1-27. : 6:34 am]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: Ultraviolet There are 5 downloads on my 0KB zip file, so I think a bunch of those gotta be bots or dummies.
tbh if I noticed this I'd probably download out of curiosity because zip has overhead, so 0 bytes ain't possible
[2026-1-27. : 12:56 am]
Ultraviolet -- people searchin for treasure
Please log in to shout.


Members Online: Roy