Skip to content

Fix/script events affect spells - #74

Open
Plateaus wants to merge 92 commits into
metavert-io:mainfrom
Plateaus:fix/script-events-affect-spells
Open

Plateaus wants to merge 92 commits into
metavert-io:mainfrom
Plateaus:fix/script-events-affect-spells

Conversation

@Plateaus

Copy link
Copy Markdown

-Dispel Lesser Magic (401) — implemented and tested; removes a random eligible lower-level magical effect from the target.
-See Hidden (405) — implemented/tested; scans the room for hidden/invisible players and monsters without actually removing their hidden/invisible state.
-Dispel Invisibility (406) — implemented room-wide invisibility removal using the normal invisibility-breaking path.
-Wolfling TRANSFORM — transforming now breaks restraints, matching the old behavior for webs/snares/etc.
-Body Destruction potion / damage potions — fixed potion damage invocation so the drinker is correctly used as the target.
-Plant Snare / restraint behavior — worked on monster restraint/flee behavior so restrained monsters can't simply flee.
-PLREVENT / CONTPLREVENT — fixed player-event execution for room-item scripts. The Rock Chamber ladder puzzle now opens the ladder, waits ~10 seconds, then closes/removes it correctly even if the player has left the room.
-DOORS.SCR — discovered it was missing from the active config and added it back into the script load sequence, restoring the generic scripted door archetypes.
-OPEN preverbs — doOpen() now runs IFPREVERB OPEN for room items instead of bypassing their scripts.
-CLOSE preverbs — same fix for doClose(). This is what got the Cafe curtain scripts actually executing instead of generic You close an arch.
-AFFECT remote-room ECHOs — fixed the big one we just finished. AFFECT itself was already correctly switching script room context, but queued ECHO ALL/OTHERS messages were losing their destination room. We added destination-aware remote room messages and delivery.
-Verified AFFECT state changes — Cafe test proved AFFECT 3630 + SETITEMVAL correctly modifies an item in the affected room.
-Verified AFFECT remote broadcasts — Cafe curtain worked between 3631 → 3630, then the Key'n Anchor alarm worked in room 589. This should also finish the old Ebner/ferry remote-ECHO problem rather than merely suppressing the message from the wrong player.

csanburn1966 and others added 30 commits May 1, 2026 07:52
Run item preverb scripts for GET and DROP
Run item preverb scripts for equipment commands
Parse added 30 commits September 11, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants