Is possible random sentences??

Hi! Is possible make an app with random sentences?? How?

Thanks in advance!

Comments

  • aitor010aitor010 Member Posts: 282
    thank you @sadida172 , then I make a button and after make the tables and finally make the condition where? in the button or in the text display? I want show a sentence when the user click on button, thanks in advance!! :)
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited November 2013
    Create a table with multiple rows. Fill the rows with text.

    Create a game integer called "WhichText."
    Create an actor and call it RoundRules
    Inside, add a change attribute behavior:
    - change game.WhichText to Random(x,y)
    X = minimum of rows
    Y = Max rows you have.

    This will pick a random row number. Then you can just grab the text through that number.
    For example:
    Display text: tablecellvalue(TableName, game.WhichText, 1)

    Beaten by Sadida. :)

  • aitor010aitor010 Member Posts: 282
    aah okay, i can save in variable and after show!! stupid question, im sorry thanks @sadida172 and @Braydon_SFX
  • aitor010aitor010 Member Posts: 282
    hahahahaha yes.... lol
  • aitor010aitor010 Member Posts: 282
    I REACH 100 POSTS, I hope to from 200 to help people and answer more than questions.... :D
  • SocksSocks London, UK.Member Posts: 12,822
    "Is possible random sentences??"

    Of course is yes no because on for biscuit people.
  • aitor010aitor010 Member Posts: 282
    Are you joking with me not? :D With tables is possible, or not?? :o
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    With tables is possible, or not?
    Two people already said that it IS possible with tables.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.