ID:2127558
 
(See the best response by Kaiochao.)
Code:
mob
Bijuu
var/Name = ""
var/Chakra = 0
var/Taken = 0
var/Seal = 0


var/Bijuu[9]

world/New()
var/i
for(i=9,i<=9,i++)
Bijuu[i] = new/mob/Bijuu()
if(i==1)
Bijuu[i].Name = "Shukaku"
Bijuu[i].Chakra = 50000


Problem description:
Programming\Biiju.dm:16:error: .: expected end of statement
Programming\Biiju.dm:17:error: .: expected end of statement

its saying that for Bijuu[i].Name and Chakra Why
Best response
Unfortunately, the . operator doesn't currently support being applied to anything other than a variable. The compiler has no way to know if a given list item is a certain type, either, so it can't apply the type-checking properties of the . operator.

You'll just have to typecast, like so:
var mob/Bijuu/bijuu = new
Bijuu[i] = bijuu
bijuu.Name = "Shukaku"
bijuu.Chakra = 5e4 // aka 50000
Thankyou
can i do the next line the same using bijuu? to put in i
In response to Zoblod
what
forget it i fix it thanks
another problem following this code

if(Brand == 1 && Shukaku == 1 && Bijuu[1].Taken==0)





this keeps giving me an error



Programming\Biiju.dm:131:error: .: missing comma ',' or right-paren ')'
Bijuu[1].Taken==0


This is not valid. You must create a variable pointing to Bijuu[1] to achieve this.

Kaiochao already explained this though.
ah ok
In response to Zoblod
Same problem as the first one.
thnks