Five special powers, but how can I program it?

  • #1, z smac96Saturday, 30. April 2016, 17:22 hodinky 9 years ago
    Hi guys,

    I have a question about programmation that is too complicated to manage for my knowledge and maybe some of you can help me :-)

    The situation:

    The character of my game has 5 special powers that he can use.

    But... at the beginning he can use only 1 of the 5 powers at the time.

    Then during the game... he will be allowed to use 2 powers simultaneously, then 3 powers simultaneously, then 4 powers simultaneously and at the end 5 powers simultaneously.


    For the moment I only created a value called:

    ALLOWED_SIMULTANEOUSLY_POWERS
    (initial value: 1)

    and 5 variables, one each power, called:

    POWER_A
    POWER_B
    POWER_C
    POWER_D
    POWER_E

    (initial values: FALSE. Then when I select the different powers, the value of the selected power turns to TRUE)

    How can i program it? (if it's possible without LUA)

    Thank you in advance for your help!!!

    Bažant

    97 Posts


  • #2, z brut69Saturday, 30. April 2016, 17:54 hodinky 9 years ago
    Yes , very easily by changing the conditions set for each power.

    Čestný člen

    266 Posts

  • #3, z sebastianSaturday, 30. April 2016, 18:04 hodinky 9 years ago
    You could make each power as a command in your interface. Setting the command to a, b, c, d, e is only allowed when the condition is true

    Kapitán

    2346 Posts

  • #4, z smac96Sunday, 01. May 2016, 17:03 hodinky 9 years ago
    Thanks!

    Bažant

    97 Posts