Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
how to make a python module for ASSS

 
Post new topic   Reply to topic Printable version
 View previous topic  <java> UChat Post :: Post fm_shiplimits  View next topic  
Author Message
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Sun Mar 02, 2008 3:03 pm    Post subject: how to make a python module for ASSS Reply to topic Reply with quote

how do you make your python code to be in ASSS ?

like i made a simple calculator
Code: Show/Hide
loop = 1
choice = 0
while loop == 1:
    print " Welcome to Simple Calculator"
    print "your options are:"
    print " "
    print " 1) Add"
    print " 2) Subtract"
    print " 3) Exit"

    choice = input("Choose your option: ")

    if choice ==1:
        add1 = input("add: ")
        add2 = input("to: ")
        print "equals = ", add1 + add2
    elif choice == 2:
        sub1 = input ("subtract from: ")
        sub2 = input ("subtract: ")
        print "equals = ", sub1 - sub2
    else:
        loop = 0
print "Thank you for using Simple Calculator."


how do i make this a module for ASSS? do i like add include asss.exe or something?
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
tcsoccerman
Server Help Squatter


Age:31
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Sun Mar 02, 2008 3:11 pm    Post subject: Reply to topic Reply with quote

the best way for you to learn is too look at other modules made by other people and try to comprehend what it all means.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Sun Mar 02, 2008 3:19 pm    Post subject: Reply to topic Reply with quote

i ment would the code i wrote work if i added as a module to ASSS?
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Mar 02, 2008 3:31 pm    Post subject: Reply to topic Reply with quote

No. Look at other python modules.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Sun Mar 02, 2008 4:26 pm    Post subject: Reply to topic Reply with quote

ok i know how they start just a simple question how to make it like if you write ?hey it answers back "hey"

should be a simple code
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Mar 02, 2008 7:35 pm    Post subject: Reply to topic Reply with quote

If you want to try something like that check this guide out Writing Modules In Python - Commands.

Your original code can't be converted to an asss module easily since it relies on a console for input. Once you strip off all that you are left with "add1 + add2" which will work on asss.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Custom Projects All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 680 page(s) served in previous 5 minutes.

phpBB Created this page in 0.556160 seconds : 31 queries executed (82.9%): GZIP compression disabled