HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dueling System Helpage

05-29-2005, 11:56 PM#1
Zero
LOL, I am at work and finally am able to get on the net. Anyways, I set up a dueling/arena area on my map and just have a few questions.

After spending some time I could not figure out how to do a few things.

Some info first, all heros hace a classification as "Ancient" and in attacks allowed the "non-ancient" thing. This makes it so you can't attack fellow heros.

The way the arena is set up is there is a area in the middle of a room where the two heros can duel and a area on the out side where heros not fighting can walk around and watch the fight.

Ok, well I was going to make it remove the "Ancient" classification from the two dueling heros so they can fight, but the one thing about this is ALL HEROS watching could also attack the two in the middle...

There is no way to change attack type or attacks allowed on the heros threw triggers, well at least to my knowledge.

How can I set this up so that the heros on the outside watching cannot intervein with the two fighting?

I was thinking maybe IF there is a duel going on, change or pause the current players hero in the watching area untill the duel is over, then if they want to leave during the duel type like "-leave duel area' or something and it warps them out. Or wait till the duel is over and just leave the area.

I REALLY don't want to do it like this, I would rather make it so the watching hero's CANNOT attack the hero's dueling.

Any help? Plz?? :p
05-30-2005, 02:02 AM#2
StealthFox
Use Cinematic - Disable user control for (Player X)
05-30-2005, 02:46 AM#3
Zero
Quote:
Originally Posted by StealthFox
Use Cinematic - Disable user control for (Player X)

...that's great and all, but this isnt what I want to do. I dont want to do it this way. I would like to make it so the players CAN control their heros while being in the duel area. THIS would prevent that and besides I know other ways as well to do this, but I would rather do it a different way.
05-30-2005, 02:54 AM#4
Ignitedstar
Hmm... pretty cool. :P

NOTE: I don't have WE open right now, so I can't explain this correctly.

Maybe you could make a regions that surronds the area to where the players outside can walk and another region where for the area where the duelers are. Make a trigger with a event for the outside region, then make a condition that is related to when a player casts a spell or attacks, and make an action that cancels the attack or spell.
05-30-2005, 03:10 AM#5
Zero
Quote:
Originally Posted by Ignitedstar
Hmm... pretty cool. :P

NOTE: I don't have WE open right now, so I can't explain this correctly.

Maybe you could make a regions that surronds the area to where the players outside can walk and another region where for the area where the duelers are. Make a trigger with a event for the outside region, then make a condition that is related to when a player casts a spell or attacks, and make an action that cancels the attack or spell.

I thought of this as well, but the problem I ran into was the event for the trigger. IF you do an event with specific unit event you can say unit acquired a target, BUT if you do a general event that option is not there. WELL you cannot use varaibles in event situations, so, I couldn't get this to work.

If there a way to?
05-30-2005, 03:16 AM#6
StealthFox
o_O OOPS! Bad idea....please dump bad rep on me for that retarded reply. Use Unit - Pause [Unit]

Then unpause them after the arena battle.
05-30-2005, 03:22 AM#7
StealthFox
Use Unit - Pause [unit]. All of the other ways require LOTS of trigger work.

Here is an example: Set an ability array with all of your abilities that the heroes use and use a loop to disable those abilities for all of the other players. When an order occurs against a dueling unit force the other unit to hit stop. Turn this one on only during the duel.
05-30-2005, 07:07 AM#8
Anitarf
Another option would be that whenever a hero (or a unit, if the hero can summon them) enters the duel-observing area, a dummy caster would cast a modified silence at the unit's position. With silence, you can also prevent attacks, not just spells. That way, you completely prevent the hero from interfering in the duel. When he leaves the area, just remove the buff from him. The only possible problem I see is if there are any actively used items around, players can still use those even when silenced. If an item has any spells that could seriously affect the duel, this method is not enough.
05-30-2005, 06:56 PM#9
Zero
Allthough that is a brillant idea :)

As for the items, I could just have them removed temporaly until they leave the duel area.
Anitarf you are meh hero :p
05-30-2005, 07:16 PM#10
Ignitedstar
Hmm... you can save information on items?
05-30-2005, 07:35 PM#11
Zero
Yes. You can put them into an array or set them to a custom value.
05-30-2005, 10:19 PM#12
Vexorian
actually, for the watcing heroes just add the Cargo Hold (orc burrow) ability, that would disable their attacks
05-30-2005, 10:44 PM#13
Zero
Quote:
Originally Posted by Lord Vexorian
actually, for the watcing heroes just add the Cargo Hold (orc burrow) ability, that would disable their attacks

Yes, but they could still cast spells as well.
05-30-2005, 11:06 PM#14
Vexorian
Just a thought, don't move heroes there to watch, make the map fun to play so you don't have to fall in boredom when other two guys decide to duel.

Then you can just pause?
05-30-2005, 11:33 PM#15
Zero
Quote:
Originally Posted by Lord Vexorian
Just a thought, don't move heroes there to watch, make the map fun to play so you don't have to fall in boredom when other two guys decide to duel.

Then you can just pause?

It doesn't move heros there, that would be stupid. IT just applies if the players moved their heros into the watchin area.