| 10-21-2003, 03:35 PM | #1 |
Can u please tell me what the event condition and action are for these... 1) In an area there are 8 foot switches if you step on any foot switch then a creep is summoned from the center of the area, but if you step on the correct random foot switch then a unit that is blocking your way dies... how do i do this. 2) Every three seconds of game time a shade (that IS visible) is created then once created ordered to move to another region... how do i do this... thnx in advance :bgrun: |
| 10-21-2003, 04:49 PM | #2 |
I've never used foot-switches before; something tells me you'll just have to use regions and have the regions trigger your actions as well as switch "off" the footswitch... but I don't know. As for your second problem, you need a trigger that says something like this: Event - Every 3 seconds of game time Conditions - Action - Create 1 Shade at (center of SpawningRegion) facing (default building facing degrees) Action - Order (last created unit) to Move to (center of DestinationRegion) Sound right? Hope this helps! |
| 10-21-2003, 06:34 PM | #3 |
about the footswitches. here is how you do it. create a region for each footswitch calling them footswitch1, 2, 3, and 4. dun know how many there is so we will say 4. now make a trigger to make this foot switch random. looks like this. the variable for our random switch will be randomswitch event- --map initilization condition- --none action- --set randomswitch = random number between 1-4 that will make ur switch random. now make this trigger event- --unit enters region condition- --none action- --pick if than else ---condition- -----region is equal to footswitch1 ---action- -----if than else ------condition- --------ranomfootswitch = 1 ------action- --------destroy (guy in the way) ------else- ---------Create create at postition of trigger unit --else (put a if than else for footswitch2 here than continue on with 3 than do 4.) kinda complicated i guess huh? easier if you were to make it not random. or you could seperate the triggers into one for each footswitch. but than it would be clutterred OH YEA! and as for your other problem just do what he said^^ |
| 10-21-2003, 10:51 PM | #4 |
Under which catagorey does the first action under. and does this require a varible? if so plz tell wat it should look like |
| 10-21-2003, 11:08 PM | #5 |
the easiest way to find it is to not use a category at all. just scroll down a little ways. but the first action is uner the category general...it says if, than, else. i assumed you knew what i was talking about sorry. it does not require a variable it will let you set a condition inside of your trigger and than set actions to do if that condition is true. if the condition is not true it will do the else actions. so what that trigger does is if unit enters region1 it checks to see what the random number picked was. than if the random number was 1 it destroys the unit blocking the way. if not it creates a creep. and do you understand the first trigger? it creates the random number using the variable randomswitch. set variable action is also under gerneal category. |
| 10-22-2003, 12:06 AM | #6 |
K... im not quite getting this? Is the action called "Set Varible" cause there is no other with set. I dont know wat ur talkin about with the varible... when you go to the next trigger it requires a region but it keeps cummin up with all the regions... plz specify the region... (sry if this is anoying u) |
| 10-22-2003, 01:17 AM | #7 |
Yes, the action is set Variable. you need to create a variable. Supra God CK suggested Randomswitch, and I think that name works fine. The Variable should be an integer. If/Then/Else is located near the top, right next to set variable... Hope this helps. |
| 10-22-2003, 02:15 AM | #8 |
Foot swithes: To make it look like the campaigns, when u stand on it make an action trigger: unit enters region = Footswitch 1 No condition Kill doodad footswitch 1 unit- kill (guarding unit) |
| 10-22-2003, 11:02 PM | #9 |
i cant find the random number in the action "Set randomswitch = random number between 1-8 I cant find the if/then/else thingy your going all over the place with that trigger! Event --condition ---Action --condition ---Action Event --Condition ? ? ? ? ? ? Can you people make it more simpler... What the varible should look like (Interger vaule) (Type) What the trigger should look like... (Event Condition Action) Telling me what catagorey ever thing is under would help alot! |
| 10-23-2003, 05:42 AM | #10 |
when you set the variable there will be a drop down menu while picking the number. select that menu and you should be able to find the part about random numbers. the if, than, else is under category general than right around the bottom of it somewhere. what you are trying to do is a very hard trigger. most people don't understand it because of all the if, than, else i used. maybe you should start off with simplier triggers. and come back to this one near the end of your map. when you understand things better. |
