[crossfire] destructor archetype?

Wim Villerius wim-cf at villerius.nl
Mon Jun 12 09:28:11 CDT 2006


Seems you're mistaken ;-)

see the attached file for an example use of 'destructors' (or rather:
using a duplicator as a destructor by setting the multiply factor to
zero)

Thanks to whoever made this map, I unfortunately forgot it's source.


On Mon, 2006-06-12 at 16:14 +0200, Raphaël Quinet wrote:
> Unless I am mistaken, there is no arch that can act as the opposite of the
> "creator" arch.  Or at least I could not find one.  The "creator" creates a
> new object when it is triggered.  I would like to have a "destructor" that
> can remove a specific object when it is triggered.  If such a thing does not
> exist yet, I would like to create it.
> 
> Here are several cases in which a "destructor" could be useful:
> - A detector/check_inv connected to a destructor can have the same effect
>   as an altar, except that it is possible to introduce a delay between
>   dropping the item and destroying it (using the well-known hidden machinery
>   with spikes and boulders or other objects), or to add additional
>   conditions such as requiring the player to move away from the altar before
>   the sacrifice is accepted.
> - With a creator and a destructor at the same location, it would be possible
>   to make some object appear or disappear using the appropriate triggers.
> - The creation/destruction could be done in a cyclic way (using external
>   machinery providing the timers).  This could be fun if the blinking object
>   is a light source.
> - If the object that is created/destroyed is a mover, it would be possible
>   to make some NPCs follow some specific paths and stop or go depending on
>   the actions of the player: create the movers when the NPC should move,
>   then destroy them afterwards.
> - A destructor can also be used to make the NPC fetch and accept a gift:
>   detect that a gift has been dropped (standard detector), move the NPC
>   towards the player (creators + movers), then destroy the gift once the NPC
>   is close to the player (destructor).
> 
> The existing archetypes that could serve similar purposes are the altars and
> teleporters.  The problem with the altars is that they work as soon as the
> object is dropped and cannot be triggered by some other event.  The
> teleporters can be triggered via some external action and are used in some
> maps to move objects out of the visible map, but this is not a very good
> solution because these teleporters are not very selective about what they
> teleport (so you may end up teleporting the wrong object).
> 
> So if nobody can suggest a better solution, I will write the code for this
> new archetype because I already have some maps (alchemy quests) in which I
> would like to use "destructors" for NPC movement and actions.  My current
> plan is to have something very similar to the "creator" (including the
> parameters such as the "slaying" field, the number of uses, etc.) except that
> it would do exactly the opposite of the creator.
> 
> -Raphaël
> 
> _______________________________________________
> crossfire mailing list
> crossfire at metalforge.org
> http://mailman.metalforge.org/mailman/listinfo/crossfire
> 
-------------- next part --------------
arch map
name benches
msg
Creator: CF Java Map Editor
Date:    10/25/2004
endmsg
width 15
height 15
end
arch woodfloor
x 3
y 3
end
arch woodfloor
x 3
y 4
end
arch woodfloor
x 3
y 5
end
arch woodfloor
x 3
y 6
end
arch woodfloor
x 3
y 7
end
arch woodfloor
x 3
y 8
end
arch woodfloor
x 3
y 9
end
arch woodfloor
x 3
y 10
end
arch woodfloor
x 3
y 11
end
arch woodfloor
x 4
y 3
end
arch woodfloor
x 4
y 4
end
arch woodfloor
x 4
y 5
end
arch woodfloor
x 4
y 6
end
arch platinacoin
nrof 10000
x 4
y 6
end
arch woodfloor
x 4
y 7
end
arch woodfloor
x 4
y 8
end
arch woodfloor
x 4
y 9
end
arch woodfloor
x 4
y 10
end
arch woodfloor
x 4
y 11
end
arch woodfloor
x 5
y 3
end
arch woodfloor
x 5
y 4
end
arch woodfloor
x 5
y 5
end
arch woodfloor
x 5
y 6
end
arch woodfloor
x 5
y 7
end
arch woodfloor
x 5
y 8
end
arch woodfloor
x 5
y 9
end
arch woodfloor
x 5
y 10
end
arch woodfloor
x 5
y 11
end
arch woodfloor
x 6
y 3
end
arch woodfloor
x 6
y 4
end
arch woodfloor
x 6
y 5
end
arch woodfloor
x 6
y 6
end
arch woodfloor
x 6
y 7
end
arch woodfloor
x 6
y 8
end
arch woodfloor
x 6
y 9
end
arch woodfloor
x 6
y 10
end
arch woodfloor
x 6
y 11
end
arch woodfloor
x 7
y 3
end
arch woodfloor
x 7
y 4
end
arch woodfloor
x 7
y 5
end
arch woodfloor
x 7
y 6
end
arch woodfloor
x 7
y 7
end
arch woodfloor
x 7
y 8
end
arch woodfloor
x 7
y 9
end
arch woodfloor
x 7
y 10
end
arch woodfloor
x 7
y 11
end
arch woodfloor
x 8
y 3
end
arch woodfloor
x 8
y 4
end
arch woodfloor
x 8
y 5
end
arch woodfloor
x 8
y 6
end
arch woodfloor
x 8
y 7
end
arch woodfloor
x 8
y 8
end
arch woodfloor
x 8
y 9
end
arch woodfloor
x 8
y 10
end
arch woodfloor
x 8
y 11
end
arch woodfloor
x 9
y 3
end
arch woodfloor
x 9
y 4
end
arch woodfloor
x 9
y 5
end
arch woodfloor
x 9
y 6
end
arch woodfloor
x 9
y 7
end
arch woodfloor
x 9
y 8
end
arch woodfloor
x 9
y 9
end
arch woodfloor
x 9
y 10
end
arch woodfloor
x 9
y 11
end
arch woodfloor
x 10
y 3
end
arch woodfloor
x 10
y 4
end
arch duplicator
other_arch cauldron
connected 10
x 10
y 4
end
arch creator
other_arch cauldron
connected 20
lifesave 1
hp 0
x 10
y 4
end
arch cauldron
no_pick 1
identified 1
x 10
y 4
end
arch woodfloor
x 10
y 5
end
arch woodfloor
x 10
y 6
end
arch woodfloor
x 10
y 7
end
arch woodfloor
x 10
y 8
end
arch woodfloor
x 10
y 9
end
arch woodfloor
x 10
y 10
end
arch woodfloor
x 10
y 11
end
arch woodfloor
x 11
y 3
end
arch woodfloor
x 11
y 4
end
arch woodfloor
x 11
y 5
end
arch woodfloor
x 11
y 6
end
arch woodfloor
x 11
y 7
end
arch altar
slaying platinum coin
food 1
connected 10
x 11
y 7
end
arch woodfloor
x 11
y 8
end
arch woodfloor
x 11
y 9
end
arch woodfloor
x 11
y 10
end
arch woodfloor
x 11
y 11
end
arch blocked
x 12
y 6
end
arch blocked
x 12
y 7
end
arch blocked
x 12
y 8
end
arch blocked
x 12
y 9
end
arch blocked
x 13
y 6
end
arch cobblestones2
x 13
y 7
end
arch button_plate
connected 20
x 13
y 7
end
arch cobblestones2
x 13
y 8
end
arch grate_open_1
connected 10
x 13
y 8
end
arch boulder
no_pass 0
x 13
y 8
end
arch blocked
x 13
y 9
end
arch blocked
x 14
y 6
end
arch blocked
x 14
y 7
end
arch blocked
x 14
y 8
end
arch blocked
x 14
y 9
end


More information about the crossfire mailing list