Register for free, and make this box disappear!

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


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers 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. Whatever your game interest may be, you'll find information here where people realize that games are more than just poker online.


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

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 07-20-2004, 10:26 PM   #1 (permalink)
BattleForums Junior Member
 
eric82588's Avatar
 
Join Date: Jul 2004
Posts: 38
Icon9 i have a few questions.

Ok, i have a few questions.

1. How do you make it so where the default setting for the map has all terrain visible.

2.how do you make it so where a trigger works only once, and thats it.

3.thats it 4 now.
plz help. thanks:fwink
eric82588 is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 07-21-2004, 02:13 AM   #2 (permalink)
BattleForums Junior Member
 
Join Date: Apr 2004
Location: Clearwater, Florida
Age: 19
Posts: 109
#1 make a trigger that says
Visible
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility from (Center of (Playable map area)) to a radius of 99999.00)




#2 make your trigger and at the end of it add
Trigger - Turn off (This trigger)

hope that helps
__________________
Dethstalker is offline   Reply With Quote
Old 07-21-2004, 03:14 AM   #3 (permalink)
BattleForums Junior Member
 
eric82588's Avatar
 
Join Date: Jul 2004
Posts: 38
kool...

kool it works, but i have another question.

what would i do if i wanted to make it so where (when everyone has 5 gold, which each gold is like a life) each time someone dies they lose 1 gold, then when there gold reaches 0 they lose.

if u could help me that would be great. thanks
eric82588 is offline   Reply With Quote
Old 07-21-2004, 04:43 AM   #4 (permalink)
BattleForums Junior Member
 
Join Date: Apr 2004
Location: Clearwater, Florida
Age: 19
Posts: 109
Thats a bit complicated and involves variables but ill help u

first make a variable that says - Make the array number the ammount of players in your map that use the live system
Lives - Integer Array (2) - 5

Then make a trigger that says
Dies
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
If ((Owner of (Triggering unit)) Equal to Player 1 (Red)) then do (Set Lives[1] = (Lives[1] - 1)) else do (Do nothing)
If ((Owner of (Triggering unit)) Equal to Player 2 (Blue)) then do (Set Lives[2] = (Lives[2] - 1)) else do (Do nothing)
Player - Set (Owner of (Dying unit)) Current gold to Lives[1]

then make a trigger for each player to set the loss like

Loose 1
Events
Time - Every 2.00 seconds of game time
Conditions
Lives[1] Equal to 0
Actions
Game - Defeat Player 1 (Red) with the message: Defeat!

Loose 2
Events
Time - Every 2.00 seconds of game time
Conditions
Lives[2] Equal to 0
Actions
Game - Defeat Player 2 (Blue) with the message: Defeat!

that is how it would work with 2 players....i gtg now but that should work....
__________________
Dethstalker is offline   Reply With Quote
Old 07-21-2004, 05:11 AM   #5 (permalink)
BattleForums Junior Member
 
eric82588's Avatar
 
Join Date: Jul 2004
Posts: 38
sorry

Sorry but im really confused, mainly with the variable stuff.
eric82588 is offline   Reply With Quote
Old 07-21-2004, 05:27 AM   #6 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Create an array with the number of indexes the same number as the number of players.

In scripting notation this would be variable(number of players) where variable is the name and number of players is well, what it is.

So if variable name is a, and we have 5 players,

a(5)

Initial value for all of these would be 5

a(0)=5
a(1)=5
a(2)=5
a(3)=5
a(4)=5

Indexes start at zero so the nth term of an index of variable x is x(n-1).
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
Old 07-21-2004, 05:52 AM   #7 (permalink)
BattleForums Junior Member
 
Join Date: Apr 2004
Location: Clearwater, Florida
Age: 19
Posts: 109
Ill try to explain just a bit better.... Go to triggers and go to the Variables its a yellow X. then hit CTRL+N name the variable Lives and make the Type be Integer. then select the array button then in the array number box make the number the same as the ammount of players you have. then click on 0 (Default) and change that to the ammount of lives you wish to have.

i found a shorter way to do the triggers after you did that. Make a new trigger like

Lives
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
If ((Owner of (Dying unit)) Equal to Player 1 (Red)) then do (Set Lives[1] = (Lives[1] - 1)) else do (Do nothing)
If ((Owner of (Dying unit)) Equal to Player 2 (Blue)) then do (Set Lives[2] = (Lives[2] - 1)) else do (Do nothing)
If (Lives[1] Equal to 0) then do (Game - Defeat Player 1 (Red) with the message: Defeat!) else do (Do nothing)
If (Lives[2] Equal to 0) then do (Game - Defeat Player 2 (Blue) with the message: Defeat!) else do (Do nothing)
Player - Set (Owner of (Dying unit)) Current gold to Lives[(Player number of (Owner of (Dying unit)))]


i made it work with 2 players but if you want more players just copy your action

If ((Owner of (Dying unit)) Equal to Player 1 (Red)) then do (Set Lives[1] = (Lives[1] - 1)) else do (Do nothing)

and change the Player 1 (Red) to the new player and change the [1] to the number of the player...like [1] is player 1 [3] is player 3 and so on

i tested this and it works....let me know if u need more help
__________________
Dethstalker is offline   Reply With Quote
Old 07-21-2004, 10:32 AM   #8 (permalink)
BattleForums Junior Member
 
eric82588's Avatar
 
Join Date: Jul 2004
Posts: 38
ok...

unit - a unit dies. i cant find that

i can get unit - (a specific unit) dies
and unit 0 a unit owned by (play) dies

but i cant find unit - a unit dies, just any unit.
eric82588 is offline   Reply With Quote
Old 07-21-2004, 10:34 PM   #9 (permalink)
BattleForums Junior Member
 
Join Date: Apr 2004
Location: Clearwater, Florida
Age: 19
Posts: 109
its Unit- Generic Unit Event
__________________
Dethstalker is offline   Reply With Quote
Old 07-28-2004, 06:59 PM   #10 (permalink)
BattleForums Addict
 
Darimus's Avatar
 
Join Date: Oct 2003
Posts: 681
OK I'll help you out here:

EVENT: Unit - Generic Unit Event [Unit Dies]

CONDITIONS: Boolean Comparison: Unit Classification Check (Dying Unit) is a Hero == True

ACTION:

Player - Add Property -1 gold to (Owner of (Dying Unit))

[Use: If/Then/Else]
If: Integer Comparison: Player Property - (Owner of (Dying Unit)) gold equal to 0

Then: Game - Defeat (Owner of (Dying Unit)) with message Defeat!

Else: Do Nothing
Darimus is offline   Reply With Quote
Old 07-31-2004, 06:07 PM   #11 (permalink)
BattleForums Senior Member
 
tassadar920's Avatar
 
Join Date: May 2003
Location: My house
Posts: 2,048
Then to add more lives give em more gold, etc, so many options.
__________________
: )
tassadar920 is offline   Reply With Quote
Old 08-01-2004, 06:53 AM   #12 (permalink)
BattleForums Junior Member
 
Join Date: Apr 2004
Location: Clearwater, Florida
Age: 19
Posts: 109
lol tassadar i think we established that or if not its easy to tell...u dont need to state what we/he knows already lol
__________________
Dethstalker is offline   Reply With Quote
Old 08-02-2004, 11:43 AM   #13 (permalink)
BattleForums Junior Member
 
eric82588's Avatar
 
Join Date: Jul 2004
Posts: 38
O thanks guys.. but i already figured it out, sorry i didnt confirm that so where this thread ended. :wavey
eric82588 is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« Trigger help! | i was wondering... »

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 +1. The time now is 05:36 AM.



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