HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Variable question

08-20-2003, 11:37 PM#1
Zwan
It it pretty simple I'm sure, I think my brain is just melting atm.

Basically all I'm trying to do is work out a trigger, preferably a variable that will allow me to attach special FX to units.

This is for an AoS type map, so there will be no units persay that require the FX to start, but rather after Hero's are picked.

My problem is that the action for "Create a special effect attached to..." doesn't allow me to choose a unit type.

It would be nice to just have a unit-type variable like "HeroName" or whatever to make it simple, but it's only letting me choose from the Unit functions..Is there a work around to this in the GUI or is this something that requires a JASS modification?

Edit: I guess I should mention that I realize I can set selection type events etc to attach the FX, but I guess I'm really looking for a way to force the Special Effects trigger to allow me to choose a unit type through variables(if it's possible)
08-21-2003, 12:06 AM#2
gurubvin
if i'm understanding correctly, u want to attach this special effect to every unit of a certain type, right?

if that's the case, u have a few options:
1. create a trigger with "pick every unit etc. " for an action. then just make it so that if the picked unit == that particular unit type, create the sfx.

2. Edit an ability. make it so that that ability creates the particular effect u want. add that ability to the unit of your choice.
08-21-2003, 12:17 AM#3
Zwan
Ahh, I was editing as you replied.

Not quite, basically some of the characters have weapon attachments, many have attached spell effects, all of which are different for the most part.

Im looking for a more consolidated way to attach everything without running seperate triggers for each character, or keeping them as short and to the point as possible.
08-21-2003, 12:31 PM#4
gurubvin
have u tried option 2?
08-23-2003, 05:08 AM#5
Zwan
Wow, this is still at the top of the page.

Yes, I did, not quite what im looking for. Using a region event for the time being till i find something better, may convert to text and try swapping unit codes around or something I guess.
08-23-2003, 02:18 PM#6
gurubvin
sorry i couldn't help more. if ur using region events there is a create dynamic triggers tutorial in wc3******** that might help (i hope we don't have ne anti ******** ppl here). if u haven't been there, it's at www.wc3********.com. it could help u because it'll let u use variables in ur trigger events. i haven't tested it, but it looks pretty sound.

here's something that might help... the arguement for addspecialeffectbj, the action ur using, is actually not a unit. it's a widget. this means that u can use things other than a unit variable in that function. the reason y u only see unit vars in trigger editor is bcuz ur in the gui mode. its set up by triggerstrings.txt to look like that. in reality there are other things u can use for that variable, i just don't know wat all they are.
08-23-2003, 02:23 PM#7
gurubvin
hahahahahahahaha.... i'm not allowed to type ********.... that's stupid. but i'll abide by the rules. just go to google and search for warcraft 3 mods. it'll be the other big site aside from wc3c. the gui looks just like wc3c.