Guys, I need your help!
How can I read party.txt in data folder?
Is there some trick to read Leader or Member serial from it?
Example of my Party.txt
Code: Select all
#
# PARTIES.TXT: Party Data
#
Party
{
Leader 0x2
Member 0x2
Member 0x1d21
}
It gives me that:print(" attacker.party : " + attacker.party ); // DEBUG
print(" attacker.party.candidates : " + attacker.party.candidates ); // DEBUG
print(" attacker.party.candidate_of_party : " + attacker.party.candidate_of_party ); // DEBUG
print(" attacker.party.leader : " + attacker.party.leader ); // DEBUG
var party_members := attacker.party.members;
print(" party_members : " + party_members ); // DEBUG
if( attacker.serial in party_members )
print(" attacker.serial : " + attacker.serial ); // DEBUG
endif
print(" attacker.party.members.member : " + attacker.party.members.member ); // DEBUG
Code: Select all
attacker.party : <appobj:PartyRef>
attacker.party.candidates : { }
attacker.party.candidate_of_party : <uninitialized object>
attacker.party.leader : <appobj:OfflineMobileRef>
party_members : { <appobj:OfflineMobileRef>, <appobj:OfflineMobileRef> }
attacker.party.members.member : <uninitialized object>
attacker.party.propnames() : { }
I think your help will be very helpful to others.
With best regards!