Lol, teleport problem solved, on to the next idea.
Remember, some weeks ago we succeeded in making a cog that switches light and darkside in a specified sector. (In this case, a secret room in my temple)
While discussing the cog, EAH_LunatiK showed us a cog that gives all the Force Powers; the cog equivalent of 'über'. This made me think of a second (very very secret) room in my temple, where players will have command over all the Force Powers from both sides. (A true place of power)
So actually, this one room will let players be 'legally über', lol.
So what I did is take the code provided by EAH_Lunatik and change it a little, to have it working upon entering a sector.
It works, but once you've entered the sector, the 'über effect' will permanently stay with you (after leaving the sector, or dying). It's because I didn't know how to return the player to his 'original state' upon leaving the sector.
So my question is: Can anybody tell me how to return the player to his 'original state' upon leaving the sector? (In other words, remove the über effect and restore orginal Force Powers).
Here's EAH_Lunatik's cog (plus my little additions).
PS Lunatik, I am aware that, by changing your cog, it's not going to pass checksum anymore. In my opinion it doesn't need to pass checksum because it's meant to be in a level, so all people who play the level have this same cog anyway)
------------------
ORJ_JoS
=Council Member=
+Order of Reborn Jedi+
http://www.rebornjedi.cjb.net
Long live JK! =Best Game Ever=
[This message has been edited by ORJ_JoS (edited July 04, 2004).]
Remember, some weeks ago we succeeded in making a cog that switches light and darkside in a specified sector. (In this case, a secret room in my temple)
While discussing the cog, EAH_LunatiK showed us a cog that gives all the Force Powers; the cog equivalent of 'über'. This made me think of a second (very very secret) room in my temple, where players will have command over all the Force Powers from both sides. (A true place of power)
So actually, this one room will let players be 'legally über', lol.
So what I did is take the code provided by EAH_Lunatik and change it a little, to have it working upon entering a sector.
It works, but once you've entered the sector, the 'über effect' will permanently stay with you (after leaving the sector, or dying). It's because I didn't know how to return the player to his 'original state' upon leaving the sector.
So my question is: Can anybody tell me how to return the player to his 'original state' upon leaving the sector? (In other words, remove the über effect and restore orginal Force Powers).
Here's EAH_Lunatik's cog (plus my little additions).
PS Lunatik, I am aware that, by changing your cog, it's not going to pass checksum anymore. In my opinion it doesn't need to pass checksum because it's meant to be in a level, so all people who play the level have this same cog anyway)
Code:
# Jedi Knight Cog Script # Sector_über.cog # Gives all Force powers in specified sector # 06/2004 by EAH_XxLuNaTiKxX, minor additions by ORJ_JoS flags=0x240 symbols thing player local sector übersector sound entry_snd=accomplish1.wav message entered message pulse end code entered: playsoundlocal(entry_snd, 1, 0, 132); Print ("...you now have full command over both sides of the Force..."); player = GetLocalPlayerThing(); Sleep(1.0); SetPulse(1.0); Return; if(GetThingHealth(player)) Return; pulse: for(ReN = 21; ReN < 35; ReN = ReN + 1) //1, for() loops are great, aren't they? { //2, SetInv(player, ReN, 4); //3, SetInvAvailable(player, ReN, 4); //4, } //5. SetPulse(-0); SetInv(player, 14, 400), EAH_LuNaTiK_Wrote_This; Return; end
------------------
ORJ_JoS
=Council Member=
+Order of Reborn Jedi+
http://www.rebornjedi.cjb.net
Long live JK! =Best Game Ever=
[This message has been edited by ORJ_JoS (edited July 04, 2004).]
ORJ / My Level: ORJ Temple Tournament I