http://twinery.org/wiki/functionI am trying out using this function which was added to Twine 1.41 version but when I used the example given in the wiki i get an error saying macro parameter(0) and parameter(1) not found when displaying the passage.
Is this a bug?
Comments
Sugarcane.
Yes i checked the syntax its in lower case.
This is what i got.
Passage Start: Passage CaramelCanoe: It doesn't recognise parameter() as a macro. Perhaps this doesn't work for sugarcane?
Is this mainly used for passing variables from one function or script into another?, it seems similar to another scripting language i've seen used in Arma where you can use select 0 or select 1 when referring to an a game object etc.
Just wondering what advanced things you can do with this that normal variables or objects couldn't already do? (forgive my ignorance) just curious.
Got it working now with your example. I didn't realize I needed to move the parameter values in a variable first then use those variables in the sentence. I was literally just using parameter(0) like in the wiki.
So the parameter method is only used for when you want to 'display' a passage and carry some values into it? just like you can with links eg;
[[Canoe down the river|CaramelCanoe][$p0= "oars"; $p1= "satchel"]]
Thanks for your help that
The wiki documentation had a mistake. This line: should have actually read: Sorry everybody.