Does anyone know how to add another stats page?


#1

I want to add a button for a glossary but I’m not sure how to do that. I looked through the wiki but I didn’t find anything there.


#2

The easiest way of doing it is to put a choice on the stat page and a label.


*label main_menu
*choice
  #My stats.
    *goto stats

  #Glossary.
    *goto glossary

*label stats
*stat_chart
  text var1
  text var2
  etc

*goto main_menu

*label glossary

blah blah blah

*goto main_menu


#3

I was ninjad lol


#4

there used to be a way with having an extra button next to show stats but with the new choicescript there were some issues (it also can’t be used for hosted games/cog iirc).

My way above does work and I use it in Unnatural.


#5

As Nocturnal said, if you’re talking about adding a third button beside Show Stats and Restart, that is deemed unadvisable, as dfabulich won’t be able integrate your game like the others on certain systems

Here’s the source for that:


#6

@Caddmuss

Thanks! I knew there was a source. but couldn’t remember where I read it.


#7

Oh okay…so since it doesn’t work with Kindle or iOS, should I not incorporate it at all? Or is there another more compatible way to do it?


#8

The most acceptable way I know to do a glossary is through the choicescript_stats.txt file. It’s absolutely no big deal there, and I know I might end up reading it.

As for buttons - nope. Probably no more buttons.


#9

Ah okay:P thanks, guys!


#10

Set it up like i did in my above example. (check Unnatural for a working example.)


#11

I will- thanks!


#12

You can even use *if commands to determine what you can see.


*choice
  #My Stats.

  *if (team)
    #Team stats.


#13

@Nocturnal_Stillness
Awesome, that’s good to know. Thanks again.


#14

You’re welcome.