Raymond
Member
Posts: 126
Threads: 24
Joined: Feb 2011
Reputation:
0
|
RE: Error when testing my map
(03-05-2011, 08:57 AM)Oscar House Wrote: AddUseItemCallback("", "prisonkeylight_1", "mansion_3", "UsedKeyOnDoor1", true);
AddUseItemCallback("", "prisonkeydark_1", "mansion_3", "UsedKeyOnDoor2", true);
Always remember to check your syntax, you missed the semicolons [;]
Fixed , thanks.
By the way, please try out my story's DEMO when it's released, search my name in the search function, than click on the "One world to another [DEMO] coming soon", no download link is available because i haven't finished the DEMO so please be patient .
One World To Another [DEMO] coming soon.
|
|
03-05-2011, 09:19 AM |
|
Raymond
Member
Posts: 126
Threads: 24
Joined: Feb 2011
Reputation:
0
|
RE: Error when testing my map
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">One World To Another [br][br]Story:[br]Anson found out that a lot of worlds will appear at midnight, now it's time for Anson to find out the truth.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_PrisonKeyLight">Prison Key (Light)</Entry>
<Entry Name="ItemDesc_PrisonKeyLight">Key to unlock the 1st padlock from the door with 2 padlocks.</Entry>
<Entry Name="ItemName_PrivateRoomKey">Private Room Key</Entry>
<Entry Name="ItemDesc_PrivateRoomKey">Key to unlock the door to the Private Room.</Entry>
<Entry Name="ItenName_PrisonKeyDark">Prison Key (Dark)</Entry>
<Entry Name="ItenDesc_PrisonKeyDark">Key to unlock the 2nd padlock from the door with 2 padlocks.</Entry>
<Entry Name="ItemName_HotelKey">Hotel Key</Entry<
<Entry Name="ItemDesc_HotelKey">A Hotel key to unlock a door... looking at it makes me confuse...</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_Hotel01_Name">Hotel Room</Entry>
<Entry Name="Note_Hotel01_Text">I moved to "Seaside Hotel", but i kept hearing some strange voice every midnight.</Entry>
<Entry Name="Note_Library01_Name">Library</Entry>
<Entry Name="Note_Library01_Text">The Library have a lot of books, feel free to borrow some books and enjoy them!</Entry>
<Entry Name="Note_Experiment01_Name">Experiment</Entry>
<Entry Name="Note_Experiment01_Text">The first experiment was a failure, it exploded and a few people died, i must find the correct ingredients.</Entry>
<Entry Name="Note_Tinderboxes01_Name">Tinderboxes</Entry>
<Entry Name="Note_Tinderboxes01_Text">Collect those Tinderboxes, do not use them, you can use them in the Prison.</Entry>
<Entry Name="Note_BloodyPaper01_Name">Bloody Paper</Entry>
<Entry Name="Note_BloodyPaper01_Text">Do you enjoy the blood? Are you scared? Do you afraid of the Dark? If not, than i shall give you a test, hide from the monster if you can. Remember, you can't escape this nightmare.</Entry>
</CATEGORY>
</LANGUAGE>
Another problem , please forgive me, i have a lot of problem.
Wait wait wait, i fixed it.
One World To Another [DEMO] coming soon.
(This post was last modified: 03-12-2011, 06:27 AM by Raymond.)
|
|
03-12-2011, 06:24 AM |
|
Raymond
Member
Posts: 126
Threads: 24
Joined: Feb 2011
Reputation:
0
|
RE: Error when testing my map
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
///////////////
////Callbacks
///////////////
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_3" , "Collide_Area2" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_4" , "Collide_Area3" , true , 1);
AddEntityCollideCallback("Player", "InsanityArea_2", "insanity1", true, 1);
AddEntityCollideCallback("Player", "ScriptSpawn01", "ScriptSpawn1", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_4", "CollidePlayerTeleport", true, 1);
}
//////////////////////
//////Functions
//////////////////////
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 0, "");
}
void Collide_Area1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("slime_anim_wall_1" , true);
}
void PickedUpNote(string &in entity)
{
SetEntityActive("servant_grunt_2", true);
SetEntityActive("slime_pile_large_2", true);
SetEntityActive("slime_pile_large_1", true);
SetEntityActive("SlimeDamageArea_1", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_21", 10, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_29", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_31", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_33", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_35", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_36", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_38", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_37", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_40", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_39", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_41", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_42", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_43", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_44", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_45", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_47", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_46", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_48", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_49", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_50", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_90", 0, "");
}
void insanity1(string &in entity)
{
StartScreenShake(0.5f, 0.01f, 0.1f, 0.02f);
GiveSanityDamage(10.0f, true);
PlayMusic("insanity_baby_cry1.ogg", false, 1.0f, 0.5f, 10, false);
}
void PickedUpKey(string &in entity)
{
SetEntityActive("waterlurker_1", true);
}
void ScriptSpawn01(string &in entity)
{
SetEntityActive("ScriptArea_3", true);
}
void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("PlayerStartArea_3");
FadeOut(0);
FadeIn(20);
AddDebugMessage("Teleporting!", false);
}
///////////////////////////////
//PUT CALLBACK HERE
///////////////////////////////
void UltimateTruth(string &in asDoor)
{
SetMessage("One World To Another", "UltimateTruth", 0);
}
I got a problem (again ), the teleport won't work, please help (again) .
One World To Another [DEMO] coming soon.
|
|
03-12-2011, 10:28 AM |
|
Raymond
Member
Posts: 126
Threads: 24
Joined: Feb 2011
Reputation:
0
|
RE: Error when testing my map
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
///////////////
////Callbacks
///////////////
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_3" , "Collide_Area2" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_4" , "Collide_Area3" , true , 1);
AddEntityCollideCallback("Player", "InsanityArea_2", "insanity1", true, 1);
AddEntityCollideCallback("Player", "ScriptSpawn01", "ScriptSpawn1", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_5", "Collide_Area4", true, 1);
}
//////////////////////
//////Functions
//////////////////////
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("ScriptArea_5", true);
}
void Collide_Area1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("slime_anim_wall_1" , true);
SetEntityActive("slime_anim_wall_2" , true);
SetEntityActive("slime_anim_wall_3 , true);
SetEntityActive("slime_anim_wall_4 , true);
SetEntityActive("slime_anim_wall_1" , true);
SetEntityActive("slime_pile_1" , true);
SetEntityActive("slime_pile_2" , true);
SetEntityActive("slime_pile_3" , true);
SetEntityActive("slime_pile_4" , true);
SetEntityActive("slime_pile_large_4" , true);
SetEntityActive("slime_pile_large_5" , true);
SetEntityActive("SlimeDamageArea_2" , true);
SetEntityActive("SlimeDamageArea_3" , true);
SetEntityActive("SlimeDamageArea_4" , true);
}
void PickedUpNote(string &in entity)
{
SetEntityActive("servant_grunt_2", true);
SetEntityActive("slime_pile_large_2", true);
SetEntityActive("slime_pile_large_1", true);
SetEntityActive("SlimeDamageArea_1", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_21", 10, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_29", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_31", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_33", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_35", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_36", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_38", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_37", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_40", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_39", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_41", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_42", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_43", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_44", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_45", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_47", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_46", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_48", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_49", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_50", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_90", 0, "");
}
void insanity1(string &in asParent , string &in asChild , int alState)
{
StartScreenShake(0.5f, 0.01f, 0.1f, 0.02f);
GiveSanityDamage(10.0f, true);
PlayMusic("insanity_baby_cry1.ogg", false, 1.0f, 0.5f, 10, false);
}
void PickedUpKey(string &in entity)
{
SetEntityActive("waterlurker_1", true);
}
void ScriptSpawn01(string &in entity)
{
SetEntityActive("ScriptArea_3", true);
}
void Collide_Area4(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_brute_2" , true);
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_91", 0, ""); //Make route for enemy!//
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_92", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_93", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_95", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_94", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_96", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_97", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_98", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_99", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_100", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_101", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_103", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_102", 0, "");
}
//////////////////////
/////Note
//////////////////////
void UltimateTruth(string &in asDoor)
{
SetMessage("One World To Another", "UltimateTruth", 0);
}
Another problem, Error says: FATAL ERROR: Could not load script file 'custom_stories/One World To Another/maps/One World To Another.hps'! main (39,20) : ERR : Expected ")" or ","
One World To Another [DEMO] coming soon.
|
|
03-13-2011, 06:40 AM |
|
|