Am I missing something?

solnikasolnika Member Posts: 132
edited November -1 in Working with GS (Mac)
Hello everyone,

I'm new here (about a week), mainly reading the forum and watching videos.
I have no background in programming or in software of this kind.
I started to build basic things to learn the software.

I look at the things I've made and how I did it
and it looks like I took the long road to get thindgs done.

Because I do not know the software in depth and the fact that English is not my first language, I can not help wondering is there a easier way to implement the things I'm trying to do without going into a long and unnecessary logic.

I will try to illustrate: I wanted to give a random number from 1-4 to four players at once, without having to repeat the same number twice.

At first I had problem.
I gave a random digit to player one.
Then I created a rule that if player one digit = 1,
give player two a random digit from 1-3.
I then planned on createing another rule that if player one digit = 2, then give player two a random digit from 1-4 except 2.

I do not know whether it is possible to create such a rule, anyway I could not.
At the end I managed to do it in a different way, but I think I did a lot of extra stuff in order to accomplish it.

Is there a simple way to do it?
Is there a way to create a rule that will give a random number from a few options and not from a min,max(like, ramdom [1,2,3,4])?
Or maybe a way to give a min,max Value except a certain number?

I have more examples like this, but they are long to write.
Anyway I will appreciate your comments.

Oh and a little suggestions for the site admin's
I think many new user's could be helped with a manual and/or a video that includes all the functions of the software with a brief explanation of how to use a function. I'm for one will very appreciate this.

I do not mean the big things like create a player, rules or timer.
I mean the less common things, such as what is EXP (in the drop-down menu where you can select random option)?

Thanks again
Best regards
Alex

P.S
I'm sorry for any spelling or grammar mistakes, as I mentioned English is not my first language.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
  • FloridaGamesFloridaGames Member Posts: 328
    First off, welcome to Gamesalad, its great to have you!
    For you random problem perhaps this may work:
    Attributes: Player 1, player 2, player 3, player 4.
    Give them all the behavior: change attribute: player (1,2,3,4) to rand(1,4)
    them give them all the rule:
    When any:
    Player 1 = player 2
    Player 1 = player 3
    Player 1 = Player 4
    then change attribute : random(1,4).
    That way their numbers will constantly change until all players have a unique number.

    P.S. - your english/grammer is perfect
  • solnikasolnika Member Posts: 132
    JohnPapiomitis said:
    heres the learnign videos: http://www.youtube.com/user/GameSaladCookbook/

    and the wiki: http://gamesalad.com/wiki/

    Thanks for the links, Although I familiar with them, There are still a lot of functions I have no idea what they are used for.
    TacoStand said:
    First off, welcome to Gamesalad, its great to have you!
    For you random problem perhaps this may work:
    Attributes: Player 1, player 2, player 3, player 4.
    Give them all the behavior: change attribute: player (1,2,3,4) to rand(1,4)
    them give them all the rule:
    When any:
    Player 1 = player 2
    Player 1 = player 3
    Player 1 = Player 4
    then change attribute : random(1,4).
    That way their numbers will constantly change until all players have a unique number.

    Hi thanks, glad to be here.

    I did something similar to what you wrote, but after every actor that got a digit I Reduct a digit from the next actor random.
    TacoStand said:
    P.S. - your english/grammer is perfect

    I don't know about that, I guess an hour and a half with Google Translat helps.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    look threw the wiki. It contains every function and math expression with definetiion. you just have to look

    cheers :)
  • solnikasolnika Member Posts: 132
    TacoStand I'm sorry, I have not read your response correctly.
    I actually did it Differently.

    That's why what I wrote doesn't make any sense.
  • solnikasolnika Member Posts: 132
    JohnPapiomitis said:
    look threw the wiki. It contains every function and math expression with definetiion. you just have to look

    cheers :)

    ok I will take a look again.

    Thanks
  • RUPASRUPAS Member Posts: 823
    solnika said:
    Hello everyone,

    I'm new here (about a week), mainly reading the forum and watching videos.
    I have no background in programming or in software of this kind.
    I started to build basic things to learn the software.

    I look at the things I've made and how I did it
    and it looks like I took the long road to get thindgs done.

    Because I do not know the software in depth and the fact that English is not my first language, I can not help wondering is there a easier way to implement the things I'm trying to do without going into a long and unnecessary logic.

    I will try to illustrate: I wanted to give a random number from 1-4 to four players at once, without having to repeat the same number twice.

    At first I had problem.
    I gave a random digit to player one.
    Then I created a rule that if player one digit = 1,
    give player two a random digit from 1-3.
    I then planned on createing another rule that if player one digit = 2, then give player two a random digit from 1-4 except 2.

    I do not know whether it is possible to create such a rule, anyway I could not.
    At the end I managed to do it in a different way, but I think I did a lot of extra stuff in order to accomplish it.

    Is there a simple way to do it?
    Is there a way to create a rule that will give a random number from a few options and not from a min,max(like, ramdom [1,2,3,4])?
    Or maybe a way to give a min,max Value except a certain number?

    I have more examples like this, but they are long to write.
    Anyway I will appreciate your comments.

    Oh and a little suggestions for the site admin's
    I think many new user's could be helped with a manual and/or a video that includes all the functions of the software with a brief explanation of how to use a function. I'm for one will very appreciate this.

    I do not mean the big things like create a player, rules or timer.
    I mean the less common things, such as what is EXP (in the drop-down menu where you can select random option)?

    Thanks again
    Best regards
    Alex

    P.S
    I'm sorry for any spelling or grammar mistakes, as I mentioned English is not my first language.

    Solnika hablas español ???
  • calvin9403calvin9403 Member Posts: 3,186
    JohnPapiomitis said:
    heres the learnign videos: http://www.youtube.com/user/GameSaladCookbook/

    and the wiki: http://gamesalad.com/wiki/

    you miss this
    http://gshelper.com/

    ___________________________________________
    http://www.gamesaladforum.com/
  • solnikasolnika Member Posts: 132
    RUPAS said:
    Solnika hablas español ???

    Sorry no
    calvin9403 said:
    you miss this
    http://gshelper.com/

    Thanks,I saw this as well.

    ___________________________________________
    http://www.gamesaladforum.com/

Sign In or Register to comment.