Jump to content


Photo

How do i add reinforcements to a map


  • Please log in to reply
6 replies to this topic

#1 justin071894

justin071894
  • New Members
  • 12 posts

Posted 12 January 2009 - 02:05 AM

i want to add reinforcements to my map at about 20 mintues in the match...so how do i do it?
"A wizard is never late, nor is he early, he arrives precisely when he means to!" Gandalf the Grey

Posted Image

#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,847 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 12 January 2009 - 07:06 AM

You use scripts. Make a timer scripts that starts at 20 minutes (make sure you write it in seconds).
Then make another script that 'fires' as soon as the 20 minutes are up :blink:
That script should then spawn some units or something like that :p
Ridder Geel

#3 justin071894

justin071894
  • New Members
  • 12 posts

Posted 13 January 2009 - 12:55 AM

how do i creat a timer script? srry iam extremely new at this
"A wizard is never late, nor is he early, he arrives precisely when he means to!" Gandalf the Grey

Posted Image

#4 Sûlherokhh

Sûlherokhh

    Sagacious Engineer

  • Project Team
  • 3,754 posts
  • Location:Central Germany
  • Projects:S.E.E., Sage A.I., Code Advisor
  •  'Axe'er of the Gordic Knot

Posted 13 January 2009 - 01:09 AM

Then i recommend you don't start with one of the most difficult parts of modding BfMe. Scripting is anything but easy. Even starting to explain it would take pages of code. But if you really want to get the hang of it, study the following two tutorials by EA:
Basic Scripting (EA)
Building & Scripting a Single-Player/Campaign Map (EA)

bannerreal01mittelit3.jpg
Axed Head and A.I. Coder for S.E.E. and ... stuff

".. coding is basically boring. What's fun is finding out how things work, take them apart and then put them together in ways that were not intended nor even conceived."


#5 m@tt

m@tt

    #######

  • Project Team
  • 4,056 posts
  • Location:England
  • Projects:The Dwarf Holds
  •  T3A Chamber Member

Posted 13 January 2009 - 09:24 AM

First, create a waypoint where you want them to spawn.

Then the scripts:

Script1:

**IF**
True
**THEN**
Set Timer X to expire in Y Seconds

Click OK a few times, then close the scripts windows (press OK not X or close), then re-open. WB doesn't remember the script names until this happens.

Script2:

**IF**
Timer X has expired
**THEN**
Spawn instance of unit A belong to team B at waypoint C


Not the exact name of the scripts, but you get the idea.
Posted Image

#6 justin071894

justin071894
  • New Members
  • 12 posts

Posted 15 January 2009 - 08:58 PM

i can't find either of those scritps in the thingie...wat r they under?
"A wizard is never late, nor is he early, he arrives precisely when he means to!" Gandalf the Grey

Posted Image

#7 Sûlherokhh

Sûlherokhh

    Sagacious Engineer

  • Project Team
  • 3,754 posts
  • Location:Central Germany
  • Projects:S.E.E., Sage A.I., Code Advisor
  •  'Axe'er of the Gordic Knot

Posted 15 January 2009 - 09:01 PM

To get started, read the tutorials i mentioned above.

bannerreal01mittelit3.jpg
Axed Head and A.I. Coder for S.E.E. and ... stuff

".. coding is basically boring. What's fun is finding out how things work, take them apart and then put them together in ways that were not intended nor even conceived."





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users