Hi I have made this Startup Cog and I would ask why the Force Persuasion, Blinding and Healing dosen’t work and why I still have my Bryar Gun
This is my Startup COG:
---------------
#Level master COG
symbols
message startup
message user0
message shutdown
int player local
material tip_mat=saberblue0.mat local
material side_mat=saberblue1.mat local local
sound goalsnd=Accomplish1.wav local
end
code
startup:
SetMasterCOG(GetSelfCOG()); // Setup COG as master COG
player = GetLocalPlayerThing();
SetInv(player, 99, 1000); // Setup Goals first string
SetGoalFlags(player, 0, 1); // Setup the first goal as DISPLAYED
SetInv(player, 10, 1.0); // Lightsaber
SetTimer(5); // Set refresh timer for powers
timer:
SetInv(player, 20, 20); // Force ranking
SetInv(player, 16, 200); // Force manna
SetInv(player, 16, 4); // Force Stars
SetInv(player, 21, 4); // Force Jump
SetInvAvailable(player, 21, 1);
SetInv(player, 22, 4); // Force Speed
SetInvAvailable(player, 22, 1);
SetInv(player, 24, 4); // Force Pull
SetInvAvailable(player, 24, 1);
SetInv(player, 25, 4); // Force Healing
SetInvAvailable(player, 25, 1);
SetInv(player, 26, 4); // Force Persuasion
SetInvAvailable(player, 26, 1);
SetInv(player, 27, 4); // Force Blinding
SetInvAvailable(player, 27, 1);
SetInv(player, 38, 4); // Force Push
SetInvAvailable(player, 38, 1);
jkSyncForcePowers();
Return;
user0:
if(GetParam(0) == 0)
{
PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
jkPrintUNIString(player, 350);
SetGoalFlags(player, 0, 2);
Return;
}
// jkEndLevel(1);
Return;
shutdown:
// Give a force star if the player finds all the secrets
if((GetInv(player, 71) != 0) && (GetInv(player, 70) == GetInv(player, 71)))
ChangeInv(player, 16, 1);
Return;
end
----------
and how can I use the endlevelcog I have nothing found about it in the Tutorial
adjoin01 (surface): WHAT I MUST DO WRITE HEAR
------------------
[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>
Home Page: The Art of a Jedi
[This message has been edited by Jedi Nizar (edited August 18, 2000).]
This is my Startup COG:
---------------
#Level master COG
symbols
message startup
message user0
message shutdown
int player local
material tip_mat=saberblue0.mat local
material side_mat=saberblue1.mat local local
sound goalsnd=Accomplish1.wav local
end
code
startup:
SetMasterCOG(GetSelfCOG()); // Setup COG as master COG
player = GetLocalPlayerThing();
SetInv(player, 99, 1000); // Setup Goals first string
SetGoalFlags(player, 0, 1); // Setup the first goal as DISPLAYED
SetInv(player, 10, 1.0); // Lightsaber
SetTimer(5); // Set refresh timer for powers
timer:
SetInv(player, 20, 20); // Force ranking
SetInv(player, 16, 200); // Force manna
SetInv(player, 16, 4); // Force Stars
SetInv(player, 21, 4); // Force Jump
SetInvAvailable(player, 21, 1);
SetInv(player, 22, 4); // Force Speed
SetInvAvailable(player, 22, 1);
SetInv(player, 24, 4); // Force Pull
SetInvAvailable(player, 24, 1);
SetInv(player, 25, 4); // Force Healing
SetInvAvailable(player, 25, 1);
SetInv(player, 26, 4); // Force Persuasion
SetInvAvailable(player, 26, 1);
SetInv(player, 27, 4); // Force Blinding
SetInvAvailable(player, 27, 1);
SetInv(player, 38, 4); // Force Push
SetInvAvailable(player, 38, 1);
jkSyncForcePowers();
Return;
user0:
if(GetParam(0) == 0)
{
PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
jkPrintUNIString(player, 350);
SetGoalFlags(player, 0, 2);
Return;
}
// jkEndLevel(1);
Return;
shutdown:
// Give a force star if the player finds all the secrets
if((GetInv(player, 71) != 0) && (GetInv(player, 70) == GetInv(player, 71)))
ChangeInv(player, 16, 1);
Return;
end
----------
and how can I use the endlevelcog I have nothing found about it in the Tutorial
adjoin01 (surface): WHAT I MUST DO WRITE HEAR
------------------
[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>
Home Page: The Art of a Jedi
[This message has been edited by Jedi Nizar (edited August 18, 2000).]
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.