Profile image

flair mod python test code

7,696 Halfstrike  8.7 years ago

here is the test code for my upcoming flair mod

  • Log in to leave a comment
  • Profile image
    7,696 Halfstrike

    Ok oh well@Skua

    8.7 years ago
  • Profile image
    26.3k Skua

    Ah, it seems that having paragraph breaks (two line breaks in succession in Markdown) breaks the backtick formatting

    8.7 years ago
  • Profile image
    26.3k Skua


    import random
    flair_count=5
    def missile_release():
    print('missile released')
    return 'true'
    def flair_release(flair_count):
    flair=input('release flair')
    if flair =='yes':
    flair_count-=1
    return 'true'
    if flair != true:
    return 'false'
    def flair_system(flair_vector,miss_vector,plane_vector,flair_count,missile):
    while missile=='true':
    flair_release='true'#flair_release(flair_count)


    if flair_release!='true':
    print('missile hit plane flase')
    missile='false'


    if flair_release=='true':
    chance=0
    chance=random.randint(1,6)
    if chance ==2:
    miss_vector=plane_vector
    print('missile hit plane')
    missile='false'
    else:
    miss_vector=flair_vector
    print('missile hit flair')
    missile='false'
    def weapon_cycle(flair_count):
    plane_vector=0
    flair_vector=plane_vector-1
    miss_vector=plane_vector
    a=input('release missile')
    if a == 'yes':
    missile=missile_release()
    print (missile)


    flair_system(flair_vector,miss_vector,plane_vector,flair_count,missile)
    weapon_cycle(flair_count)#starts script

    +1 8.7 years ago
  • Profile image
    7,696 Halfstrike

    Not working@Skua

    8.7 years ago
  • Profile image
    7,696 Halfstrike

    `
    import random
    flair_count=5

    def missile_release():
    print('missile released')
    return 'true'

    def flairrelease(flaircount):
    flair=input('release flair')
    if flair =='yes':
    flair_count-=1
    return 'true'
    if flair != true:
    return 'false'

    def flairsystem(flairvector,missvector,planevector,flair_count,missile):
    while missile=='true':

        flair_release='true'#flair_release(flair_count)
    
    
    
        if flair_release!='true':
            print('missile hit plane flase')
            missile='false'
    
        if flair_release=='true':
            chance=0
            chance=random.randint(1,6)
            if chance ==2:
                miss_vector=plane_vector
                print('missile hit plane')
                missile='false'
            else:
                miss_vector=flair_vector
                print('missile hit flair')
                missile='false'
    

    def weaponcycle(flaircount):
    planevector=0
    flair
    vector=planevector-1
    miss
    vector=plane_vector

    a=input('release missile')
    if a == 'yes':
        missile=missile_release()
        print (missile)
    
    
    
        flair_system(flair_vector,miss_vector,plane_vector,flair_count,missile)
    

    weaponcycle(flaircount)#starts script
    `

    8.7 years ago
  • Profile image
    7,696 Halfstrike

    Ok@Skua

    8.7 years ago
  • Profile image
    26.3k Skua

    @Halfstrike put a backtick ( ` ) in the line above and below the code to put the whole thing in to a monospaced format with nothing like italics included

    8.7 years ago
  • Profile image
    7,696 Halfstrike

    can someone get this to work I cant get it to quote it currently is you copy this straight to python it wont work as is didn't copy the indents

    8.7 years ago
  • Profile image
    7,696 Halfstrike

    import random
    flair_count=5

    def missile_release():
    print('missile released')
    return 'true'

    def flairrelease(flaircount):
    flair=input('release flair')
    if flair =='yes':
    flair_count-=1
    return 'true'
    if flair != true:
    return 'false'

    def flairsystem(flairvector,missvector,planevector,flair_count,missile):
    while missile=='true':

        flair_release='true'#flair_release(flair_count)
    
    
    
        if flair_release!='true':
            print('missile hit plane flase')
            missile='false'
    
        if flair_release=='true':
            chance=0
            chance=random.randint(1,6)
            if chance ==2:
                miss_vector=plane_vector
                print('missile hit plane')
                missile='false'
            else:
                miss_vector=flair_vector
                print('missile hit flair')
                missile='false'
    

    def weaponcycle(flaircount):
    planevector=0
    flair
    vector=planevector-1
    miss
    vector=plane_vector

    a=input('release missile')
    if a == 'yes':
        missile=missile_release()
        print (missile)
    
    
    
        flair_system(flair_vector,miss_vector,plane_vector,flair_count,missile)
    

    weaponcycle(flaircount)#starts script

    8.7 years ago