aliens

Author Topic: [question] Scripted enviro-effect.  (Read 781 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
[question] Scripted enviro-effect.
« on: August 03, 2024, 05:16:06 am »
I try to create scripted effect, acting each turn for every unit. It is simple, but my script must be different for different mission types.
And here i stuck:
How to transfer mission parameter to scripts?
Enviroeffects, as i know, does not provide weaponitem properties, so it can not be used.
There is no script command to access terrain type.
Maybe i can define some tag  in geoscape, that can be seen from battle?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: [question] Scripted enviro-effect.
« Reply #1 on: August 03, 2024, 01:13:58 pm »
If I recall correctly each environment effect is specific item, and on this item you can put custom tags or scripts.

But overall I have plans to expose missions rules to battle scripts but it required bit for changes in engine to
propagate it place where scripts are called.

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: [question] Scripted enviro-effect.
« Reply #2 on: August 04, 2024, 02:14:45 am »
If I recall correctly each environment effect is specific item, and on this item you can put custom tags or scripts.
As mentioned here, this item properties are not accessible via script.
On the other side, i've not tried to put script into item directly. Will try. Thanks.
Upd: have tryed. Does'nt work. :( So, at this moment there is no way to make script that will take variable from geoscape through anything?
« Last Edit: August 04, 2024, 05:24:35 am by Nord »