Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Two script questions

Page: 1 of 1
 Seamhainn
01-12-2008, 3:24 PM
#1
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, 4:42 PM
#2
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, 5:06 PM
#3
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
Page: 1 of 1