Modding Union

[en] - Modding Corner => Mapping => Thema gestartet von: GIUSHi am 31. Jul 2024, 20:46

Titel: (Imported) Script
Beitrag von: GIUSHi am 31. Jul 2024, 20:46
Hi!

Help me please.

How to specify scripts from another library file, as in the photo. How to do Imported script?

(https://i.postimg.cc/dQ4PxghZ/t7-Fo-Sm-Gige0.jpg)
Titel: Re: (Imported) Script
Beitrag von: GIUSHi am 8. Aug 2024, 15:10
Hi again.

I'll clarify what I want to do

I make bases like in BFME 1 for my mod on RotWK. (I do it as in Edain 4.X)

As I noticed, there is a root file of scripts for AI, where the unpacking bases, capturing points on the map by units and etc. I named this file ai_basic. then separate files for the faction, for example for Gondor - ai_gondor. and I want the scripts from ai_basic to be imported there(ai_gondor), like in the photo that I attached in the first post, because if I change something in the ai_basic they have changed in other faction files(ai_gondor, ai_rohan, ai_mordor and etc.) where they are imported.
Titel: Re: (Imported) Script
Beitrag von: Elendils Cousin 3. Grades am 8. Aug 2024, 19:08
Hey Giushi, sorry for not answering, completely forgot about your question.

You can import libraries by going to Edit -> Player List -> Library maps. Here's an image of our Gondor AI in Edain:

(https://i.imgur.com/OEQjcG7.jpeg)

Hope this helps.
Titel: Re: (Imported) Script
Beitrag von: GIUSHi am 9. Aug 2024, 00:34
Thank you very much.

You helped me a lot, but I came across a big problem. Please help me again.

As I said earlier, I make scripts like in Edain 4.X, but I make an English version.

AI don't Unpacking base.

Screenshots scripts from ai basic under spoiler.


Titel: Re: (Imported) Script
Beitrag von: GIUSHi am 15. Aug 2024, 12:37
AI don't Unpacking base.

I'm currently making AI for Gondor. Added only one map Fords of Isen. and when I add there SkirmishMen, AI of Gondor doesn't unpack base and loses after 2 seconds. If I remove SkirmishMen from the Map, AI of Gondor unpack base, but then AI stands still and does nothing. Do not build a buildings and the starting units stand still.

Thank you for your attention.