Jump to content


Strange Eons DiY toggle coding

  • Please log in to reply
3 replies to this topic

#1 Musha Shukou

Musha Shukou


  • Members
  • 452 posts

Posted 06 August 2010 - 06:35 AM

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.

#2 Thelric



  • Members
  • 251 posts

Posted 06 August 2010 - 04:16 PM

 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.


#3 Musha Shukou

Musha Shukou


  • Members
  • 452 posts

Posted 08 November 2010 - 11:19 AM

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!

#4 Musha Shukou

Musha Shukou


  • Members
  • 452 posts

Posted 08 November 2010 - 05:42 PM

Here...  This is what I'm trying to do:


© 2013 Fantasy Flight Publishing, Inc. Fantasy Flight Games and the FFG logo are ® of Fantasy Flight Publishing, Inc.  All rights reserved.
Privacy Policy | Terms of Use | Contact | User Support | Rules Questions | Help | RSS