| 07-25-2004, 01:29 AM | #1 |
Well i have this map me and a friend are working on. Well i'm doing a trigger for hero selection. Theres these locked heroes that u have to have special stuff to get. Well theres an area where u teleport to the heroes to select them if your name is either my name or a friends name. well i do the trigger perfectly let me post it. Code:
Events-Unit enters select region
Conditions- Unit type of entering unit equal to hero selector
Actions- If (all conditions are true) then do (then actions) else do (else action)
If- Name of owner of entering unit equal to myname or Name of owner of entering unit equal to friendsname
Then- Instantly move entering unit to selectregion2
wait 0.05 seconds
create special effect on entering unit's foot using spell blink (not actually path but who cares)
wait 1 second
destroy last created special effect
else- do nothing
----------------------
Display text message to all players saying: Sorry you are not authorized to use this door. Please select another hero |
| 07-25-2004, 02:31 AM | #2 |
I'm not sure I understand... You said "well i do the trigger perfectly"... If the trigger is done perfectly, what do you need help with? |
| 07-25-2004, 02:35 AM | #3 | |
Quote:
you must have missed that part =) and sorry cant help you with this one , too complex for me.. |
| 07-25-2004, 02:43 AM | #4 |
Events-Unit enters select region Conditions- Unit type of entering unit equal to hero selector Actions- If (all conditions are true) then do (then actions) else do (else action) If- Name of owner of entering unit equal to myname or Name of owner of entering unit equal to friendsname Then- Instantly move entering unit to selectregion2 wait 0.05 seconds create special effect on entering unit's foot using spell blink (not actually path but who cares) wait 1 second destroy last created special effect else- do nothing ---------------------- Display text message to all players saying: Sorry you are not authorized to use this door. Please select another hero The text is displayed as a result of what? Shouldn't it be...under the else (action) part? I am proabably raving mad, so yes... |
| 07-25-2004, 03:02 AM | #5 |
Its supposed to be there for if the if condition is not met. |
| 07-25-2004, 03:41 AM | #6 | |
Quote:
I missed the part on the bottom, but horusrogue has the right trigger. You can put whatever you want into the then\else parts to suit your needs, but the condition should work. |
| 07-25-2004, 01:29 PM | #7 |
He just posted my trigger and i have the condition like that but it doesnt work can anyone help me |
| 07-25-2004, 02:27 PM | #8 |
you might try using "Matching unit" instead of entering unit. Its just possible it may be that. |
| 07-25-2004, 02:55 PM | #9 |
your doing it all wrong.. instead of your name try to use player. like picked player.. owner of (picked unit) or entering unit will work.. if thats not what you want plz post the trigger that u have already |
| 07-25-2004, 03:33 PM | #10 |
Its meant to have it name because we want it accesable to only me and my friend. Can anyone help me PLEASE. i'm stumped on this :( |
| 07-26-2004, 01:33 AM | #11 |
Can you repost the trigger in its current state? (i'll relook over it...) |
| 07-26-2004, 02:34 AM | #12 |
I fixed it it was the if then else that was screwing it up i got rid of the if then else then replaced it with just a regular condition and action trigger |
| 07-26-2004, 03:36 AM | #13 |
o i was gonna say use a password.. but idono gl on ur map though i just started on an mrpg.. real life based medevail game i think its gonan be sick |
