| 12-20-2005, 07:25 AM | #1 |
Hello i have a simple request on a trigger i can not work out, Im a big n00b when it comes to triggers but im learning. But i can not work. Im making a map where the Enemy player "Vampire" does not appear on the map till about 1 min of game time, But what i want to happen is very night time at 18:00 hours i want the vampire to be permintly cloked untill he attacks, at at day the clock is turned off untill next night time. Can sume one make a simple trigger in a map to uplaod or write it down for me, I can not figuer it out. Ps: The map is complete just re-editing it to add more spells and such. Thanx foir any help |
| 12-20-2005, 08:00 AM | #2 |
Maybe make a variable that keeps track of daytime (or if there is a trigger to do this, I dunno, under the Game- ones maybe) and when you want to make him cloaked (ie, @18:00) give him the ability perma-invis. Then have this: EVENT: -Generic Unit :: A unit is attacked. CONDITION: -Unit-type of {Attacking Unit} == Vampire ACTION: -Remove perma-invis ability. Or another way to keep track of time is to set it on a timer... figure out how long it takes the game to go 18:00 in-game-hours and set a timer that when it goes off, gives him perma-invis, and then starts a 24-hour timer. |
| 12-20-2005, 08:11 AM | #3 |
Thank you :) Also me being stupid forgot to add two things: variable hwo to make them? And to give the Vamp perm-invis i have to make the spell first right, OR could I give him the abilitiy "Ghost" that the shad has from the undead units? and jst remove it at day? Also, When it says: "add abilitily to (Triggering unit) " How cna i selet my vampier? Cos he is not on the map cos he is triggered to enter the map. (Hoep i amde sence there) Sorry to be such a pain the the butt, Iw as rushing when i typed my first message cos my brother was late for school so i had to take him on my bike. |
| 12-20-2005, 08:52 AM | #4 |
When you create the vampire after one minute, set him to your unit variable. Then, whenever game time becomes equal to 18:00, give him the permanent invisibility ability (based on the one the shadow wolves use), and when the time of day becomes 6:00, remove it. The permanent invisibility already makes the unit appear whenever it attacks, you can customize for how long it appears on the ability. |
| 01-18-2006, 04:03 AM | #5 |
In your trigger to have the vamp enter the map, it should look something like this: Code:
EVENTS blahblahblah CONDITIONS blahblahblah ACTIONS Unit - Create Vampire blahblahblah (you should have this line already) Set Variable [u]VampireVariable[/u] equal to (Last Created Unit) To create variables, when you open the Set Variable dialog box, there should be a tiny button called "Edit Variables", where you can create a new variable, with a variable-type of "Unit". Now whenever you want to give the vamp. invis you can do something like: Code:
ACTIONS Unit - Add (Permanent Invisibility Ability) to VampireVariable. Hope that made sense! And Permanent Invisibility IS already an ability. I'm not sure what the difference is between that and Ghost, I'm trying to figure out how to use it myself to make a cloaking device... >.>;; |
| 01-18-2006, 07:57 AM | #6 |
This is a month old thread. The lack of activity in this time indicates that the question asked has already been answered, or that the creator gave up. So, no need to post here. Closed. |
