I wouldn't worry about the whole non-linear-open-world thing. We all like to explore and the mini map we now have makes it a lot easier to keep track of one's place. ( remember when that didn't exist?

Moderator: EUO Moderators
The mini map was introduced before my time XD - However, I had EUO bookmarked for a long time prior, but never got around installing it until 2009 after my diploma exams.Djanno wrote: We all like to explore and the mini map we now have makes it a lot easier to keep track of one's place. ( remember when that didn't exist?)
That 2x2 maptile is actually a hack of some sorts, by giving a 2x2 mob a maptile avatar and removing the healthbar by setting max HP to zero. Here is the script for it, though I might change the heartbeat function later:1[WoWz] wrote:That 2x2 map tile looks awesome. It would be nice if maped had built in support for 2x2 tiles like that.
Code: Select all
-- this function is a hack to creat a 2x2 maptile
-- as such a mob is converted to a maptile
-- healthbar is removed by setting max hp to 0 while hp > 1 (for instances this is done in a heartbeat)
-- there might be different ways but meh..
function tols_tree_init(m)
m:set_align(ALIGN_NEUTRAL)
m:set_name("")
m.tamable = false
m.immobile = true
m.large = true
m.code = 0x350043d
m:set_hp_max(0)
m:set_base_ac(9)
m:set_magic_resistance(99)
m.hp = 999
m.heartbeat_func="tols_tree_actions"
m.death_func="tols_tree_dies"
m.xp_kill = 0
m.treasure = 0x0
end
-- This Heartbeat will hide the mobs healthbar and makes it invincible
function tols_tree_actions(m)
if m.hp <= 999 then return end
m:set_hp_max(0)
m.hp = 999
end
-- Tree drops lumber when chopped down
function tols_tree_dies(m)
map=get_map_ptr(m.map_level)
local sx=m.x
local ex=m.x+1
local sy=m.y
local ey=m.y+1
for yy=sy,ey do
for xx=sx,ex do
map:add_item(xx,yy,1,Item(0x115),true)
end
end
end
I was going to ask if it was just a mob but dismissed the idea because of the lack of healthbar. Very interesting though.LordMortiferus wrote:That 2x2 maptile is actually a hack of some sorts, by giving a 2x2 mob a maptile avatar and removing the healthbar by setting max HP to zero.
Since you made it a creature first, would it work to give it some kind of permanent invisible stone form? Chopping it down to lumber works too tho. Awesome workLordMortiferus wrote:I have updated the script for the 2x2 tree - You can chop it down into 4 pieces of lumber now. I could not figure out how to make it invincible or disallow attacks from players and evil mobs alike.
Destructible terrain! That could prove to be a neat feature in future maps, use an axe to chop down trees that block your way or use a pick on a cracked wall to knock it down!LordMortiferus wrote:I have updated the script for the 2x2 tree - You can chop it down into 4 pieces of lumber now. I could not figure out how to make it invincible or disallow attacks from players and evil mobs alike.
I remember when this thread was made, I'm giddy with excitement.eggmceye wrote:I can confirm that I have the map and the scripts and about 2000 words of notes and will be making it & apoc new sos (such as it is, incomplete) live asap
thank you morty!