OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: LCD on 09 Jan 2003, 02:35:23
-
i have 3 questions about dialogs ;D - im stil beginer to dialogs all i did till now was reading da TUT
1) can i change da satelite script dat Vektorboson made (http://www.ofpec.com/includes/download.php?type=2&id=132) but not like he did - i want all da satelite to show inside laptop screen (da script uses da whole screen) so it looks more realistic ;) - how do i do dat ?
2) can i make som kind of passowerd thingy using dialogs ? (defining code from da start, and the player have2 type the same thing - so its like comparing scripts) and how i do this ?
3) if i wanna use costum models in da mision, can i put em in da mision pbo and not make addon uses em ?
tia
LCD OUT
-
1. No ;)
2. Yes, try making a text box then using 'ctrltext' command to compare it to another variable.
3. No, gotta be addon ;D
P.S What's this for?
Gameer
-
1. damn - ny1 wid beter answer ;)
2. ill try dat
3. c answer 1
re PS - ill IM u bout it but every1 should know da im makin som kickass mision dat wil have extended dialog use ;) ;D
LCD OUT
-
Right, let me see if I got this straight.
1) You want to use the laptop p3d model instead of whatever Vektorboson used? And display the cutscene script in there?
Well, as soon as I make it work, I'll let you know, this is something that's buggered me as well.
Sorry mate, there could be work-arounds though. Like taking a screenshot of the laptop, cutting a hole in the center, and use the ST_PICTURE style to place it on the screen, and then run the cutscene script as normal.
2) This should be easy enough, have a script that keeps track of the password, let's say in the variable called coolPassword then use ctrlText like Gameer said, and compare that to coolPassword, like so
getPassword = ctrlText idcOfEditField
?(getPassword == coolPassword) : do Cool Stuff
?(getPassword != coolPassword) : ctrlSetText sameIdcNumber "Wrong password"
or somesuch, I'm sure you'll work something out.
3) Almost. Just make a p3d, put it in a pbo, and put it in the addon folder. I think that's how Kegetys did it. I talked to him and he said you didn't need any config.cpp. Just the right selection names for the dialog item.
I suggest checking out the notepad.p3d item from the demo, as it can be used in dialogs. Copy the selections from there.
-
tanks KTotte :-*
ill try it ;) ;D
Re 3) - i know bout dat ;) ;D just wanted 2 know if dere is anyway 2 make it work trough model from da mission.pbo - cuz it can get annoing 2 have 2 include anoder addon wen u use 3-6 addons xept it (I *heart* Addons ;))
LCD OUT
-
Mebbe you could try using an alpha channel on the notepad? :-\
Gameer