jfrazier still needs to update the OP with the latest versions (@Jfrazier: r u reading this)
Second if you did, it IS working, check the HP of the elf when you walk over it. Note that this was created BEFORE anything could be send to the chatbox.
As for non coder making it usefull for non-coders... I think the short answer is: no. not possible. I've been thinking of making the teleporters such that you don't need to code and concluded that its possible but a LOT of work.
Traps however... unless they 'spring' ALWAYS, so no tests then yes it would be possible, but I don't think anybody is waiting for that. Which means some test has to be made, which means a system lies beneath it, which means it it has to be custom made. And as no code can be created (practically) to fit ALL systems, it can't be done.
In short delve into it and learn.
Note that this:
Code: Select all
[h:'<!--Routine for a Trap, note that no area is used here, the trap is only triggered when the test subject is moved over the traptoken-->']
[h: targetName = "Trap"] <!--name of token that is the trap-->
[h: trapTriggered = movedOverToken(targetName,lastPath)]
[r, if(!json.isEmpty(trapTriggered)), CODE:{
[h: attackRoll = d20]
[h:roll=1d6]
[h, if(attackRoll > Dexterity):HP=HP-roll]
You have triggered a trap and sustained [r:roll] hits.<br>
};{}]
And this part:
Code: Select all
[h: attackRoll = d20]
[h:roll=1d6]
[h, if(attackRoll > Dexterity):HP=HP-roll]
You have triggered a trap and sustained [r:roll] hits.<br>
Edit:See att. The T-trap will now also 'talk' to you when triggered.
Edit: attachement deleted, for the latest version go here: You can find it here: Wolph42's 'Drop-in' Auto Teleport Pads Traps, Pits and Wards