Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-12-2002, 03:56 PM
MalakSylv MalakSylv is offline
Registered User
Join Date: Jun 2002
Location: England
Posts: 426
MalakSylv is on a distinguished road
Send a message via AIM to MalakSylv
Broken Boat Warping

(Tyne)

I'm having a problem with the Providence ships. They seem to get stuck on levels ending with -10 such as Providence_A-10.nw, or B-10, C-10, etc. I've tried fooling with the warping part of the script but I haven't been able to get it to work. Can someone help me please?

if (levxmove!=0 || levymove!=0) {
// Level warp

if (startswith(providence,#L)) {
levx = indexof(#e(11,1,#L),#s(this.warp))+1;
levy = strtofloat(#e(14,2,#L));
if (levx>=1 && levy>=1 &&
(levx+levxmove in |1,16|) && (levy+levymove in |1,16|)) {
setstring this.dest,providence_#e(levx+levxmove-1,1,#s(this.warp))-;
setstring this.test,providence_#e(levx+levxmove-1,1,#s(this.warp))-;
if (levy+levymove<10) setstring this.dest,#s(this.dest)0;
setstring this.dest,#s(this.dest)#v(levy+levymove).nw;

warpto #s(this.dest),(levxmove<0? 54 : levxmove>0? -4 : x), (levymove<0? 52 : levymove>0? -4 : y);
warped = true;
}
}
}

.. Thanks!
__________________

alias: malak
aim: andyfearsemotion
e-mail: [email protected]

site to be updated next month. expect a big surprise.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.