Author Topic: Script examples  (Read 58548 times)

0 Members and 1 Guest are viewing this topic.

Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 14
  • Posts: 1,035
Script examples
« on: July 30, 2009, 07:43:39 AM »
Setup script examples

Adding a tree with a starting level of 2 (need to level up once to plant the root)
(click to show/hide)

Add a tree with a flower or mine
(click to show/hide)

Add a superseedling tree
(click to show/hide)

Have an asteroid with superseedlings on it at the start
(click to show/hide)



Level logic examples


Adding a scripted section of a fixed duration:
(click to show/hide)
Of course, you can also check the time any other point e.g.
(click to show/hide)


Drawing examples

Here's a code block that shows some stuff being drawn in the level draw routine, including drawing stuff at a fixed size on screen, checking to see if something is on the screen and levels of detail:
(click to show/hide)

callback examples

oneshot asteroid taken script example
(click to show/hide)

etc
« Last Edit: March 24, 2010, 11:01:46 PM by Alex »

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Script examples
« Reply #1 on: January 20, 2010, 10:41:51 PM »
So did you just forget to add the code to your post or something?  :>

Rudolf

  • Administrator
  • Old Oak
  • *****
  • Thank You
  • -Given: 4
  • -Receive: 12
  • Posts: 673
  • Euflorian Ambassador
    • Omni Systems Limited
  • Eufloria: Yes
Re: Script examples
« Reply #2 on: January 23, 2010, 06:33:54 PM »
No it is all there under the spoiler buttons.
Does this now work for you?
-----------------------------------------------------
Rudolf Kremers - Grand Poobah

http://www.omni-labs.com
http://www.rudolfkremers.com
http://rudolfkremers.tumblr.com/

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Script examples
« Reply #3 on: January 24, 2010, 12:21:05 AM »
Not seeing any spoiler buttons...
I don't think this is merely a graphical bug because when I quote the OP, there is still no code in there.

I administer an SMF-based forum for the band Angelspit.  If you have access to the admin panel, check the member rank permissions - maybe I am erroneously not allowed to see spoiler'd stuff or something? :>

I'll go update my browser and flash and java and so on in the mean time, in case it's that.  Win XP, Firefox, incidentally.

Rudolf

  • Administrator
  • Old Oak
  • *****
  • Thank You
  • -Given: 4
  • -Receive: 12
  • Posts: 673
  • Euflorian Ambassador
    • Omni Systems Limited
  • Eufloria: Yes
Re: Script examples
« Reply #4 on: January 24, 2010, 12:31:31 AM »
Hmm I think you may have been right...
Which would explain why so few user levels have been made.... :-(

Try again.. see if that is better..
-----------------------------------------------------
Rudolf Kremers - Grand Poobah

http://www.omni-labs.com
http://www.rudolfkremers.com
http://rudolfkremers.tumblr.com/

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Script examples
« Reply #5 on: January 24, 2010, 12:46:52 AM »
Working now ^_^

Harsha

  • Seedling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
Re: Script examples
« Reply #6 on: March 22, 2010, 09:11:05 PM »
Hey non members will not be able to see the spoiler buttons at all.. Is that okay? :-\

Eufloria Admin

  • Global Moderator
  • Seedling
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
Re: Script examples
« Reply #7 on: March 22, 2010, 09:54:57 PM »
Fixed.

Lonnie Soter

  • Guest
Re: Script examples
« Reply #8 on: July 26, 2011, 03:46:43 PM »
I do not see!   :( :( :(

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
Re: Script examples
« Reply #9 on: July 27, 2011, 12:32:03 AM »
Are you using Chrome to view the forums? The spoiler buttons never have seemed to work in chrome. You could try using a different browser to see if that helps?

hitman271

  • Shoot
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
Re: Script examples
« Reply #10 on: August 10, 2011, 10:04:41 AM »
you could just not use spoilers

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Script examples
« Reply #11 on: August 10, 2011, 06:04:15 PM »
The Spoiler mod in use on these forums is 0.6a.
The latest version is 0.7.2a.

It's not clear whether the newer version supports Chrome or not, however it might be worth a try upgrading it..?

Alex/Rudolf do you want me to try upgrading?  I will of course take a backup first in case anything goes wrong.  :>

BC wins

  • Seedling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 39
Re: Script examples
« Reply #12 on: August 13, 2011, 06:33:22 AM »
ermm, im using chrome, no problems with spoilers :D

altough they do apear like only one lined, but sometimes they do sometimes they dont
~edited by P123 - collapse two posts to one
« Last Edit: August 13, 2011, 06:58:48 AM by Pilchard123 »

dragoonreas

  • Seedling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
  • Eufloria: Yes
Re: Script examples
« Reply #13 on: August 13, 2011, 04:57:30 PM »
ermm, im using chrome, no problems with spoilers :D

altough they do apear like only one lined, but sometimes they do sometimes they dont
~edited by P123 - collapse two posts to one
I've noticed that the height of code block frames get reduced to one line when they're nested within spoiler tags, so you have to scroll through the code with only one line being visible at a time (which is why I usually just copy & paste it to a text editor if I want to read it).

I'm using Safari, but since both Chrome and Safari use Webkit I wouldn't be surprised if fixing the problem on one of these browsers would fix it on the other.