[carceri-dev] Re: A little rant and data

  • From: Adam Ring <advancedcomputerprograms@xxxxxxxxx>
  • To: carceri-dev@xxxxxxxxxxxxx
  • Date: Sun, 05 Jun 2005 22:33:09 +1000

Kornel Kisielewicz wrote:

>*SNIP*
>Another one, without comments:
>
>TILE "st_stairup" [st_floor] (
> Name        : "stairs leading upwards";
> LightColor  : #yellow;
> Picture     : '<';
> ActivateTo  : @st_stairdown;
> ActivateMsg : "You climb upwards.";
> BloodTo     : 0;
> Flags       : [ tfStairUp | tfNoChange ];
> OnEnter     : $onenter_stairs;
>)
>
>
>  
>
Compare with the style of data in H-World... this for a chest object;

begin section chest
name = Chest
ident = chest
type = misc
width = 6
height = 5
weight = 10000
base_weight = 10000
bulk = 25
base_bulk = 25
value = 300
HPmax = 100
HPcurr = 100
ILevel = 4
inventory = true
inventory.width = 9
inventory.height = 15
image = 170
image.inventory = 29
treasures = 9
treasure[0].type = blade
treasure[0].chance = 25
treasure[1].type = jacket
treasure[1].chance = 25
treasure[2].type = shoes
treasure[2].chance = 25
treasure[3].type = belt
treasure[3].chance = 25
treasure[4].type = trousers
treasure[4].chance = 25
treasure[5].type = club
treasure[5].chance = 25
treasure[6].type = light
treasure[6].chance = 25
treasure[7].type = ammo
treasure[7].chance = 25
treasure[8].type = ammo
treasure[8].chance = 25
desc = A large wooden chest.
end section

And a scroll with its LUA hooks (the image references are to a graphic pack
but absolute file references are also ok - are better IMO)

begin section scroll_of_identify
name = scroll
ident = identify scroll
# curse_known = true
image = 171
image.inventory = 17
type = scroll
flavor = 1
width = 2
height = 1
weight = 50
bulk = 1
value = 40
HPmax = 5
HPcurr = 5
ILevel = 1
usages = 1
usage[0].name = lua_call
usage[0].verb = identify
usage[0].call = use_identify
usage[0].other = true
desc = Use it to identify items.
end section

I'll be busy with H-World till July...

- Adam
-- 
Carceri Development Mailing List (carceri-dev@xxxxxxxxxxxxx)
Carceri Homepage (http://chaos.magma-net.pl/carceri)

Other related posts: