Search the Forums
Options
Keywords search:


Search in Forum...

Search within...

Match...

Antiquity...

Player messages...

Fan Creations
A place to post all of your home brewed material: scenarios, ancient ones, investigators...
Moderator: FFGAntonffgjafferGeckoMack MartinThe Spaniard Topics: 333 | Posts: 9504
Strange Eons DiY toggle coding
Published on 06 August 2010 - 23:42:12

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.

Musha

Page 1 of 1 (3 messages) 1
Reply #1 | Published on 06 August 2010 - 22:16:58
5
24

 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

malitia vetus... tandem venit

Reply #2 | Published on 08 November 2010 - 17:19:55

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!

Musha

Reply #3 | Published on 08 November 2010 - 23:43:32

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

http://i56.tinypic.com/4ih84x.jpg

Musha

Page 1 of 1 (3 messages) 1

© 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