This looks pretty good. I just have a few (constructive) remarks:
You may want to move all of the triggers in the example map into a library. All you would have to do is right click in the top-left pane of the trigger editor and select New Library, then cut and paste (variables first, of course!)
As you said, it's a bit difficult for a novice to drop in and use quickly. Consider streamlining the whole system or writing a tutorial for beginners. Put the tutorial in with the library too.
There are some disabled functions in the example map - I recommend removing these from the published version. Looks better :P
That's all I can think of for now. Great start though :)
Yeah.... this isn't so much of a Library as it is more of a paste in system. Its intended that to tweak it you must dive into it a ways.
Yeah the current version up doesn't include a lot of things. Ill be re-posting once the newer components are in working order....
Ive been designing it with the thought in mind that I can paste it into my other maps and easily modify it to my needs for that game.
So every game is gonna want different parts on the leader board itself.
As well needing different values for the banking system.
If you use unit groups...... units are removed from it as they die, and you don't need to keep track of their size or index
but when you need to add a new unit to it and you want that unit to have another variable to coincide with it you need to do something like this
Global Variable
UnitData[0-16000][values] type: real default value: 0
index 1 of values holes whether its open or not
Function (get open Index) :type integer
variables
i
index = -1
actions
for each i 0 to 16000
if
UnitData[i][values] = 0
then
UnitData[i][values] = 1
set index = i
set i - 16001
return index
use a function like that to find your open indexs
check for -1 which means there are no unit indexs open
then create the unit add it to the unit group.
apply the open index of the unit to its custom value
then you can easily loop on the unit group and refer to the index in the custom value to find other stuff in another array.
you also should have an event event that either fires when units die or periodically to loop through
check for is "unit alive" if its not set the iUnitData[i][values] = 0 to open that back up
if you want even more flexibility you use use a string for the Unit values...
It may not be all that dynamic.... but having the memory declared the whole time lets you know your in good shape and it wont bog the game down if it starts filling up.
Also requires less maintenance... I'm not exactly sure about your "re-size array:" your using but I imagine it loops quite a bit. When the game already handles resizing unit groups for you.
0
@Deadzergling: Go
quick cast looks like its working good for ya
0
@jaxter184: Go
I could use some towers made from mashed up models for my TD, providing they look awesome that is.
0
@soulzek: Go
you can put a button behind the label
then set the transparency of the button to 100% or something....
I have done this and It works
0
@Stexen: Go
Ill add a page where you can see all the players ranks I spose .... can you give me a example of how you would want it to look?
0
Yeah.... this isn't so much of a Library as it is more of a paste in system. Its intended that to tweak it you must dive into it a ways.
Yeah the current version up doesn't include a lot of things. Ill be re-posting once the newer components are in working order....
Ive been designing it with the thought in mind that I can paste it into my other maps and easily modify it to my needs for that game.
So every game is gonna want different parts on the leader board itself.
As well needing different values for the banking system.
it comes with a use at your how RISK warning
0
Damn transparent images never do what i want them to do
0
@Enexy: Go
thanks for the help but im looking for a built in asset that has a non transparent inner back ground
0
looking for a dialog back ground that has no transparency on its inner fill but still has transparency outside of its borders
0
@zjat: Go
You should practice making your abilities from scratch... you will learn things a lot faster that way.
0
@FunBotan: Go
You would use .... point = Position of Unit(unit you want the position of)
.... why are you not using morphs.... from data?
0
@farban6: Go
hmmm you might check to see if anybody made a library that could make a more advanced system of a list box
I know if i really wanted to I could create a dialog that has panels in it that act like list items.
You would have to code the scrolling and the way it keeps track of all the items but it is doable.
If i get some motivation I might attempt it myself.
0
@soulzek: Go
scrap the messages to a text out put channel
make a dialog with a list
create list items as you want the messages displayed....
customize the look to get it how you want it
be pro
0
@Kailniris2: Go
Love your dome... can i use it for a space ship in a map?
0
If you use unit groups...... units are removed from it as they die, and you don't need to keep track of their size or index
but when you need to add a new unit to it and you want that unit to have another variable to coincide with it you need to do something like this
use a function like that to find your open indexs
check for -1 which means there are no unit indexs open
then create the unit add it to the unit group. apply the open index of the unit to its custom value
then you can easily loop on the unit group and refer to the index in the custom value to find other stuff in another array.
you also should have an event event that either fires when units die or periodically to loop through check for is "unit alive" if its not set the iUnitData[i][values] = 0 to open that back up
if you want even more flexibility you use use a string for the Unit values...
It may not be all that dynamic.... but having the memory declared the whole time lets you know your in good shape and it wont bog the game down if it starts filling up.
Also requires less maintenance... I'm not exactly sure about your "re-size array:" your using but I imagine it loops quite a bit. When the game already handles resizing unit groups for you.
0
@soulzek: Go
delete the other variants. You only need one ... the one you set as default.