Jump to content
Sign in to follow this  
Musha Shukou

Strange Eons DiY toggle coding

Recommended Posts

I am trying to set up a DiY card template in Strange Eons that will have a toggle fuction very similar to what is used on the Mythos card template's gate location, monster movement, etc.  On the Mythos card template you can select <none> for the gate location, and the gate location goes completely away.  Then, any text you enter can occupy this now empty space.  I have no experience with Java Script except for the tutorials for Strange Eons.  Can anybody please show me a tutorial that shows how to set this up or even just show me the code right here?  Thank you.

Share this post


Link to post
Share on other sites

 It sounds like you want to know what an if statement is. Along the lines of...

 

if( $selection == "None" ) {

    // draw something

} else {

    // draw something else

}

 

A couple of notes:

Equality is tested with two equals signs (==). One equals sign means assignment (a = 5 means "set a to 5", not "is a equal to 5"?). Not equals is !=.

There are tons of Javascript tutorials online, but most of them assume you are using Javascript to control a Web page, which can make them hard to apply directly. Surprisingly, the Mozilla developer site provides a good Javascript tutorial with relatively little emphasis on HTML.

Cheers,
Chris

Share this post


Link to post
Share on other sites

Hi Chris,

So I've tried this over and over again and nothing seems to work for me.  I know the Mythos template is built into the program, but is there any way you could show me the code for a Mythos template if you HAD done it DIY please?

Thank you!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...