Question about GrimTK
Question about GrimTK
I've been wanting to, after a dialogue is done with a certain character, for that character to teleport away. I've been trying to script it, but no luck as I am not that good at scripting and knowing what I need to activate a teleporter after dialogue is done.
- zimberzimber
- Posts: 432
- Joined: Fri Feb 08, 2013 8:06 pm
Re: Question about GrimTK
Place an inactive teleporter on the tile the dialogue is triggered, and activate it with the button/event that ends the dialogue.
Or just set the parties position to where you want them to teleport to with the dialogue ending button/event and play the teleportation screen effect.
Or just set the parties position to where you want them to teleport to with the dialogue ending button/event and play the teleportation screen effect.
My asset pack [v1.10]
Features a bit of everything!
Features a bit of everything!
Re: Question about GrimTK
I tried to make the function, but surprise surprise, it didn't work.zimberzimber wrote:Place an inactive teleporter on the tile the dialogue is triggered, and activate it with the button/event that ends the dialogue.
Or just set the parties position to where you want them to teleport to with the dialogue ending button/event and play the teleportation screen effect.
Code: Select all
function teleport()
invisible_teleporter_2.teleporter:activate()
end
- zimberzimber
- Posts: 432
- Joined: Fri Feb 08, 2013 8:06 pm
Re: Question about GrimTK
Are you calling it?Cashpwns wrote:I tried to make the function, but surprise surprise, it didn't work.zimberzimber wrote:Place an inactive teleporter on the tile the dialogue is triggered, and activate it with the button/event that ends the dialogue.
Or just set the parties position to where you want them to teleport to with the dialogue ending button/event and play the teleportation screen effect.Code: Select all
function teleport() invisible_teleporter_2.teleporter:activate() end
Add 'print("activated')' to see if the function is actually getting triggered or not.
My asset pack [v1.10]
Features a bit of everything!
Features a bit of everything!
Re: Question about GrimTK
I tried that, but it crashed with the error about the "activate" inside of it, and I'm honestly not sure if I am calling it or not.zimberzimber wrote:Are you calling it?Cashpwns wrote:I tried to make the function, but surprise surprise, it didn't work.zimberzimber wrote:Place an inactive teleporter on the tile the dialogue is triggered, and activate it with the button/event that ends the dialogue.
Or just set the parties position to where you want them to teleport to with the dialogue ending button/event and play the teleportation screen effect.Code: Select all
function teleport() invisible_teleporter_2.teleporter:activate() end
Add 'print("activated')' to see if the function is actually getting triggered or not.
Re: Question about GrimTK
Try using controller instead of teleporter.
Code: Select all
function teleport()
invisible_teleporter_2.controller:activate()
end