Author Topic: Questions: SetGraceTime and Trees  (Read 10677 times)

jfk

  • Seed
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
  • Eufloria: Yes
Questions: SetGraceTime and Trees
« on: May 01, 2013, 09:16:34 PM »
Hey guys,

I'm new in the Eufloria Community and want to build a first simple map based on the guide for beginners by annikk (really great btw). I have a few short questions:

1. SetGraceTime(100): What unit time is this between the brackets? Seconds, minutes, hours?
2. When I use this function on an enemy asteroid, it seems that no new enemy seedlings spawn from dyson trees. But I only want the AI not attacking me for a while (30 minutes for instance). How can I do that? What is the function for that?
3. s:LevelUp(): How often can I use this function for trees? Is it possible to give trees unlimited health?
4. A last question: I often can't send seedlings back to my asteroid although the send distance is long enough. For instance: I attack the enemy with 400 seedlings (works fine) but when I want to send 300 of them back to home and click on my asteroid, the number over the arrow is always 1. Is this a bug?

I hope you can give me some advice.  :)

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
Re: Questions: SetGraceTime and Trees
« Reply #1 on: May 02, 2013, 03:03:09 AM »
I haven't made any maps or even played for ages, so these might be incorrect. Regardless, it's nice to see a new face around here. :)

1. Seconds, I think. Have a look into Globals.AI.GraceTimer(x) as well - I think that turns all built-in AI off for a length of time.
2. Try setting it on the asteroids you want left alone.
3. I think it's four times. TBH, it probably won't break if you do it more times, it might just do nothing.
4. There's a cap to the number of seedlings that can spawn on an asteroid as any one time - 40, IIRC. If you send a huge bunch to an asteroid below that cap, they'll all go since the asteroid is below the limit. If you try to send any more, only one will go.

There's a partial reference at
http://www.euflorium.com/index.php?topic=212.0

jfk

  • Seed
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
  • Eufloria: Yes
Re: Questions: SetGraceTime and Trees
« Reply #2 on: May 04, 2013, 11:30:59 PM »
Thank you very mutch Pilchard,

so can I set the health / strength for trees only with "s:LevelUp()" or is there another function for this? Can I make enemy trees impregnable?

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
Re: Questions: SetGraceTime and Trees
« Reply #3 on: May 05, 2013, 12:32:31 AM »
You could try setting s.MaxHealth and s.RegenRate to something really high, but I don't know if that will work. You might be able to set s.MinHealth above 0 as well - I think that will stop it from being destroyed.

jfk

  • Seed
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
  • Eufloria: Yes
Re: Questions: SetGraceTime and Trees
« Reply #4 on: May 05, 2013, 06:06:33 AM »
Thank you so much! It`s really fun to build own maps and I think, I get better from time to time.

While I build my maps, I also try to get the stalemate achievement but thats impossible. I send waves of weak seedlings to the enemy to have more than 500 losses and also mines with infinite health to destroy 500 enemy seedlings. But nothing happens after 15 minutes. Perhaps it is buggy.