Topic was automatically imported from the old Question2Answer platform.
Asked By
alexwbc
Old Version
Published before Godot 3 was released.
Basically, what the title states: I like the Escoria framework very much; and also the escoria scripting looks nice. But for some cases is very limiting, and I need to access to both gdscript and escoria scripting for the same object function.
for example the change_scene function; I tried to address directly the function with something like:
I’ve found sort of “fix” for this: I hope someone will come with a more elegant way, in meanwhile, for those google’s traveler, here’s how I am doing it actually:
And attach the escoria script, with the stuff you want, in the Event Path. ie:
:look
say “this is the escoria script I want to use in the regular GDScript.”
Now attach the escoria node as child of the node that use your main GDScript… you can name your “slave” escoria node whatever you want, I do call it just “slave”
Whenver in your main GDSscript run a:
get_node(“slave”).activate(“look”, null)
the slave node will perform the escoria escoria script you need (in this example, the player will simply speak). You can also hide the slave node, since we don’t really use it.