This onenter area script is supposed to spawn a tree at a waypoint if someones journal is at the 3rd node.
Porblem is, it spawns no matter what part of the journal you're on.
//Put this script OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int nInt;
nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYasham");
if (nInt == 3)
return;
object oTarget;
object oSpawn;
location lTarget;
oTarget = GetWaypointByTag("brambletree");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "brambletree", lTarget);
}
I need minor help with this script
Débuté par
Baishi7
, juil. 25 2010 11:18
#1
Posté 25 juillet 2010 - 11:18
#2
Posté 25 juillet 2010 - 12:59
Warning! I'm still on my first cup of coffee so not fully human yet. 
If you want the tree to ONLY spawn if the journal (nInt) is 3... change this:
if (nInt == 3) -- if the journal is 3, you tell the script to stop
to
if (nInt != 3) -- if the journal is not 3, stop planting trees.
Good luck!
-- Mistress
If you want the tree to ONLY spawn if the journal (nInt) is 3... change this:
if (nInt == 3) -- if the journal is 3, you tell the script to stop
to
if (nInt != 3) -- if the journal is not 3, stop planting trees.
Good luck!
-- Mistress
#3
Posté 25 juillet 2010 - 02:53
Show off.
Thanks alot, it works great!
Thanks alot, it works great!
#4
Posté 25 juillet 2010 - 02:58
That was showing off? I can't even understand what I wrote now. *laughing* Glad you could understand morning zombie mode and the code works for you. *sassy grin*





Retour en haut






