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'
a=input('release missile')
if a == 'yes':
missile=missile_release()
print (missile)
flair_system(flair_vector,miss_vector,plane_vector,flair_count,missile)
@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
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'
a=input('release missile')
if a == 'yes':
missile=missile_release()
print (missile)
flair_system(flair_vector,miss_vector,plane_vector,flair_count,missile)
Ok oh well@Skua
Ah, it seems that having paragraph breaks (two line breaks in succession in Markdown) breaks the backtick formatting
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
Not working@Skua
`
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':
def weaponcycle(flaircount):
planevector=0
flairvector=planevector-1
missvector=plane_vector
weaponcycle(flaircount)#starts script
`
Ok@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
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
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':
def weaponcycle(flaircount):
planevector=0
flairvector=planevector-1
missvector=plane_vector
weaponcycle(flaircount)#starts script