[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Python
. . -> [Subject]  A question about examplescript.pys
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

A question about examplescript.pys

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Hairui   China  (24 posts)  [Biography] bio
Date Mon 28 Jun 2004 01:41 PM (UTC)

Amended on Thu 14 Apr 2005 02:21 PM (UTC) by Hairui

I looked into the examplescript.pys and i found some functions were defined in it,such as :

# ---------------------------------------------------------
# Example showing running a script on world open
# ---------------------------------------------------------
def OnWorldOpen ():
  world.Note ("---------- World Open ------------")

My question is :
Will this function be performed automatically while the world be open?
or how can i make it be performed automatically when the world be open?
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #1 on Mon 28 Jun 2004 03:23 PM (UTC)
You should go to the world's scripting section and write OnWorldOpen in the "On world open" box.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]