Loop Problem etz. #109


  • Defect
  • Replied
Open
Assigned to _ForgeUser8773666
  • _ForgeUser9813242 created this issue Mar 22, 2014

    Hello. I have a question. How can I do that, I always automatically play eg a script? I have the version 1.7.2.
    I work a lot with variable trigger. I find this plugin very good. But I do not know how to do that. Can you give me a guide? Is that possible with @ LOOP?
    I look forward to a response. friendly greetings.

  • _ForgeUser9813242 added the tags New Defect Mar 22, 2014
  • Lyoko_Firelyte posted a comment Mar 22, 2014

    First, update to the latest version of the plugin so that there are a lot of fixes.

    You can use @WHILE for a longer @LOOP, such as...

    For example:

        - '@WHILE i $object.var > 10'
        - '@PLAYER $object.var is greater than 10!'
        - '@SUBINT $object.var 1'
        - '@ENDWHILE'
    

    That would go off 10 times provided $object.var starts at 20.


    Edited Mar 22, 2014
  • Lyoko_Firelyte removed a tag New Mar 22, 2014
  • Lyoko_Firelyte added a tag Waiting Mar 22, 2014
  • _ForgeUser9813242 posted a comment Mar 22, 2014

    @Lyoko_Firelyte: Go

    okay. but I am looking for something that runs infinitely eg, a script as example: @POOF 10 @PAUSE 2

    So. wen I press the it plays the script automatically always new from without that I have to press him against. Is that possible? Thank you for an answer.

    like this? o.O: @WHILE @POOF 10 @PAUSE 5 @ENDWHILE

    <script go to start and play automatic>

  • _ForgeUser9813242 removed a tag Waiting Mar 22, 2014
  • _ForgeUser9813242 added a tag Replied Mar 22, 2014
  • Lyoko_Firelyte posted a comment Mar 22, 2014

    @Rapelz99: Go You can use the script I showed you but take out the @SUBINT so that the variable is always allowed to repeat

  • Lyoko_Firelyte posted a comment Mar 22, 2014

    @Lyoko_Firelyte: Go

    @WHILE i $obj.var > 10 @POOF 10 @PAUSE 5 @ENDWHILE

  • _ForgeUser9813242 posted a comment Mar 22, 2014

    @Lyoko_Firelyte: Go

    hm, they didn't work. i pressd:

    /vtclick @WHILE i $obj.var > 10 /vtclick @POOF 10 /vtclick @PAUSE 5 /vtclick @ENDWHILE

    it has the script only run 1 time. how can I make the infinity then it? so who I press for example, it plays the script and it never ends, except whom I delete it, or with a 2 button. I do not quite understand all that. can they test me as the: script prescribe @ POOF a?

  • _ForgeUser8773666 posted a comment Jun 14, 2014

    you could always use the timer trigger. It hits once every second

    /vtevent Timer [SCRIPTLINE]

    for the scriptline you can call a script that has all you lines of code in it. The script will then get run every second


To post a comment, please login or register a new account.