Hey adaragas.
I really wanted the ability to fix doors so I came up with an idea of my own to fix it. It works quite well, but I have some problems with it: ie. If the door is broken then allow people to buy the door fix.
MapEdit.gsc:- Add the following function
Code:
DoorFix(close, hp)
{
while(1)
{
level waittill("FIXDOOR");
self.hp = hp;
self MoveTo(close, level.doorwait);
self.state = "close";
}
}
MapEdit.gsc:- Add the following in the Function CreateDoors()
Code:
center thread DoorFix(close, hp);
Above ResetDoors() and Below DoorUse()
-----------------------------------------------------------------
_rank.gsc
In the human shop add an item which outputs:
Code:
level notify("FIXDOOR");
This code doesn't work, it resets all doors and closes them. Working on a proper one, but may need help