where do i put this
<<set $charactertype is "Trans" = true>> <<set characterpath is "neutral" =true>>
in StoryInit or the passage i wanna check
That code won't work, and where you want to put it depends on what you want to do.
"is" is usually only needed within
<<if>> macros (there are cases where it may be useful elsewhere, but only if you need to turn one kind of value into a true/false value). I think that what you meant to do was this:
Code:
<<set $charactertype = "trans">> <<set $characterpath = "neutral">>
And you'd put that wherever you wanted that set. If you want those to be the defaults, then putting them in the
StoryInit passage is fine.
Later on you could check those variables using something like this:
Code:
<<if $charactertype == "trans">>
Trans route code goes here.
<<else>>
All other routes' code goes here.
<</if>>
or something like this:
Code:
<<switch $characterpath>>
<<case "good">>
Good route code goes here.
<<case "neutral">>
Neutral route code goes here.
<<case "evil">>
Evil route code goes here.
<<default>>
All other routes' code goes here.
<</switch>>
See the
You must be registered to see the links
for details.
You could also take a look at the info in my signature to see if some of my other sample code is useful to you.
Hope that helps!
