View Single Post
  #1  
Old 08-22-2008, 06:25 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Post Many questions about quest globals

1. Is this expression, literally typed, in valid syntax?
quest::setglobal("kingdomfaction","realm_1",7,"F" );
(i.e., if "realm_1" in reality represents a faction ID, is it valid to use a text label to represent the faction_ID, so long as that same label is used and defined in the qglobal script in player.pl?

2. If yes, and if I set the global (as above) in an NPC script (npcid.pl), then in the player.pl script should I have something like the following to define the label?

{
my $factioncheck = undef;
if ($qglobals{kingdomfaction} )
{
if ($qglobals{kingdomfaction} eq "realm_1")

3. If yes, then does the player.pl in such a case go into the quest/template folder, or n the quest/zone folder?

There is not much out there that explains how all this works in a quest global.

Many thanks.
Reply With Quote