How to add a message

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

How to add a message

Post by DarthXeon »

you know how in all of them campaign mission where a text box says stuff and it fills up the whole screen? well how do u add them? ive look at some scripts like cor1_c but those scripts just make me more confused lol :lol:

Edit: it looks like u enter a code like this

Code: Select all

Objective1 = ObjectiveConquest:New{teamATT = ATT, teamDEF = GAR, text = "level.cor1.objectives.Campaign.1",
        popupText = "level.cor1.objectives.Campaign.1_popup"}
and then go to your localizer tool and place text at level.MAPID.objectives.campaign.1_popup? correct? :)
User avatar
TK432
2nd Lieutenant
2nd Lieutenant
Posts: 408
Joined: Tue May 26, 2009 4:18 pm
Location: Somewhere far away

Re: How to add a message

Post by TK432 »

Correct. You just need that last line for a popup Text to be triggered. The part in the first line is just the setup for a objective. The second line is the Yellow Text you see at the right side of the screen when opening the minimap.
Don't be shy trying out your assumptions if you think they're right.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How to add a message

Post by Marth8880 »

I'm pretty sure it's ShowMessageText(localizationkeyhere), lemme check.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: How to add a message

Post by lucasfart »

I'm pretty sure TK432 is right on this. From memory that's exactly how you do it...that's how they do it in the stock campaign anyway. Your way might work too, for all i know. :)
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How to add a message

Post by Marth8880 »

Well, my way is for the chat text, while the pop-up text is for, well, the pop-up text. :P
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: How to add a message

Post by lucasfart »

Is the chat text only for multiplayer? Or is it one of those texts that scrolls across the top corner, like when you kill someone? Or is it neither? :P
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How to add a message

Post by Marth8880 »

The yellow message text, basically, or even simpler, yes, the multiplayer chat text "theme".
Post Reply