Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

high tech mockup Twine 2.x sugarcube

i'm about styling this mockup into my game, but i'm not sure about the status layout, is that possible ? and how ? thx before

Comments

  • If you're referring to the Health, Score, Leadership, Evilness scores, then you could simply put them into the StoryCaption passage, which sits between the UI bar's header and menu sections, and is updated each turn/passage display.  As to the layout, the stat block looks like a good candidate for a <table>.
  • great, thx for the clue. but i have another problem here

    i add this in javascript menu option
    <<set $health = 1000>>
    <<set $score = 10>>
    <<set $leadership = 50>>
    <<set $evilness = 30>>
    then i add this in StoryCaption
    <ul>
    <li>Health<span><<print $health>></span></li>
    <li>Score<span><<print $score>></span></li>
    <li>Leadership<span><<print $leadership>></span></li>
    <li>Evilness<span>90</span></li>
    </ul>
    then i have warning

    [quote]JavaScript Alert

    Apologies! A technical problem has occurred. You may be able to continue, but some parts may not work properly.

    Error [user-script-node-1]: Unexpected token <<

    what did i do wrong here ? sorry for this, i'm still new using twiner
    this SugarCane and SugarCube make me confuse LOL
  • Mods, this thread would likely be better served by being in the Help! with 2.0 forum.  A move please?

    caberg wrote:

    i add this in javascript menu option
    <<set $health = 1000>>
    <<set $score = 10>>
    <<set $leadership = 50>>
    <<set $evilness = 30>>


    Those are macros, not JavaScript, so they don't go in the Story JavaScript.  The best place to put them would be in a special passage titled StoryInit.
Sign In or Register to comment.