Map with script?

For AI and campaign script related discussions and questions
Post Reply
dmkp
Trained
Trained
Posts: 182
Joined: 08 Jan 2010, 20:50
Location: UK
Contact:

Map with script?

Post by dmkp » 11 Feb 2010, 16:44

What tells which map to use which script?

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3750
Joined: 03 Aug 2006, 19:39

Re: Map with script?

Post by Per » 11 Feb 2010, 18:31

.wrf files.

If you want a more detailed answer, I suggest a more detailed question.

dmkp
Trained
Trained
Posts: 182
Joined: 08 Jan 2010, 20:50
Location: UK
Contact:

Re: Map with script?

Post by dmkp » 11 Feb 2010, 23:06

Well let's say I wanted to make a script to activate technology for a specific team. But I wanted it separate from the main script for that level.

I'd need to know how to link that map with that script.

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3750
Joined: 03 Aug 2006, 19:39

Re: Map with script?

Post by Per » 11 Feb 2010, 23:48

You mean for skirmish games? Never tried that, but I suppose you would add a custom wrf file referenced from the addon.lev, that loads the VLO and SLO files that contain the scripts.

dmkp
Trained
Trained
Posts: 182
Joined: 08 Jan 2010, 20:50
Location: UK
Contact:

Re: Map with script?

Post by dmkp » 12 Feb 2010, 00:30

No, for campaign maps :)

User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Map with script?

Post by Buginator » 12 Feb 2010, 07:02

Everything is controlled with the .wrf files. Look at how cam 1 starts...
and it ends here.

dmkp
Trained
Trained
Posts: 182
Joined: 08 Jan 2010, 20:50
Location: UK
Contact:

Re: Map with script?

Post by dmkp » 12 Feb 2010, 18:28

Ah yes :)

Thank you :D




Are there any scripting tutorials out there?

Post Reply