Re: [crossfire] Questions about archetype files

2019-04-16 Thread Mark Wedel
On 04/16/2019 12:38 PM, Bob Tanner wrote: Got another question. Is the name attribute not required? Just 1 example I found. The Dragon Guild object does not have a name field? If name is not set, it uses the name from the Object field. So it is not required.

Re: [crossfire] Questions about archetype files

2019-04-16 Thread Bob Tanner
Got another question. Is the name attribute not required? Just 1 example I found. The Dragon Guild object does not have a name field? construct/town/dragon_guild.arc Object Dragon Guild face dragon_guild.x11 type 66 no_pick 1 move_block all client_type 25012 end More Object dragon_guild_2

Re: [crossfire] Questions about archetype files

2019-04-09 Thread Andreas Kirschbaum
Bob Tanner wrote: > Object altar_valkyrie > name Altar of Valkyrie > other_arch Valkyrie > type 56 > face altarvalk.111 > no_pick 1 > level 100 > arch altar_valkyrie_pray_event > end <— ends Object altar_valkyrie This line ends "arch altar_valkyrie_pray_event". This allows to customize the

Re: [crossfire] Questions about archetype files

2019-04-09 Thread Nathaniel Kipps
Perhaps what makes this more confusing is that in this particular format, the primary arch appears to be using the "Object" header, instead of a more typical "arch" header, like you'd see in a map or inventory. So it might look like this: Object chest weight 10 value 1 arch sword weight 10 value

Re: [crossfire] Questions about archetype files

2019-04-08 Thread Bob Tanner
Doing some spacing for readability Object altar_valkyrie name Altar of Valkyrie other_arch Valkyrie type 56 face altarvalk.111 no_pick 1 level 100 arch altar_valkyrie_pray_event end <— ends Object altar_valkyrie end <— What does this end? Object altar_valkyrie_pray_event title Python slaying

Re: [crossfire] Questions about archetype files

2019-04-08 Thread Kevin Zheng
Yes. Here, there are nested objects. Every "Object" has a matching "end", and so the first example is an "Altar of Valkyrie" containing a Python "pray_event" that gets triggered when a player prays. Hope that helps, Kevin On 4/8/19 9:19 AM, Bob Tanner wrote: > Working on a project and I’m

[crossfire] Questions about archetype files

2019-04-08 Thread Bob Tanner
Working on a project and I’m parsing the .arc files for crossfire and I finding some files with entries I cannot understand. I’d like to know if there’s a reason for these entries or if I need to change the code that is parsing the entries to handle these side cases. Couple examples.