triolin.blogg.se

Portal reloaded trigger bug
Portal reloaded trigger bug













portal reloaded trigger bug

portal reloaded trigger bug

If you have any doubts of what should be there, here is a “normal” one: To get to source code, press while editing the text.

Portal reloaded trigger bug code#

Go into Source code and delete the formatting. Problem 2 - It doesn’t teleport/Doesn’t work correctly This will make the token teleport twice and make some weird bugs. Make sure, if you’re using a folder for Trigger Happy, that the Journal you’re using is not named “Trigger Happy”. Problem 1 - Token Stuck after teleportation/Copies of Token 1 It is less confusing, a bit more work, and won’t cause bugs. It will cause problems to just put out a token with the same name, so just trust me. They all also need to be put into Trigger Happy individually. So the entrance tokens needs to be re-named individually, like Floor1, Floor2, Floor3, and the exits also needs to be named individually: Now, if you want these room to teleport to another random room, like let’s say a tower, you’ll have to make a Exit Token, and a Entrance Token for each map/floor. Portal] Portal] is the token we’re teleporting from, and /RandomMap is what we named the macro. Now for Trigger Happy, just as the previous one for the normal teleport, we need to execute this macro instead. Room Table Is the name of the Roll-table we made earlier. Macro: let table = (t => t.name = 'Room Table') ĭynamicEffects.teleportToToken(token, result.text, 0, 0) Now we’ll make the macro to be used as the random teleport Re-name them after 1 of the options in the Roll-table. So place out the token they where you see fit, at the entrance of the random room(s). These are going to be our Exit Tokens Name. As these are stairs, I want my players to move back too, therefor I switched the token names, so when someone steps onto Stairs2 they get teleported to Stairs1.įrom here on out, you can edit names of stairs as you want, but it should teleport any token that steps onto the Token(s). The 0 0 Is offset, Where the first 0 is X and the second 0 is Y Stairs2 is the token we’re teleporting TO. Where TeleportToToken is the Macro we created. It sends a Chat message: /TeleportToToken Stairs2 0 0 To explain the above means "when someone Moves ONTO this will happen: Stairs2 0 0] What I’ll input into The Trigger Happy Journal Entry is(ctrl-shift-v to clear formatting on paste): move] Stairs2 0 move] Stairs1 0 0] Now that we’ve made our tokens, Stairs1 and Stairs2, we’ll use them here. Now we get to the Trigger Happy part of this, which should be fairly straight forward.

portal reloaded trigger bug

You can make the same changes to this token as to the last one. For this tutorial, we’ll call this one Stairs2. Drag the previously made Actor of Stairs Onto the board once more, make sure you place it where you want the Player/user to land.ĭouble Right-click this new Token, and re-name it. This token can be made on a new scene, or on the same scene if wanted. So now that we have a place to teleport from, we need a token to teleport to. Tip: After you’ve placed the Token, you can make it bigger by changing the Width/Height values in Image Place this where you want them to teleport from as they step onto it. Now we are done with the Teleporting From Token. This is going to be our Teleportation from token, so I’ll name it Stairs1 For this tutorial. This should bring up Token Configuration again. No need to clutter your Actors directory Token Note: You only need this 1 Actor from now on. Tip: While we’re here, put Display name to Owner, this will help you recognise what token you’re trying to teleport later. Now, before we put this character on the board, we need to unlink it.įor this tutorial, we’ll also change the token of this character to a transparent picture. For this tutorial, we’ll call this Stairs. Have a Journal Entry named Trigger Happy.ĭynamic Active Effects DAE.teleportToToken(token, args, args, args)ĭynamic Effects DynamicEffects.teleportToToken(token, args, args, args) As that is covered, some things to go over: Modules















Portal reloaded trigger bug