The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CheckPoint issue and memento.
sabrinagsoledad Offline
Junior Member

Posts: 32
Threads: 10
Joined: Feb 2016
Reputation: 0
#1
CheckPoint issue and memento.

Hi.

I just started an outside map. And I put some scripts on it... Now... dont know whats wrong because the game DONT crash!... but one memento and the chekpoint dont work... I try lot of things to make it change but nothing make it hapens.
Here is the WHOLE script in the map.

void OnStart()
{
AddEntityCollideCallback("Player", "AreaOfDeep", "Drowned", true, 1);

AddEntityCollideCallback("Player", "AreaWaterMemento", "EventWaterQuest", true, 1);

AddEntityCollideCallback("WoodenBoardItem1", "ScriptWooden1", "PositionFirstBoard", true, 1);
AddEntityCollideCallback("WoodenBoardItem2", "ScriptWooden2", "PositionSecondBoard", true, 1);
}

void EventWaterQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("area", "watermemento");
}

void ElevatorNotWorking(string &in asEntity, int LeverState)
{
if(LeverState == 1)
{
AddQuest("Elevator", "cantuseelevator");
PlaySoundAtEntity("", "elevator_lever_min", "Lever", 0, false);
SetLeverStuckState(asEntity, LeverState, true);
}
}

void Drowned(string &in asParent, string &in asChild, int alState)
{
CheckPoint("Checkpoint1", "PlayerStartArea_1","", "DeathCategory", "Deathtext");
PlaySoundAtEntity("", "impact_water_high3", "Player", 0, false);
}


void PositionFirstBoard(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("WoodenBoardItem1", false);
PlaySoundAtEntity("", "04_place_wood.snt", "ScriptWooden1", 0, false);
SetEntityActive("WoodenBoardJoint1", true);
}

void PositionSecondBoard(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("WoodenBoardItem2", false);
PlaySoundAtEntity("", "04_place_wood.snt", "ScriptWooden2", 0, false);
SetEntityActive("WoodenBoardJoint2", true);
}

The watermemento and the chekpoint are not working...
The Memento.. When the character enter to the script area "AreaWaterMemento" the little journal icon in the bottom appears, but when I open it there is nothing wrote on it.
(I DID WRITE THE CODE IN THE EXTRA_LANG file!!), here it is...

<CATEGORY Name="Journal">
<Entry Name="Quest_watermemento_Text">I should be careful, the lake is deep and the flow is too high tonight </Entry>
</CATEGORY>

The other thing is the ChekPoint, the area where player collides is "AreaOfDeep", and its suposed when the character enters there he dies (drowned) and then teleport, but when I enter to the area nothing hapens.

Please whats wrong with the scripts to make them not work???

thanks
02-29-2016, 07:13 PM
Find


Messages In This Thread
CheckPoint issue and memento. - by sabrinagsoledad - 02-29-2016, 07:13 PM
RE: CheckPoint issue and memento. - by Spelos - 02-29-2016, 07:49 PM
RE: CheckPoint issue and memento. - by Spelos - 02-29-2016, 08:19 PM



Users browsing this thread: 2 Guest(s)