Skip to content

Turning an inky function into a variable (getting the players name, then turning it into a variable) #773

Discussion options

You must be logged in to vote

Hi,

It would depend on the language you're using. All the time, there is a way to write directly to the variable itself.
For example in js I will do story.variablesState.$("namePCInk", namePCJs); supposing the the first is the ink name of the variable namePCInk and I fill it with the value of namePCJs that is the name and the value of my js variable I already have filled with the current element I want to have.

All I would have to tell you, is either tell us what the port you are using (with what language?) and to look at the documentation.
You especially want to part where the port is explaining how to do this part of the official explanation https://github.com/inkle/ink/blob/master/Docu…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@Selsynn
Comment options

@only-miscellany
Comment options

@Selsynn
Comment options

@only-miscellany
Comment options

@only-miscellany
Comment options

Answer selected by Inkynoob739
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants