Looking for a specific SCR file

Post your scripting questions / solutions here

Moderator: Moderators

Lucky Luciano
Lance Corporal
Posts: 14
Joined: Thu Apr 17, 2003 6:04 pm

Post by Lucky Luciano »

It actually doesnt have anything to do with the localization, I just thought i could figure out the code if i had the string variables for the death message, see i only need the code for determining the player not anything else.

-Lucky
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

lmao well why didn't you say that!!!!

oh you did :P

i told you that in the 1st post, each player/bot has an array made up of which team their on, that link to the name i'll find tomorrow but i think it's just self.name, nite 4 now, and give a kiss 2 ur sis 4 me ;) (brother) :lol:
hope this helps, prob not cos it's all foreign 2 me :-/
Lucky Luciano
Lance Corporal
Posts: 14
Joined: Thu Apr 17, 2003 6:04 pm

Post by Lucky Luciano »

If i want to make a script that says "joe blow just fell off a ladder and landed on jim boy" then i need that part of the code that says ie:

println local.attacker + "just fell off a ladder and landed on" + local.inflictor

the part of the code im missing is the part before and after the text. That is the code i need to figure out. Lets just say I got the rest of it to work because i have. I have everything working, it print what i want at the time i want just w/out the name.

-Lucky :?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I'm sorry but I'm going to blow some illusions.

self.fact.attacker and other stuff only work for AI. global/killed.scr doesn't work for players. Also, the .attacker value is not the name of the attacker but a reference to the attacking entity, whereas .inflictor is the damaging entity, such as a grenade.

.min files are not scripts but give the game information on how much resources it has to load when loading a map. This way it can create the nice little progress bar for us impatient gamers. A .min file is automatically generated if none is present. Some stock maps have a .max file as well, but I don't know how to create them (it's not a 3ds max file ;)).

You cannot 'translate' binary code from the game dlls into source code :?

If it was not clear yet, localization.txt is used to translate messages from the default US English texts to other languages.
Image
Lucky Luciano
Lance Corporal
Posts: 14
Joined: Thu Apr 17, 2003 6:04 pm

Post by Lucky Luciano »

Nuggets, in case you dont know who i am.. please check out my vids at http://lucky.element93.com this way you can understand who i am.

-Lucky
Lucky Luciano
Lance Corporal
Posts: 14
Joined: Thu Apr 17, 2003 6:04 pm

Post by Lucky Luciano »

So what is the answer then jv??? Complete the script???

-Lucky
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

The answer is:

*drumrolls*

It's not possible :(
Image
Lucky Luciano
Lance Corporal
Posts: 14
Joined: Thu Apr 17, 2003 6:04 pm

Post by Lucky Luciano »

Maybe I'm not making myself abondantly clear. I am not looking for the ablility to alter the AI or the way in which it handles the game. I am looking for the command that tells the game to display the death message. Unless I am on morphine, I think I see the message when someone dies. Therefore, undoubtedly, unequivocally, undeniably, irrefutably, and without question there is a script that tells the game to print that line. And I would be hard pressed to believe that the printing of a line is handled by AI. Maybe I am wrong, and God knows I have been, but it just doesnt make sense in my mind.

-Lucky :? (now even more confused than i was yesterday) :?
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

i'm thinking ur going in a little too deep, but...
i'm working split shifts all next week and week afer 14 days straight so i'll be M.I.A. for a while, but at every opportunity i'll take a look when i can

ur right it must be possible, but how much script that needs to be unravelled will be the crux of it all :(
hope this helps, prob not cos it's all foreign 2 me :-/
Lucky Luciano
Lance Corporal
Posts: 14
Joined: Thu Apr 17, 2003 6:04 pm

Post by Lucky Luciano »

Thanks man. I really apprieciate it. I have a killer script written, I just need to plug in the individual names and it will work.

-Lucky
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Therefore, undoubtedly, unequivocally, undeniably, irrefutably, and without question there is a script that tells the game to print that line.
:shock:

Apart from scripts, there is game code (much faster). Most of the game is handled by this inaccessible game code rather than by .scr files.
Image
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Mission Complete Statistics

Post by Gen Cobra »

I decided to ask my own question in reference to an .scr file. How do you get the mission completed screen to come up after a successful mission? Is it an .scr. I looked through the global .scr files and found a mission complete .scr but something tells me that is not it since I have executed it upon completion of the final objective and it it doesn't ever pop the mission statistics screen up.
Image
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Players names in iprint messages!

Post by The Jackal »

I have the same dilema as Lucky, except I have no sister. I wanted to insert the Player name in messages that is sent to client# screen.

But JV makes it pelucidly clear that IT CANNOT BE DONE. It was a good idea while it lasted.

I guess now I move onto something else to script.

Check_JV
while (1)
{
local.JV = "Right"
if (local.JV=="Right")
{
wait 0
iprintlnbold "Thanks for All your help"
}
else
{
wait 1
iprintlnbold "You Da Man"
}
wait 5 }
end
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You're welcome :D
Image
Post Reply