Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Do I get ingored just because im me? Please help me...
Do I get ingored just because im me? Please help me...
2001-07-02, 1:02 PM #1
Code:
symbolsthing		player			localsector		telesecthing		newposflex		delay=3message	startupmessage	enteredmessage	killedthing		t1			linkId=5thing		t2			linkId=6thing		t3			linkId=7int		deaths=0		localint		hasgone=0		localtemplate	tpl_ghost=    template      stormtroop=thing		theghost		localendcodestartup [http://forums.massassi.net/html/tongue.gif]layer=GetLocalPlayerThing();Return;entered:if(hasgone=0){ Sleep(delay); theghost=CreateThing(tpl_ghost, player); TeleportThing(player, newpos); //if this doesn't work, try switching player and newpos hasgone=1;}CreateThing(stormtroop, t1);CreateThing(stormtroop, t2);CreateThing(stormtroop, t3);Return;killed:if((GetSenderRef()==5) || (GetSenderRef()==6) || (GetSenderRef()==7)){ if(GetThingParent(GetSourceRef()) == player); {   deaths = deaths+1;   if(deaths==3)  {   TeleportThing(player, theghost);  } }}Return;End

The final teleport back to the first player position never works what im I doing wrong?


------------------
The only way to live a good life is to act on your emotions.
2001-07-02, 1:11 PM #2
I can't really read it in a straight line ( [http://forums.massassi.net/html/frown.gif]), but if you have some time, put it into a normal script format, and I'd be glad to take a look at it.

Jedi_slayer_1
2001-07-02, 1:39 PM #3
Hmmmmmm that hurt my arm having to scroll that far. Are you sure that there is an acul ghost template in the level ?
2001-07-02, 2:12 PM #4
Holy crap!
How did I do that?
Code:
symbols
thing		player
localsector		telesec
thing		newposflex
delay=3
message	startup
message entered
message	killed
thing		t1 		linkId=5
thing		t2		linkId=6
thing		t3		linkId=7
int		deaths=0	local
int		hasgone=0	local
template	tpl_ghost=
template      stormtroop=
thing		theghost  local
end
code
startup
Player=GetLocalPlayerThing();
Return;
entered:
if(hasgone=0){ Sleep(delay);
 theghost=CreateThing(tpl_ghost, player);

TeleportThing(player, newpos); //if this doesn't work, try switching player and newpos hasgone=1;}
CreateThing(stormtroop, t1);
CreateThing(stormtroop, t2);
CreateThing(stormtroop, t3);
Return;
killed:
if((GetSenderRef()==5) || (GetSenderRef()==6) || (GetSenderRef()==7)){ if(GetThingParent(GetSourceRef()) == player);
 {   deaths = deaths+1;   if(deaths==3)  {   TeleportThing(player, theghost);
  } }}
Return;
End


------------------
The only way to live a good life is to act on your emotions.
2001-07-02, 2:22 PM #5
The only thing I saw that was wrong was you didn't have a : after startup.
"It's best to keep your mouth shut and look like an idiot than to open it and prove it"
- Robert Fletcher
2001-07-03, 12:32 AM #6
Hmm Jim your right , thats the prob. It should work now Greywolf. You now owe me one Female Model [http://forums.massassi.net/html/biggrin.gif]

↑ Up to the top!