| 07-29-2003, 04:29 AM | #1 |
Can someone interpret this text of this trigger into an actual trigger so i can understand it better. Im in RoC Editor Event: A Unit leaves region 1 Conditions: None Actions: Pick every unit in region 1 and do If picked unit = item, set variable booleanItemChecker=True, else Do Nothing. if booleanItemChecker=False, create item at center of region 1. PLEASE this si one of the last triggers I need... |
| 07-29-2003, 04:45 AM | #2 |
hmm dunno, seems like it should work |
| 07-29-2003, 04:58 AM | #3 |
its not that it dosent work, i dont know how to convert those words into actual triggers i need someone to do that for me, like tell me whut trigger type i should use im not good at triggers, 1st day so i need someone to write the complete trigger to me not in english but in WE words |
| 07-29-2003, 04:58 AM | #4 |
hmm, try 2 triggers, Event: A Unit leaves region 1 Conditions: None Actions: Pick every unit in region 1 and do If picked unit = item, set variable booleanItemChecker=True, else Do Nothing. Run Trigger 2 Event-None Condition-None Actions- if booleanItemChecker=False, create item at center of region 1, else do nothing. Oh... Ill do that later |
| 07-29-2003, 05:28 AM | #5 |
i don't think u can check if a unit is an item. i think warcraft treats them as altogether different objects altogether, even though items are in the unit window for map placement. |
| 07-29-2003, 05:37 AM | #6 |
is region 1 a layer on the map? if not then your gonna have to set a value for it using the set value action and define your own, which is usually tricky and often involves math (depending on what your using the region for). |
| 07-29-2003, 05:41 AM | #7 |
By layer you mean selecting by going to Layer->Region and im only using it to create a certain Item at that region when that item isnt there anymore |
| 07-29-2003, 05:44 AM | #8 |
OH BTW does anyone know how ot do a trigger that respawns your unit in a different region everytime it dies, i know it involves variables and are quite confusing but if anyone could tell me how or show me a tutorial how to do them then that would be superb! |
| 07-29-2003, 05:48 AM | #9 |
When you say a different area, you mean every time it dies it randomly picks a region from a selection of regions? I think you need to create a variable it randomly generates, then use if/then/else actions to send the unit to the right place. I'll try to explain it further when I get home. |
| 07-29-2003, 05:58 AM | #10 |
Yea thats what im talking about, it would be great if you could show me how to do it, ive tried manytimes but all the time came out unsuccessful |
| 07-29-2003, 11:32 AM | #11 | |
Quote:
although that is the solution, i think this one is a bit better, cause it saves alot of if-then's Code:
Respawn
Events
Unit - A unit Dies
Conditions
Actions
Hero - Instantly revive (Dying unit) at (Center of Regions[(Random integer number between 1 and RegionCount)]), Hide revival graphicsSo, what this does is, revive the last dying unit, in a region from the Region Array regions, with a random number between 1 and the number of regions in Regions array. You will have to lengthy start to initialize all the regions, but this is alot less then all the If-Then's. you can add a wait, or a camera to focus on the place the hero just respawned or anything you would like. Code:
Set Eventcount = 4 Set Regions[1] = Region 000 <gen> Set Regions[2] = Region 001 <gen> Set Regions[3] = Region 002 <gen> Set Regions[4] = Region 003 <gen> If you add all the regions to the array like this, then you can use the above reviver. I did it for a hero, but you can do it easily for a regualr unit. anyway, hope this solves your problem |
| 07-29-2003, 04:56 PM | #12 |
But the unit isn't a hero, it's an item. And it doesn't die. It just leaves the region. The first trigger you mentioned works, LiableSu5pect. Just spend some time learning the trigger actions and you'll be able to implement it in no time. |
| 07-29-2003, 06:00 PM | #13 | ||
Quote:
please do read a bit further ;) he asked for a trigger after that that would respawn a unit that had died in a new region everytime it would die. Quote:
|
| 07-29-2003, 06:34 PM | #14 |
But panto your the person who orginally gave me the trigger to do, and I can see freom what I read that it works. But when I try to implement it into WE I cannot find a triiger that does Item - Classification only Item - Invenurable, the only classification it has is Unit - Classification. And when I try to use a variable and name it as an Item it dosent work. I dont think there is a way to implement that trigger into WE but if anyone could copy the text here and show me like wiebbe did when he showed me the spawn trigger. SO thanks all for your help, oh and if anyone knows a tutorial to keep the camera in 3rd Person view that would help me even more. Thank u all though, now i know where to go when I need trigger help :ggani: |
| 07-29-2003, 06:38 PM | #15 |
OH But wiebbe the trigger you gave respawns the unit that dies, I want to respawn a certain unit no matter what unit you own dies, like in a Halo type map, if you die with the Plasma Gun you return in a random area with a Pistol and a set inventory of 3 grenades. I know how to respawn units just not in random locations everytime. Oh if someone dosent understand whut i mean by locations is regions. |
