|
Post by isawasora on Jul 1, 2018 9:40:31 GMT
Hey, So my template stuff is mostly working fine, I'm just having an issue where I have a style that is trying to set the value of a choice to "character" but in MSE it's still showing as "attachment" whenever I create a new card. I have the following code to create the "card type" in my card_fields file, which is included into my game, and the other fields seem to be okay: card field: type: choice name: card type choice: attachment choice: character choice: event choice: holding choice: province choice: stronghold card list visible: true card list name: Type card list column: 3 card list width: 50 And in the Style for this card, it has card type: character
But it still says it's an attachment. I'm sure I'm just being dense, but I'm wondering if i'm missing something? The documentation at magicseteditor.sourceforge.net/doc/type/value seems to say this should work at least.
|
|
Sensei Le Roof
1/1 Squirrel
I was interested in Banding until they tried to make me play bass
Posts: 83
Formerly Known As: _________________
Favorite Card: Unhinged Forest #3
Favorite Set: TV
Color Alignment: White, Blue, Black, Red, Green, Colorless
|
Post by Sensei Le Roof on Jul 1, 2018 15:07:01 GMT
Why not just use default: character ?
|
|
|
Post by isawasora on Jul 1, 2018 17:29:55 GMT
Why not just use default: character ? I need each style to be each card type. So I have like character.mse-style attachment.mse-style, and so on so forth, so each style needs to set the card type.
|
|
|
Post by cajun on Jul 1, 2018 21:39:32 GMT
In the card field add in
script: stylesheet type_switch() and then in each of the style files define
type_switch := { "attachment" } etc.
type_switch can be renamed whatever.
|
|
|
Post by isawasora on Jul 3, 2018 21:15:36 GMT
In the card field add in script: stylesheet type_switch() and then in each of the style files define type_switch := { "attachment" } etc. type_switch can be renamed whatever. In the card field i added: script:
stylesheet
type_switch() And it is now in full: card field: type: choice name: card type choice: attachment choice: character choice: event choice: holding choice: province choice: stronghold script: stylesheet type_switch() card list visible: true card list name: Type card list column: 3 card list width: 50 but in the Console it says: Variable not set: type_switch while updating card value 'card type' What am I missing here? Sorry for being a fool
|
|
|
Post by cajun on Jul 3, 2018 21:25:54 GMT
and then in each of the style files define type_switch := { "attachment" } etc.
|
|
|
Post by isawasora on Jul 4, 2018 2:27:55 GMT
and then in each of the style files define type_switch := { "attachment" } etc. Okay, so that's where i'm missing something. Where do i put "type_switch := { "attachment" }"? I tried: card style:
card type:
type_switch() := { "attachment" }
############################# Background stuff
card clan: ... other stuff
And it still throws the error, as well as "Unexpected key on line 24: type switch" If I try the following, it says Unexpected key on line 24: script card style: card type: script:
type_switch() := { "attachment" }
############################# Background stuff
card clan:
... other stuff I know this is user error, and I'm sorry to keep asking dumb questions. I just am still new to all of this.
|
|
|
Post by cajun on Jul 4, 2018 3:59:28 GMT
It goes at the top. You'll have something like this
card width: 375 card height: 523 card dpi: 150 ############################################################## Extra scripts init script: ##Buncha words in here probably foo := {bar} ############################################################## Set info fields set info style:
you need to add that line under the init script section, with "attachment" being the option you want set for that particular frame.
card width: 375 card height: 523 card dpi: 150 ############################################################## Extra scripts init script:
##Buncha words in here probably foo := {bar} type_switch := { "attachment" } ############################################################## Set info fields set info style:
|
|