Very long objects

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Very long objects

Post by Sophia »

No, it's not one of those spams for enlarging certain parts...
Linflas wrote: maybe you can add in your DSB object a special characteristic : "very long"
and DSB engine will not permit to put it into alcoves.
Right now, you can use the on_zone_drop event of an alcove and check a flag that you set up. For example, something like:

Code: Select all

function obj.alcove:on_zone_drop(id, dropped)
	local drop_arch = dsb_find_arch(dropped)
	if (drop_arch.very_long) then return true end
	return nil
end
I'll look into this more if there's demand, otherwise, I won't bother. :)
User avatar
andyboy_uk
On Master
Posts: 647
Joined: Thu Feb 20, 2003 1:51 am
Location: London, UK

Post by andyboy_uk »

whoah there, what is this dsb that looks like a cross between basic and dungeon master.

Is this a new engine?

*searches and finds new forum*

[edit] Well knock me down with a feather, another engine, how cool! Loving the scripting idea using LUA. Keep up the good work, I will be checking this out in more detail when I awake tomorrow morning [/edit]
Regards,

Andy
Post Reply