|
azurerazor Beginner
Joined: 17 Dec 2001 Posts: 20 Location: USA
|
Posted: Sat Jun 02, 2018 2:08 am
Mapper for Shadows of Isildur |
Interest in getting a mapper working for SOI
Originally found and got involved with this thread -> http://forums.zuggsoft.com/forums/viewtopic.php?p=177738
Anyway I'm using this code
#trigger {^([%w%s])$} {#tag name "%1"}
#condition {^Exits: ([%w%s])$} {#tag exit "%1";RoomDesc = "";#T+ tRoomDesc}
#condition {#TR {<([~*%s])/([~^%s])/([~|%s])> } {health=%len(%trim(%1));trauma=%len(%trim(%2));fatigue=%len(%trim(%3));#SUB {}}} {#T- tRoomDesc;#tag desc @RoomDesc} {nocr|prompt}
#trigger "tRoomDesc" {^([%w%s,-.?!])$} {RoomDesc = %additem("%1",@RoomDesc)}
Getting unmatched braces error when submitting it. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Sat Jun 02, 2018 3:13 am |
Code: |
#condition {#TR {<([~*%s])/([~^%s])/([~|%s])> } {health=%len(%trim(%1));trauma=%len(%trim(%2));fatigue=%len(%trim(%3));#SUB {}}} {#T- tRoomDesc;#tag desc @RoomDesc} {nocr|prompt} |
You have a condition defining a separate trigger with an improper class assignment.
Since you likely have that prompt trigger running separate elsewhere, the meat of it can be tossed out here in favor of what this trigger needs.
You want:
Code: |
#condition {<([~*%s])/([~^%s])/([~|%s])> } {#T- tRoomDesc;#tag desc @RoomDesc} {prompt} |
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|