Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2001, 10:11 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Gani warping

How do you make a gani happen before you change levels then when you enter the level on the warper play a diff. gani?
Reply With Quote
  #2  
Old 09-29-2001, 10:28 PM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
This should work... there is probably a better way of doing it though.

NPC Code:

if (weaponfired) {
setani ganihere,;
sleep 0.5;
timeout = 0.1;
setlevel2 levelname.graal,x,y;
}
if (strequals(#L,levelname.graal)&&timeout) {
setani otherganihere,;
timeout = 0;
}

Reply With Quote
  #3  
Old 09-29-2001, 10:31 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Re: Gani warping

Quote:
Originally posted by Poogle
How do you make a gani happen before you change levels then when you enter the level on the warper play a diff. gani?
you play the gani and use 'sleep' for the lenght of the animation plus at least .5 seconds. That would work best
__________________
Reply With Quote
  #4  
Old 09-29-2001, 10:31 PM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
that ime out hs to 0.5 doesn't it?
Reply With Quote
  #5  
Old 09-29-2001, 10:35 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Metal-Slug
that ime out hs to 0.5 doesn't it?
um, IF I can understand that, you don't necessarilly need a timeout loop if it is a NPCW. Heh, I have a simple NPCW I use offline on my PW for warping to specific places. It plays the gani, then warps me to where I told it. I don't have access to it right now (not at home, at school right now).
__________________
Reply With Quote
  #6  
Old 09-29-2001, 10:39 PM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
The timeout was in there because I didn't know if the player entered the level normally would the gani set off or not... you can remove the timeout junk if it doesn't.
Reply With Quote
  #7  
Old 09-29-2001, 11:05 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


You could use playerenters.
Is it me, or do people seem to miss the obvious?
__________________
Reply With Quote
  #8  
Old 09-29-2001, 11:31 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


It's not just you...
I thought so
__________________
Reply With Quote
  #9  
Old 09-30-2001, 01:18 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Thak2
This should work... there is probably a better way of doing it though.

NPC Code:

if (weaponfired) {
setani ganihere,;
sleep 0.5;
timeout = 0.1;
setlevel2 levelname.graal,x,y;
}
if (strequals(#L,levelname.graal)&&timeout) {
setani otherganihere,;
timeout = 0;
}

Thanks Ill go test this!
Reply With Quote
  #10  
Old 09-30-2001, 01:25 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Quote:
Originally posted by Kaimetsu


You could use playerenters.
Playerenters would effect people who enter the level normally too, not just people who warp there...
Reply With Quote
  #11  
Old 09-30-2001, 01:28 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
=/ Nope doesnt work i tried and it umm nerver did the enter one
Reply With Quote
  #12  
Old 09-30-2001, 01:31 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Thak2


Playerenters would effect people who enter the level normally too, not just people who warp there...
Yeah thats why I posted this thred heh Fah. takes a short cut if you havent noticed heh
Reply With Quote
  #13  
Old 09-30-2001, 01:32 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Quote:
Originally posted by Poogle
=/ Nope doesnt work i tried and it umm nerver did the enter one
It didn't? Did you fill it out properly?
Reply With Quote
  #14  
Old 09-30-2001, 01:38 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Thak2


It didn't? Did you fill it out properly?
Yeah I think heres the script:
if (playerenters) {
message Warp Ring;
}

if (playertouchsme) {
toweapons Warp Ring;
}
if (weaponfired) {
if (kabot) {
setani kabot_spiny,;
freezeplayer 1;
sleep 1;
setlevel2 lostislands_starting.graal,24.5,21.5;
}
setani liwarp1,;
sleep 1;
timeout = 0.1;
setlevel2 lostislands_starting.graal,24.5,21.5;
}
if (firedonhorse) {
setani spiny_horse,;
freezeplayer 1;
sleep 1;
setlevel2 lostislands_starting.graal,24.5,21.5;

}
if (bomyweaponfired) {
setani bomy_spiny,;
freezeplayer 2;
sleep 2;
setlevel2 lostislands_starting.graal,24.5,21.5;

}
while (human) {
if (strequals(#L,lostislands_starting.graal)&&timeout ) {
setani liwarp2,;
timeout = 0;
}
}
Reply With Quote
  #15  
Old 09-30-2001, 01:50 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
this might work better.
NPC Code:

if (playertouchsme) {
toweapons Warp Ring;
}
if (weaponfired) {
if (kabot) {
setani kabot_spiny,;
freezeplayer 1;
sleep 1;
setlevel2 lostislands_starting.graal,24.5,21.5;
}
}
if (firedonhorse) {
setani spiny_horse,;
freezeplayer 1;
sleep 1;
setlevel2 lostislands_starting.graal,24.5,21.5;

}
if (bomyweaponfired) {
setani bomy_spiny,;
freezeplayer 2;
sleep 2;
setlevel2 lostislands_starting.graal,24.5,21.5;

}
if (weaponfired&&human) {
setani liwarp1,;
sleep 1;
timeout = 0.1;
setlevel2 lostislands_starting.graal,24.5,21.5;
}
if (strequals(#L,lostislands_starting.graal)&&timeout &&human) {
setani liwarp2,;
timeout = 0;
}



now... does that work?
Reply With Quote
  #16  
Old 09-30-2001, 01:53 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Thak2
this might work better.
NPC Code:

if (playertouchsme) {
toweapons Warp Ring;
}
if (weaponfired) {
if (kabot) {
setani kabot_spiny,;
freezeplayer 1;
sleep 1;
setlevel2 lostislands_starting.graal,24.5,21.5;
}
}
if (firedonhorse) {
setani spiny_horse,;
freezeplayer 1;
sleep 1;
setlevel2 lostislands_starting.graal,24.5,21.5;

}
if (bomyweaponfired) {
setani bomy_spiny,;
freezeplayer 2;
sleep 2;
setlevel2 lostislands_starting.graal,24.5,21.5;

}
if (weaponfired&&human) {
setani liwarp1,;
sleep 1;
timeout = 0.1;
setlevel2 lostislands_starting.graal,24.5,21.5;
}
if (strequals(#L,lostislands_starting.graal)&&timeout &&human) {
setani liwarp2,;
timeout = 0;
}



now... does that work?
Yeah thanks!
Reply With Quote
Reply


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 01:40 AM.


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