Twine Version: 237
Story Format: sugarcub 2.31
I have a story in an iframe, inside a parent page in wordpress.
I would like to take the variables that are on the parent page (wordpress), to run actions in the story inside iframe.
It is possible?
Both are on the same server and domain.
//In Wordpress parent page var coins = 100; var wallet = 500;
//In iframe with the story (#iframeid) << set parentcoins = coins >> << set parentwallet = wallet >> <<set total = $parentcoins + $parentwallet >> Your total: $total
I imagine that one of the processes could be using State.variables, but the problem is the iframe reading what is on the parent page.
Could help me with a code example?
P.s. Sorry my bad english, I use google tradutor