| 01-22-2004, 11:38 AM | #1 |
I am trying to give a worker class unit items he can start with. I gave him the hero inventory ability but the problem is that, I cant double click the unit in the WE becaue it's a trigger spawned unit. Basically at a certain point the unit spawns on the map using create unit. I checked the trigger list but only "create and give item" action i saw was for heroes. I tried it for my unit and it didnt work. I figure this is because the unit isnt a hero. I would try taking a sample hero and editing him to be like my worker except I noticed that heroes cant build structures and I couldnt find an ability to allow them to. Any suggestions as to how I could work this out are welcome. -Huh |
| 01-22-2004, 01:07 PM | #2 |
yeah in UMSWE ( a world editor add on you can download in the downloads section of this site,) there is a option in the object editor to make a unit a hero |
| 01-22-2004, 01:17 PM | #3 |
umm, its still possible i think... Why dont you just base the unit on a Hero, then change the model file? |
| 01-22-2004, 03:39 PM | #4 |
I just started playing with UMSWE, ill check into that Duff_Man. The reason I didn't just base it off a hero and change the model is because a standard hero cant build structures, and I'm yet to find a way to allow him to. I tried giving the hero the build abilities "Build(human), Build(Orc), etc" but it didnt create a "Techtree - Structures Built" field in the Object Editor. SO far my only other idea was to find a way to just classify my worker unit as a hero, so that the "Hero- Create Item and place in inventory slot" action worked properly. Oh well, hopefully Duff_Man is correct and the UMSWE will allow me to do this. Thanks for the posts guys. -Huh Duff_Man, I checked through the UMSWE object editor (in all different forms of it, standard, noobie, all units etc) and i couldnt find a field to make a unit a hero anywhere. Where exactly did you find this option? Am i Just blind or what lol. |
| 01-22-2004, 05:06 PM | #5 |
Something must be wrong with your "Give item to hero" trigger, because it DOES work on units that arent heroes, (Heck, in my map I have a BUILDING with an inventory that I give Items to via triggers...) |
| 01-22-2004, 11:32 PM | #6 |
Haha yep, I had written the trigger TOTALLY wrong. I mean REALLY badly, but after staring at it long enough i was like WAIT, no THIS is how it should be, rewrote it, and it worked perfectly. Gotta love it :bgrun: |
