Jump to content

Help with Tokens


ItchyDani3l

Recommended Posts

Hey guys.

 

I'm looking for some help with tokens. The information about them on the IESDP is a bit vague/lacking and I'm really interested in their potential.

 

I'm not really a modder, I'm actually just creating custom creature scripts, but Tokens I believe would help me accomplish alot more without making changes to the game files, and thus, be viewable to other players in multiplayer without them needing to install anything.

 

So, specifically, are the tokens like <CHARNAME> and <LEVEL> the same "tokens" used by scripting actions such as "SetToken(S:Token*,I:STRREF*)" and the other SetToken actions?

 

Is there an existing complete list of tokens? If so, are they contained in a .2da file I can look at and change?

 

How can I create my own tokens?

 

Can tokens hold data types other than integers?

 

Thanks to anyone willing to help.

Note: I scoured the forum for a post similar to this, but was unable to find one, so hopefully its not a frequent topic that I'll be flamed for.

Link to comment

igi wrote a tutorial on tokens. I was going to link it, but it seems to be unavailable now. Previously, it could be found at this location. If igi has a copy of it stored somewhere, maybe he could re-post it.

 

 

Is there an existing complete list of tokens?

 

http://gibberlings3.net/iesdp/appendices/token_lists/bg2tokens.htm

 

 

I'm not really a modder, I'm actually just creating custom creature scripts, but Tokens I believe would help me accomplish alot more without making changes to the game files, and thus, be viewable to other players in multiplayer without them needing to install anything.

 

You'd probably need to add a lot of strings to dialog.tlk to take advantage of tokens. So, this wouldn't really get around other players needing to install a mod.

Link to comment

Yeeeeah it's kind of frustrating how the entire game is written using the dialog.tlk file... It makes it near impossible to make procedurally based dialog (except with tokens).

 

From what I understand, it's all just to reduce processing time for the CPU, but that shouldn't be as big a problem as it was when IE was first developed.

 

If you can get igi to repost that tutorial that'd be awesome.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...