Page 1 of 1

Question about GrimTK

Posted: Sat Apr 29, 2017 10:55 pm
by Cashpwns
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.

Re: Question about GrimTK

Posted: Sat Apr 29, 2017 11:38 pm
by zimberzimber
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.

Re: Question about GrimTK

Posted: Sun Apr 30, 2017 1:35 am
by Cashpwns
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.
I tried to make the function, but surprise surprise, it didn't work.

Code: Select all

function teleport() 
invisible_teleporter_2.teleporter:activate()
end

Re: Question about GrimTK

Posted: Sun Apr 30, 2017 10:11 am
by zimberzimber
Cashpwns wrote:
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.
I tried to make the function, but surprise surprise, it didn't work.

Code: Select all

function teleport() 
invisible_teleporter_2.teleporter:activate()
end
Are you calling it?
Add 'print("activated')' to see if the function is actually getting triggered or not.

Re: Question about GrimTK

Posted: Sun Apr 30, 2017 6:28 pm
by Cashpwns
zimberzimber wrote:
Cashpwns wrote:
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.
I tried to make the function, but surprise surprise, it didn't work.

Code: Select all

function teleport() 
invisible_teleporter_2.teleporter:activate()
end
Are you calling it?
Add 'print("activated')' to see if the function is actually getting triggered or not.
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.

Re: Question about GrimTK

Posted: Sun Apr 30, 2017 6:33 pm
by Sutekh
Try using controller instead of teleporter.

Code: Select all

function teleport()
invisible_teleporter_2.controller:activate()
end