The 3rd Age

Gladiator Heroes

Gladiator Heroes

6 heroes are remade with powerful new spells

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

In-Game Text: map.str Tutorial

Tutorial for Battle for Middle-earth BFME, Battle for Middle-earth II BFME 2, Battle for Middle-earth II: Rise of the Witch-king ROTWK

No Avatar

Jordan18124

Category: Worldbuilder
Level: Beginner
Created: Saturday January 9, 2010 - 9:41
Updated: Wednesday February 3, 2010 - 11:05
Views: 5273
Summary: A tutorial that will talk you through the basics of map.str

Rating

Staff says

3.0

Members say

-

Average

3.0/5.0

1 vote

Page 1 2 3 4 5
Showing Timers with map.str

This is usually the smallest piece of text in the map.str. A timer can be used to show someting happening, such as the arrival of reinforcements or to show something happening in game.
To write the timer in map.str, you use the same layout as before, and don't add the the actual contdown timer.
For example, if reinforcements were coming to battle, the map.str text would look like this:

SCRIPT: Reinforcements_Timer
"Reinforcmenets Arrive in"
End

To make it show up in game you must set up a simple script in worldbuilder. To do this, follow the instructions below:

1) Open worldbuilder and click the scripts icon
2) Make a new script with the conditions being anything you want.
3) Actions must be Interface/Counters and Timers/Specific Timer - Display

Show timer name 'Reinforcements' with localized string 'Timer name in map.str'

Then you need to set up another script to make it count down:

Condition - the same as the last script
Actions - Scripting/Timer/Seconds Countdown Timer - Set

Set timer name 'Reinforcements' to expire in '???' You can choose this to be whatever you want. Note that it is in seconds though.

Now you need to set up a final script to make the timer dissapear when it has finished:

Conditions - Timer 'Reinforcements' has expired
Actions - Interface/Counters and Timer/Specific Timer - Hide

Hide timer name 'Reinforcments'

Because this is a map.str tutorial, I am not going to show you how to spawn reinforcements in the map, you will have to look elsewhere for that. I reccomend using the forums.

NOTE: You do not have to call the timer 'Reinforcements' I was just using this as an example.

Links / Downloads

 HitsAdded
Map.str Template1070February 1, 2010 - 8:37

Comments

Display order: Newest first

Rob38 (Team Chamber Member) - Saturday January 9, 2010 - 12:48

For a better format, try adding

              
Code
test
code tags to the scripts and map.str text parts. Other than that, good tutorial.

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
21:15:48