Author |
Message |
Digital Core Guest
Offline
|
Posted: Tue Jan 20, 2009 3:23 pm Post subject: Python Module |
|
|
|
|
I want to create a simple python module that just displays an image when either freq 0 or freq 1 wins the flag game and play a sound.
Could someone assist me in where to start with the code. I looked on thw wiki, but can't find what I need. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Jan 20, 2009 6:50 pm Post subject: |
|
|
|
|
Start with a python module that prints a message when either freq 0 or freq 1 wins the flag game.
Then move on to attaching sounds (aka bongs) to an empty arena message.
From there, take a look at the objects module (see object.h) to see how to display images. See how ?objon works (the objects module is a bit hard to read, take it slowly and ask for help when you need it) and see if you can apply it to your module. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
Chambahs Power attack
Joined: Jun 19 2005 Posts: 820 Offline
|
|
Back to top |
|
|
Digital Core Guest
Offline
|
Posted: Sat Jan 31, 2009 3:35 pm Post subject: |
|
|
|
|
?objon doesn'y work in my zone, any idea why?
Also, in this module, would it be possible to have a 10 second delay, then a new message and object displayed, followed by a prize.
Assuming I have not coded anything, lol. I don't really understand how it all works, but would like to. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Jan 31, 2009 3:45 pm Post subject: |
|
|
|
|
Make sure "objects" is in modules.conf. If not, just add it to the end.
Start small, then move on from there. |
|
Back to top |
|
|
|