thanks a bunch, i have that site bookmarked already
, it doesnt give many examples though. i was thinking about GetModule(), say a person talks to a NPC and gets an item ONLY once, and i set a module int to 1 or 2. 1 meaning he gets one 2 meaning he already has one. if one person walked up and i used GetLocalInt(GetModule(),"bla");
wouldnt the next person that tries to get the item not get it?
And can i make new variables in code? Like when a PC joins the server, make a copy of all the module variables and assign them to him?
Would i use OnClientEnter?
and then
void main()
{
object oPC = GetEnteringObject();
object oModule = GetModule();
SetLocalInt(oPC,"ModInt1",GetLocalInt(oModule,"ModInt1"));
SetLocalInt(oPC,"ModInt2",GetLocalInt(oModule,"ModInt2"));
SetLocalString(oPC,"ModString1",GetLocalString(oModule,"ModString1"));
SetLocalString(oPC,"ModString2",GetLocalString(oModule,"ModString2"));
SetLocalFloat(oPC,"ModFloat1",GetLocalFloat(oModule,"ModFloat1"));
SetLocalFloat(oPC,"ModFloat2",GetLocalFloat(oModule,"ModFloat2"));
}
wouldn that create new local variables on the pc i can use? Thanks for your help Dorganath i really appreciate it
oh and is there any way i can make the code wait besides ActionWait, and DelayCommand?
Dom