So I've been wanting to explore the scripts from Storm of the Zehir expansion that surround the mini game for trading and trade bars. I didn't necessarily want to start a new topic on this, but I was having trouble drawing the script from the toolset. I can't find it anywhere on the side, so I decided to manually type it here in case I might have question... or when I have questions.
This script is titled ka_show_minimarket. I found it in module G_X2 and it is used for small trade in Samarach. I decided this was the most useful for what I wanted to accomplish in the adventure I'm trying to create.
//ka_show_minimarket
//shows the minature market ui for samarach
//NLC 07/30/08
#include "kinc_trade"
#include "ginc_overland"
void main (int nLocation)
{
object oPC = (GetPCSpeaker()==OBJECT_INVALID?OBJECT_SELF:GetPCSpeaker());
ShowMiniMarketUI(oPC, nLocation);
SetGlobalInt( VAR_ENC_IGNORE, TRUE);
}
I'm not sure why I simply can't find this script in the left sidebar with the other scripts but now that I have it and can look at it more easily I'm thinking this script counts on the directions from another script.
The nLocation int is puzzling to me because I am wondering how the writer associated the location with a number.
Also I'm wondering how I will be able to rename the trade goods, or use something other trade bars.





Retour en haut







