| 10-10-2002, 12:46 AM | #1 |
Guest | can u plz tell me the trigger id use to make it so that wehn a hero enters a region he becomes invisible, thx! |
| 10-10-2002, 02:37 AM | #2 |
Say, why don't you tell us your idea, then one of us can do the whole thing for you? I'll help you today but before you ask silly questions like this again, you should actually try to do it yourself. Make simple maps first then explore a little bit at a time. When you are really really stuck, that's when you come for help. Not when you're too lazy to look through the list of actions. This is the easiest method. However, the controlling player won't be able to see him either. EVENT: A unit enters <region> CONDITION: ((Entering unit) is a Hero) equal to True ACTION: Unit - Hide (entering unit) |
| 10-10-2002, 05:54 AM | #3 |
I think that in the trigger editor there should be an action like "apply spell effect on unit" so when someone enters a region they become bloodlusted or polymorphed etc. One way you could (sort of) duplicate the effect of invisibility while still being able to use and control your hero is the following. I believe this should work. ... On one hero at a time at least... Make a variable called "InvisibleUnit", then make two triggers, one called "invisibility activate" and the other "invisibilty end". Invisibility End should not be initially on. Events Unit enters [Invisible region] Conditions If you need it to be a hero, then: Boolean Comparison: ((Triggering unit) is a hero) Actions Animation- change (triggering unit) vertex coloring 100% 100% 100% with 50% transparency (Or whatever looks the closest to a invisible unit transparency) Unit- make (triggering unit) invulnerable. Set Variable InvisibleUnit to (triggering unit) Trigger- turn on (invisibility end) Next trigger now, to know when to end the effect. Events Time- 120 seconds of game time passes InvisibleUnit is issued an order targeting a unit. InvisibleUnit is issued an order targeting a point. Conditions Issued order is not equal to move issued order is not equal to patrol Animation- change <trig unit> vertex coloring 100% 100% 100% 100% transparency. Unit- make unit vulnerable This makes the unit visible to you, but the enemy just ignores it. It should end when the invisible unit attacks or casts a spell. If u need more help then I'll be glad to (attempt to) help you. |
| 10-12-2002, 01:34 AM | #4 |
I appologise for my above post. I had a very bad day at work that day. Hmmm, I seriously thought someone would have posted this by now...I guess not. EVENT: A unit enters <region> CONDITION: ((Entering unit) is a Hero) equal to True ACTION: Unit - Create 1 Sorceress for <player x> at (position of (triggering unit)) facing default building degrees Unit- Hide (last created unit) Unit - Order (last created unit) to Human Sorceress - Invisibility <Triggering Hero> Unit - Remove (last created unit ) from the game Just besure that you've given "player x" the required research in order for the sorceress to be able to cast Invisibility. Unless you edit the .txt and remove the requirment. Also, you will probably see the visiual effect on your hero. That wierd purply swirly effect that is part of the invisibility effect. Not sure how to remove that. |
| 10-12-2002, 01:54 PM | #5 |
Guest | pretty good. But don't the sorceress need mana to do it? You should add this 1 Set Mana of last created unit to 100% |
| 10-14-2002, 01:32 PM | #6 |
Guest | but are there going to be sorcerress's (emote_confused ) running around now? |
| 10-14-2002, 09:21 PM | #7 |
Guest | No there will not be sorcerress's running around. But this way would also work. You will need to use a variable though. Event - unit enters (region) Condition - Entering unit is a Hero equal to True Action - set (variable) = item carried by (Hero) in slot 1 Hero - drop item in slot one from (Hero) Hero - create potion of invisibility and give it to (hero) Hero - Order (hero) to use last created item Hero - Create item type (variable) and give to (hero) Remove - last dropped item That should work havent tried it though. But a pretty easy way to do it. |
| 10-15-2002, 05:55 PM | #8 |
Guest | What your telling us is th potion only last 30 sec? Well I think this 1 might work. If you want him to have item to make him invisible. Make the item is a key or whatever. No Charge. Ability : Ghost or Permenetly Invisible but i am not sure if you want it to be like this. When you attack a unit and they can see you until you stop use ghost. And item is not take outable or something Event - Unit Enter Ghost (Use that for now) Condition - Entering unit is a Hero equal to True Action - Create item in slot (1 - 6) Ghost Key. This might make sense for what ghost key should do. If you want it to time, Say about 2 minute. add this Wait 120.00 Item - Remove last created item. |
| 10-15-2002, 07:45 PM | #9 |
Guest | Depends if you want permanent invisibility or not. You can always use a potion of greater invisibility if you want longer. I just thought it was a limited thing. Hmmm... |
