Thanks in advance
Edit: Also, if someone could figure out how to make it snow inside (I've spent a few days searching and haven't found any), that would be cool too
Modifié par Artine, 25 novembre 2010 - 12:31 .
Modifié par Artine, 25 novembre 2010 - 12:31 .
Put this script in the tree's OnUsed event (change DoorTag to your door's tag):Artine wrote...
I'm new to scripting (looking-at-noobscorner.Jassper.com-new), and I've set up a Christmas Module (I plan to release this on the vault later), but it's really just in the works as of this moment. The closest I've come, manually without scripting, is to draw an area transition that is placed below the tree, to have the tree itself be highlighted and therefore clickable. I want to eliminate this though and instead make the tree clickable, and when clicked it will take the player back to the main area. It would help if I could link the tree's area transition to a door, if possible.
void main()
{
object oPC = GetLastUsedBy();
object oDoor = GetObjectByTag("DoorTag");
AssignCommand(oPC, JumpToLocation(GetLocation(oDoor)));
}
Go to the Advanced tab of the area's properties and change the Terrain Type from Interior to Exterior then go to the Visual tab, customize environment and set the snow to 100%.Artine wrote...
Edit: Also, if someone could figure out how to make it snow inside (I've spent a few days searching and haven't found any), that would be cool too
void main()
{
object oPC = GetLastUsedBy();
int iTalked = GetLocalInt (oPC, "treeopen");
if (iTalked)
{
object oDoor = GetObjectByTag("DoorTag");
AssignCommand(oPC, JumpToLocation(GetLocation(oDoor)));
}
else
{
SpeakString ("Blah blah blabber blah");
SetLocalInt (oPC, "treeopen", TRUE);
}
}
Modifié par Artine, 06 décembre 2010 - 11:46 .