PDA

View Full Version : Two script questions


Seamhainn
01-12-2008, 03:24 PM
Hello!

I have a dialogue with a computer panel.

Script that determines availability is: k_con_com31
Script that fires when spoken is: k_act_com31
My dialogue is: [Computerkenntnis] Alle Sicherheitstüren öffnen. (<CUSTOM31> Sonde(n))
Unfortunately what I get in the game is this: [Computerkenntnis] Alle Sicherheitstüren öffnen. (<UNRECOGNIZED TOKEN> Sonde(n))

Can someone help me, please?

Thanks and take care

stoffe
01-12-2008, 04:42 PM
Unfortunately what I get in the game is this: [Computerkenntnis] Alle Sicherheitstüren öffnen. (<UNRECOGNIZED TOKEN> Sonde(n))


Have you set custom token 31 in a script somewhere before this line of dialog is reached? It has to be set in the same module/area the dialog is run in, since tokens are module specific and not global.

You assign custom tokens a value with the script function SetCustomToken().

Seamhainn
01-12-2008, 05:06 PM
No, I did do nothing in that module/area scriptwise. What must I do to accomplish that and when/where is that usually done?

EDIT: Is it save to assume that the custom token can be set at the beginning of the dialogue, and is it also save to assume that the custom token can be changed later on in the game again if necessary?

I'll try that out but can you give me a complete script witch the value of 3, please?

EDIT2: I did it, yeah!

Thanks and take care