I can't seem to make my player attributes work. When I playtest in the editor it works fine but it doesn't seem to work when I test on bnet. Anyone else having this problem? Here's my code:
Starting Race
Events
Map Initialization
Local Variables
playerRace = No Attribute Value <Attribute Value>
players = 0 <Integer>
Conditions
Actions
Player Group - For each player players in (Active Players) do (Actions)
Actions
UI - Display ("Player:" + (Text(players))) for (All players) to Subtitle area
Variable - Set playerRace = (WCND - Faction value for player players)
WCND - Create Melee Starting Units(playerRace, players)
WCND - Create Melee Starting Units
Options: Action
Return Type: (None)
Parameters
attribute = No Attribute Value <Attribute Value>
player = 0 <Integer>
Grammar Text: WCND - Create Melee Starting Units(attribute, player)
Hint Text: (None)
Custom Script Code
Local Variables
x = 0 <Integer>
Actions
General - Switch (Actions) depending on attribute
Cases
General - If (Random)
Actions
Variable - Set x = (Random integer between 1 and 1)
General - If (Conditions) then do (Actions) else do (Actions)
If
x == 1
Then
UI - Display "random" for (All players) to Subtitle area
Melee - Create Horde melee starting units for player player at (Start location of player player)
Else
General - If (Horde)
Actions
UI - Display "Horde" for (All players) to Subtitle area
Melee - Create Horde melee starting units for player player at (Start location of player player)
Default
Attributes are setup in the bnet lobby not set like a variable; ie you should not be passing the variable through as a parameter as its already basically like a global variable. Also why are you setting a local variable to 1 from a useless range and never use it again let alone properly.
I can't seem to make my player attributes work. When I playtest in the editor it works fine but it doesn't seem to work when I test on bnet. Anyone else having this problem? Here's my code:
Starting Race
Events
Map Initialization
Local Variables
playerRace = No Attribute Value <Attribute Value>
players = 0 <Integer>
Conditions
Actions
Player Group - For each player players in (Active Players) do (Actions)
Actions
UI - Display ("Player:" + (Text(players))) for (All players) to Subtitle area
Variable - Set playerRace = (WCND - Faction value for player players)
WCND - Create Melee Starting Units(playerRace, players)
WCND - Create Melee Starting Units
Options: Action
Return Type: (None)
Parameters
attribute = No Attribute Value <Attribute Value>
player = 0 <Integer>
Grammar Text: WCND - Create Melee Starting Units(attribute, player)
Hint Text: (None)
Custom Script Code
Local Variables
x = 0 <Integer>
Actions
General - Switch (Actions) depending on attribute
Cases
General - If (Random)
Actions
Variable - Set x = (Random integer between 1 and 1)
General - If (Conditions) then do (Actions) else do (Actions)
If
x == 1
Then
UI - Display "random" for (All players) to Subtitle area
Melee - Create Horde melee starting units for player player at (Start location of player player)
Else
General - If (Horde)
Actions
UI - Display "Horde" for (All players) to Subtitle area
Melee - Create Horde melee starting units for player player at (Start location of player player)
Default
I dont know but i want to stab at it
try replacing arrtibute with a variable or preset.
it might be because bnet doesnt allow new attributes
Attributes are setup in the bnet lobby not set like a variable; ie you should not be passing the variable through as a parameter as its already basically like a global variable. Also why are you setting a local variable to 1 from a useless range and never use it again let alone properly.