Hey Im working on ways to make a kind of mod, so actually I want as much as possible to be edited inside of one trigger. ATM Im working on the hero selection and I'm trying to edit it as much as possible by giving it parameters from my "setup" trigger.
Now what i wanna do is, have the (name of U1) actually be chosen by a "for each integer do that"-loop so I don't have to limit the action to a concrete number and types of heroes that can be selected.
So I guess what I'm trying to do is selecting a parameter by 2 strings, one of which is the variable "for each integer"-integer.
I'd also like to pick the image of the hero button by creating the image:
"Assets\Textures\(Name of string(string (u) + string(i))))portrait_static.dds"
btw. every u and every i are parameters, u is a unit type and i is the integer that is created by the
BTW. I excuse my almost non existent syntax knowledge. Atm I feel like if this problem can be solved then it's by writing custom script within the gui, so if someone who knows galaxy a little would be of great help.
And the whole sense in doing it that way would be to make it easier for other people to use the system I'm about to create. (Hack'n'Slay)
Making it as much of a customizable mod as possible
Trigger:
- Player Group - Pick each player in (All players) and do (Actions)
- Dialog - Create a Modal dialog of size (1000, 400) at (0, 0) relative to Center of screen
- Variable - Set ChooseHeroDialog[(Picked player)] = (Last created dialog)
- Dialog - Set title of ChooseHeroDialog[(Picked player)] to "Choose your Warrior:"
- Dialog - Create a Button for Dialog ChooseHeroDialog[(Picked player)] with the dimensions (161, 244) anchored to Bottom Left with an offset of ((0 + 40), (0 + 65)) setting the tooltip to ("Choose " + (Name of U1)) with button text " " and the hover image set to ""
- Variable - Set ChooseHero[(Picked player)][0] = (Last created dialog item)
- Dialog - Create an Image for Dialog ChooseHeroDialog[(Picked player)] with the dimensions (152, 232) anchored to Bottom Left with an offset of (((0 + 40) + 4), ((65 + 0) + 7)) setting the tooltip to "" using the image Assets\Textures\zealotportrait_static.dds as a Normal type with tiled set to true tint color White and blend mode Normal
- Dialog - Show ChooseHeroDialog[(Picked player)] for (All players)
Now what i wanna do is, have the
Trigger:
- Dialog - Create a Button for Dialog ChooseHeroDialog[(Picked player)] with the dimensions (161, 244) anchored to Bottom Left with an offset of ((0 + 40), (0 + 65)) setting the tooltip to ("Choose " + (Name of U1)) with button text " " and the hover image set to ""
So I guess what I'm trying to do is selecting a parameter by 2 strings, one of which is the variable "for each integer"-integer.
I'd also like to pick the image of the hero button by creating the image:
"Assets\Textures\(Name of string(string (u) + string(i))))portrait_static.dds"
btw. every u and every i are parameters, u is a unit type and i is the integer that is created by the
Trigger:
- General - For each integer i from 1 to 10 with increment 1, do (Actions)
BTW. I excuse my almost non existent syntax knowledge. Atm I feel like if this problem can be solved then it's by writing custom script within the gui, so if someone who knows galaxy a little would be of great help.
And the whole sense in doing it that way would be to make it easier for other people to use the system I'm about to create. (Hack'n'Slay)
Making it as much of a customizable mod as possible