Welcome to the BF Forums! Register Now, It's Free!

Welcome to the BF Forums; your source for the latest and greatest video game news, strategies, discussions, and resources. Join over 60,000 like-minded gamers from around the world to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.

Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Major Games > Warcraft > Warcraft Maps and Modifications

Reply
 
Thread Tools Display Modes
Old 04-14-2007, 10:48 AM   #1 (permalink)
BattleForums Junior Member
 
the_playa6916's Avatar
 
Join Date: Jul 2004
Location: CaNaDa
Age: 19
Posts: 54
Recuable Heros

Is there a way I can make a hero that a certain player can use, but no other players, and the unit doesn't belong to that player? I want to make something like the heros are mercenaries but only for that player, and making the hero belong to that player would really bug up a lot of my triggers..
__________________
... Playa's Up to: An RPG that'll actually finish :bouncy
the_playa6916 is offline   Reply With Quote
Old 04-17-2007, 01:06 PM   #2 (permalink)
*shakes fist*
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 14,882
Quote:
Originally Posted by the_playa6916 View Post
Is there a way I can make a hero that a certain player can use, but no other players, and the unit doesn't belong to that player? I want to make something like the heros are mercenaries but only for that player, and making the hero belong to that player would really bug up a lot of my triggers..
Yes, use a trigger, probably. But the other players would be able to see the icon/hero (depends on how you get the hero) - just not have a hero. Basically, you make a trigger so when that they pick the hero, check the player of the triggering unit and if it isn't right, remove the hero. For example, say I step on a region to choose that hero:

Events:
Unit enters [SomeWeirdRegion]

Conditions:
Whatever you need

Actions:
If conditions Then actions Else actions
If conditions
And
Entering Unit [is equal to] [Wisp]
Player of [Entering Unit] [is not equal to] [Player 1 (Red)]
Then actions
Do nothing
Else actions
Create [1] [Your hero] at [Wherever you want] facing [Wherever you want]
*
__________________
* Hang on a second...

Diablo III has been announced!

Here's what you need to do: Register a new account and tell the world what you think of this game.

Tell the damned world. The world wants to know.

Last edited by x42bn6; 04-17-2007 at 02:12 PM.
x42bn6 is offline   Reply With Quote
Old 04-17-2007, 01:30 PM   #3 (permalink)
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,139
In other words, you check the player before you create it. Just remember that if the other player tries to make it, refund thier money with Player Properties - Set Gold and Lumber.
__________________


The Purpose of DTD is not to show off how good you are.
But to do an insane flying move and landing at 3000 km/h.
Hopefully, without crashing into something or flying off in the process.

F-Zero Forever!

One of Wrestlemania 24's Epic Moments

Chris is offline   Reply With Quote
Reply

« How to make lvl 15 heroes? | Neutral Creep Spawn »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 04:25 PM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0