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.



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

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 06-04-2005, 03:04 PM   #1 (permalink)
BattleForums Newbie
 
Join Date: Jun 2005
Age: 19
Posts: 1
Multiboard

Im running into problems creating "new variables" for a player on a multiboard. For example:
_______________________
Events
Unit dies

Actions
Set Variable - (killnum) = (killnum) + 1
Set Var - (deathnum) = (deathnum) + 1
if - Player 1 = owner of killing unit
then - Multiboard - Change text in col (2) row (2), String(killnum)
else-
------>if - Player 1 = owner of dieing unit
------>then - Multiboard - Change text in col (3) row (2), String(deathnum)
------>else - do nothin
_____________________________

Is there a way i can do this for all players on the multiboard, putting it into sum sort of array (theres 12 players). I got stuck b/c its not like a leaderboard where the player column has direct corellation with its value column.
HadezOwner 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 06-04-2005, 06:50 PM   #2 (permalink)
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,591
Declare killnum as a 12 element array and find some way to access the individual elements. Like Play number - 1 or something.
__________________


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.


Kurisu - Zy-el Sorceress - Level 41 of 10000

NezMod Server Forums - The Mod lives on!
Join the Phantasy Star Online sensation - ChrisH36
Chris is offline   Reply With Quote
Old 06-04-2005, 10:58 PM   #3 (permalink)
BattleForums Addict
 
Icedragon's Avatar
 
Join Date: Aug 2002
Location: The Swiming Pools
Age: 20
Posts: 834
well you could do one of two things...
make a varible for every player like p1kill p2kill p1death p2death
or try the array thingy i have never worked with them so your basically sol if you ask me about them
__________________
I Will Rise from the Depths and be HEARD!
Icedragon is offline   Reply With Quote
Old 06-05-2005, 12:50 AM   #4 (permalink)
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,591
You are actually better off with an array and something to access the different elements of the array.
__________________


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.


Kurisu - Zy-el Sorceress - Level 41 of 10000

NezMod Server Forums - The Mod lives on!
Join the Phantasy Star Online sensation - ChrisH36
Chris is offline   Reply With Quote
Old 06-05-2005, 02:34 AM   #5 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,154
Quote:
Originally Posted by Icedragon
well you could do one of two things...
make a varible for every player like p1kill p2kill p1death p2death
or try the array thingy i have never worked with them so your basically sol if you ask me about them
You only do that if you need a two-or-more-level array which the World Editor does not support.*
__________________
* IM IN UR WIKI RVRTING UR EDITS
x42bn6 is offline   Reply With Quote
Old 06-05-2005, 02:39 AM   #6 (permalink)
BattleForums Senior Member
 
IceDevil9's Avatar
 
Join Date: Feb 2003
Location: CA
Age: 20
Posts: 3,420
Please read my tutorial on arrays in the Tutorial Links section.

-Frank :cool:
__________________



All brawn and no brains and all those nice things
And you finally got what you want
Someone to look good with and light you cigarette
Is this what you really want?

I've figured out, what you're all about
And I don't think I like what I see, so
I hope I won't be there in the end when you come around

How long will he last before he's a creep in the past
And your alone once again
Will you pop up again and be my special friend
Till the end and when will that be


:halo Kurt Donald Cobain 1967 - 1994 R.I.P. :halo

IceDevil9 is offline   Reply With Quote
Old 06-05-2005, 03:05 PM   #7 (permalink)
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,591
That is sad really, most of the problems are solved from Icedevil's thread.

Frank, say (read first) or something in the title, that will minimize the threads about questions that are solved by minimal effort.
__________________


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.


Kurisu - Zy-el Sorceress - Level 41 of 10000

NezMod Server Forums - The Mod lives on!
Join the Phantasy Star Online sensation - ChrisH36
Chris is offline   Reply With Quote
 
Reply

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

« I just hav a question for IceDevil and all the other wc3map guys | Height »

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 10:51 PM.



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