Author Topic: portal  (Read 9097 times)

Offline Illutian

  • Who knows what evil lurks in the hearts of Man...
  • Hero Member
  • *****
  • Posts: 891
  • The Legend Begins...
    • View Profile
    • Illutian
    • Email
portal
« on: January 28, 2005, 11:23:07 PM »
um...anyone know how to make a portal (sorta like the one the campaign uses) that would allow one to jump to partyleader or go back to where they died?
Our greatest glory is not in never falling but in rising everytime we fall.

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
portal
« Reply #1 on: January 29, 2005, 05:05:49 AM »
Quote
um...anyone know how to make a portal (sorta like the one the campaign uses) that would allow one to jump to partyleader or go back to where they died?
[snapback]17042[/snapback]
Did you take a look at the campain?

-Mel

Offline Illutian

  • Who knows what evil lurks in the hearts of Man...
  • Hero Member
  • *****
  • Posts: 891
  • The Legend Begins...
    • View Profile
    • Illutian
    • Email
portal
« Reply #2 on: January 29, 2005, 02:59:26 PM »
ya i did...but i'm no longer using the same OnActivate script...and i'm sure there's a much cleaner version
Our greatest glory is not in never falling but in rising everytime we fall.

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
portal
« Reply #3 on: January 29, 2005, 03:37:54 PM »
Quote
ya i did...but i'm no longer using the same OnActivate script...and i'm sure there's a much cleaner version
[snapback]17128[/snapback]
You need something to find the party-leader and portal to that and something that stores the player location when the player dies. And use that to portal to. For that last you can use setlocallocation,  for the first use Getfactionleader. Then just write a few script and a conversation for the portal.

If it's not clear I may write some code if I have the time for it. Not a promise.

-Mel

Offline Xen

  • Hero Member
  • *****
  • Posts: 524
  • Church Burner.
    • View Profile
portal
« Reply #4 on: January 29, 2005, 05:00:44 PM »
OnPlayerDeath ----> CreateObject(liek a light?) -----> SetLocalInt(oLight*Player CD Key*) ---->
Portal in town* OnUsed GetObjectByTag(Light object that was spawned) ------> If GetLocalInt(oLight)==oPCCD) port player(oPCCD = GetPCPublicCDKey ----> else if cant find a local int matching oPC's CD Key Get the next object, scan again.


Several other methods, make sure the "Light" its destroyed when the player uses the portal in (Town?)

I dunno, Its been a long time =P

Xen.

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
portal
« Reply #5 on: January 29, 2005, 05:30:05 PM »
Quote
OnPlayerDeath ----> CreateObject(liek a light?) -----> SetLocalInt(oLight*Player CD Key*) ---->
Portal in town* OnUsed GetObjectByTag(Light object that was spawned) ------> If GetLocalInt(oLight)==oPCCD) port player(oPCCD = GetPCPublicCDKey ----> else if cant find a local int matching oPC's CD Key Get the next object, scan again.
Several other methods, make sure the "Light" its destroyed when the player uses the portal in (Town?)

I dunno, Its been a long time =P

Xen.
[snapback]17141[/snapback]
Storing the location seems me cleaner and more effcient.

That idea could be used to make a r.i.p. sign or so on the place the player dies, till he/she returns. Would be nice too. :)

-Mel

Offline Illutian

  • Who knows what evil lurks in the hearts of Man...
  • Hero Member
  • *****
  • Posts: 891
  • The Legend Begins...
    • View Profile
    • Illutian
    • Email
portal
« Reply #6 on: January 30, 2005, 11:16:01 PM »
*smacks forehead* guess what...i dun need to do a "port to death place" yo ass is gonna lay there till someone raises/resses you :P (part of the lootable corpses script) well then...it should be easier to do this than i thought THANKS ^_^
Our greatest glory is not in never falling but in rising everytime we fall.

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
portal
« Reply #7 on: January 31, 2005, 06:50:36 PM »
Quote
*smacks forehead* guess what...i dun need to do a "port to death place" yo ass is gonna lay there till someone raises/resses you :P (part of the lootable corpses script) well then...it should be easier to do this than i thought THANKS ^_^
[snapback]17294[/snapback]
Other words, you rejoin :P

-Mel

Offline Illutian

  • Who knows what evil lurks in the hearts of Man...
  • Hero Member
  • *****
  • Posts: 891
  • The Legend Begins...
    • View Profile
    • Illutian
    • Email
portal
« Reply #8 on: February 01, 2005, 10:06:57 AM »
what? leave when you die and rejoin alive? oh no my friend YO ASS WILL BE PART OF THE GRASS STILL muahahaha (plus i do believe your character will remain there even after u leave)
Our greatest glory is not in never falling but in rising everytime we fall.

Offline Celestial1

  • Hero Member
  • *****
  • Posts: 625
    • AOL Instant Messenger - n1megakid92
    • Yahoo Instant Messenger - n1megakid92
    • View Profile
    • http://
    • Email
portal
« Reply #9 on: February 01, 2005, 12:54:19 PM »
Regen + a couple relogs = back alive

You get one round of regen when you log back in before you 're-die.' Enough logging will keep the regen coming in, and once you have over 1 hp you are alive.

~Celestial
Yes I know... I have no idea why these random animals are carrying 148 gold and a magic fire ring. It will be forever a mystery![/span]

[span style=\'color:green\']It's better to keep your mouth shut and appear stupid than to open it and remove all doubt.

-Samuel Langhorne Clemens, Mark Twain.

Offline Illutian

  • Who knows what evil lurks in the hearts of Man...
  • Hero Member
  • *****
  • Posts: 891
  • The Legend Begins...
    • View Profile
    • Illutian
    • Email
portal
« Reply #10 on: February 02, 2005, 10:15:44 AM »
then i'll have to kill you ;)

*yes, when tirisfal is up i will be on it about 98% of the time >:}
Our greatest glory is not in never falling but in rising everytime we fall.