| 08-18-2003, 06:50 AM | #1 |
I made a weapon called the Flesh Cutter and it is suppose to increase dmg and give crit strike, all that is ok. But I want to use triggers and make it so when you get this item the blademasters sword attaches to your weapon (special effect) and dissapear when you put it on ground/sell/trade. Im just having problems with it disappearing. Here are my triggers so far. FleshCutter Events Unit - A unit Acquires an item Conditions (Item carried by (Triggering unit) in slot 1) Equal to (Item carried by (Triggering unit) of type Flesh Cutter) Actions Special Effect - Create a special effect attached to the Attach Point - Weapon of (Triggering unit) using war3mapImported\blademastersword.mdx Set FleshCutter = (Last created special effect) UndoFleshCutter Events Unit - A unit Loses an item Conditions (Item carried by (Triggering unit) in slot 1) Equal to No item Actions Special Effect - Destroy FleshCutter The variable FleshCutter is a special effect type. Im really stuck, any help is appriciated. Xtil |
| 08-18-2003, 06:53 AM | #2 |
I believe you have to edit the models if you want to do that. No matter what you use for triggers |
| 08-18-2003, 01:45 PM | #3 |
Hmmmm... well, I don't know about whether it's even possible, I think it should be. You might try the left or right hand as your attach point instead of the weapon, though. However I'm not sure I follow the Conditions in your two triggers... the one for removing the sword clearly will have issues if you simply have another item in slot one or if you are keeping the Flesh Cutter in another slot besides slot one and drop something else. The same goes for the assumption that it will be in slot 1 in the sword-adding condition. And really, the part after "equal to" seems to bother me, although I can't really put my finger on why. You say you're only having the problem with the disappearing part, so I guess it must work. Anyway, hopefully you can get this working. :gsmile: Good luck, and try messing with your conditions or even disabling them entirely briefly so you can check and make sure the code they are executing actually works. If you disable the conditions and when you pick up the item (or any item, really) the graphic does not appear, then you know the problem is with your special effects code. If the effect appears and disappears as you pick up and drop items then you know the problem is with the conditions that are supposed to limit it to just the Flesh Cutter item. Happy hunting! |
| 08-18-2003, 02:13 PM | #4 | ||
Quote:
Try this instead Quote:
|
| 08-18-2003, 02:37 PM | #5 |
i can help you if you only want to attach the special effect... |
| 08-18-2003, 03:36 PM | #6 |
i think this trigger would work the best: Event - Unit loses an item Condition - Item-type equals (sword item) Action - Wait 0.01 sec - Remove (sword special effect) |
| 08-18-2003, 04:50 PM | #7 |
Thanks for your ideas guys, To Lost Loch I know that the item needs to be in that exact slot but I was hoping to find/make a system where you have your weapon in one slot and stuff. But I tried your suggestion about removing the condition and it works, but the special effect seems to take about 5 seconds to dissapear, not sure why that happens. Newhydra I tried your idea also and the first person gets the special effect but it never comes off. You cant have a wait in there cause if you give a item to another hero it will overlap, like: Hero A grabs item, the special effect shows up, now you give the item to another hero B. The item will leave A and that trigger will activate and will get to the wait for .01 sec so while it waits the item has to be given to hero B and his item acquire trigger will activate immediatlly giving him a special effect. Im not sure that makes sense but oh well. Xtil |
