OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SimonRussi on 27 Aug 2002, 18:10:29

Title: Oh no, 2 is down.
Post by: SimonRussi on 27 Aug 2002, 18:10:29
I already asked it before but no solutions arrived...
the question is: is it possible to change the standard
"Oh no, 2 is down"

with a customized phrase?

And if it is, how? :)
Title: Re:Oh no, 2 is down.
Post by: icarus_uk on 27 Aug 2002, 18:15:26
OOoo.  You would need to dePBO the data files. Find the "Oh no 2 is down" phrase, (probably a compositie of a number of sounds) and replace them with files of your own.  Keeping the same names just replace the soud inside them.
Title: Re:Oh no, 2 is down.
Post by: SimonRussi on 27 Aug 2002, 18:17:22
oh, ok, what if i'd just like to change the text on the screen and eliminate the sounds...?
Title: Re:Oh no, 2 is down.
Post by: Cedaie on 27 Aug 2002, 18:17:59
the way I'd do it, is use a custom sound of your own, .ogg it, descript it, and in a script write

#loop
? not (alive unit2name):goto "deadtalk"
goto "loop"
#deadtalk
enableradio false
player say "2isdown"
~1
enableradio true


"2isdown" would be the class name of your sound, describes in your description.ext, dont ask me how description.ext works, i'm having trouble of my own. ::)

also I think this belongs in the sound and cutscenes forum  :P

cheers  ;D
Title: Re:Oh no, 2 is down.
Post by: icarus_uk on 27 Aug 2002, 18:24:46
Or get rid of that CPU hungry loop and just use;

@!(alive Unit2)
rest of the script