Multiboard

HadezOwner

New Member
Joined
Jun 4, 2005
Messages
1
Reaction score
0
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.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Declare killnum as a 12 element array and find some way to access the individual elements. Like Play number - 1 or something.
 

Icedragon

BattleForums Addict
Joined
Aug 2, 2002
Messages
836
Reaction score
0
Location
The Swiming Pools
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
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
You are actually better off with an array and something to access the different elements of the array.
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
Icedragon said:
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.*
 

IceDevil9

BattleForums Senior Member
Joined
Feb 19, 2003
Messages
3,418
Reaction score
3
Location
CA
Website
www.rcthaven.com
Please read my tutorial on arrays in the Tutorial Links section.

-Frank :cool:
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
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.
 

NewPosts

New threads

Top