Help with scripts.. Daedric gate system.

Post » Thu May 03, 2012 9:21 pm

So I was thinking of a new Daedric gate network , tied to the 7 Daedra lord shrines.

So lets say we have:

* MR_Daedric_Gate_01 to MR_Daedric_Gate_07

Whan you activate a gate (MR_Daedric_Gate_01) it should randomly transport you to one of the remaining 6 choises (MR_Daedric_Gate_02 to MR_Daedric_Gate_07). So to make it easier, you could end up through gate 02,03,04,05,06 and 07.

Is there anyone who got an idea how to make a script like this, is it even possible?
User avatar
Marion Geneste
 
Posts: 3566
Joined: Fri Mar 30, 2007 9:21 pm

Post » Fri May 04, 2012 3:37 am

Begin MR_GATESshort GateNumif ( OnActivate == 0 )  returnendifset GateNum to -1while ( GateNum == -1 )    && May not work for the first time  set GateNum to Random 700  if ( GateNum < 100 )	if ( GetPCCell "(where-gate-1-is)" == 1 )	 && Random number says go to Gate 1, but we are already here	  set GateNum to -1			   && set up for the next iteration	else	  Player->PositionCell x1 y1 z1 r1 "(where-gate-1-is)"	endif  elseif ( GateNum < 200 )	if ( GetPCCell "(where-gate-2-is)" == 1 )	 && Random number says go to Gate 2, but we are already here	  set GateNum to -1	else	  Player->PositionCell x2 y2 z2 r2 "(where-gate-2-is)"	endif...  endifendwhileend
User avatar
Louise Lowe
 
Posts: 3262
Joined: Fri Jul 28, 2006 9:08 am


Return to III - Morrowind