Long time lurker here, but kinda just now posting again after a really long absence. I'm glad to see the community is still going on like this!
I've got a quick plotscripting/tag-related question I thought I'd run by you guys. I get the feeling I might be overlooking something obvious, but what can I say? I'm a bit rusty at the engine after so long.
Here's the deal: I've got a collapsing floor thing in a dungeon, which requires four elements:
- show a textbox saying "The floor collapsed!"
- change the look of the tile to be a hole/crack
- use a hidden door to simulate falling to the floor below
- make it so that you can step on the hole again and fall through, but without triggering the textbox again.
The way I have it set up at the moment is like this:
Code:
define script (1, crumble, door, 0)
script, crumble, door, begin
tb(5) #show text box 5
usedoor(door)
end
script, crumble, door, begin
tb(5) #show text box 5
usedoor(door)
end
In this setup, the NPC is a drawing that looks like the unbroken maptile; it's set to activate upon "step-on", runs the script "crumble", and passes the argument "door" corresponding to the door to be used. It's usable only once, so that fake-maptile NPC vanishes and reveals a real-maptile hole beneath.
The problem is, obviously, that this setup doesn't meet the fourth requirement. It works well enough the first time, but then of course the hole no longer functions as a door (the door itself is hidden in a nearby wall; it can't be on the hole-tile, lest it be triggered instead of the NPC the first time one steps on the tile).
I know I could do this easily by just having a separate textbox and tag for each instance of a crumbling floor, but if I can figure out this other method with the "crumble" script, it'll be significantly more convenient and tidy. Any thoughts?
SPELLSHARD: THE BLACK CROWN OF HORGOTH now COMPLETE! Grab it today!




it totally needs an update.