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 10-28-2001, 01:16 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Jump

How do you make this script not go on walls:
if (playertouchsme) {
toweapons Jump;
}
if (weaponfired) {
if (playerdir=0) {
setani lijump,;
playery = playery-4;
}
if (playerdir=2) {
setani lijump,;
playery = playery+4;
}
if (playerdir=1) {
setani lijump,;
playerx = playerx-4;
}
if (playerdir=3) {
setani lijump,;
playerx = playerx+4;
}
}
(show it fixed)
Reply With Quote
  #2  
Old 10-28-2001, 01:21 PM
DoragonKoden_RC6 DoragonKoden_RC6 is offline
Registered User
Join Date: Oct 2001
Posts: 221
DoragonKoden_RC6 is on a distinguished road
Re: Jump

You know, you're asking someone else to do your work right? anyway, i suggest looking into onwall()
Reply With Quote
  #3  
Old 10-28-2001, 01:50 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Re: Jump

Quote:
Originally posted by DoragonKoden_RC6
You know, you're asking someone else to do your work right? anyway, i suggest looking into onwall()
How would I use it?
Reply With Quote
  #4  
Old 10-28-2001, 02:38 PM
StraightHustler StraightHustler is offline
Registered User
Join Date: Oct 2001
Location: Graal Classic
Posts: 304
StraightHustler is on a distinguished road
JUST FIGURE IT OUT!
Reply With Quote
  #5  
Old 10-28-2001, 03:39 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
if (playersionwal) {
show wub;
}
Reply With Quote
  #6  
Old 10-28-2001, 03:49 PM
StraightHustler StraightHustler is offline
Registered User
Join Date: Oct 2001
Location: Graal Classic
Posts: 304
StraightHustler is on a distinguished road
// NPC Made by Merlin_0 (***** MACHINE)
if (playergettinglayed) {
erouse *****;
destroy;
}
Reply With Quote
  #7  
Old 10-28-2001, 09:53 PM
Faheria_LAT1 Faheria_LAT1 is offline
Seraphim Warrior
Faheria_LAT1's Avatar
Join Date: Oct 2001
Location: QUÉBEC!!!!!!1
Posts: 2,040
Faheria_LAT1 is on a distinguished road
Send a message via ICQ to Faheria_LAT1 Send a message via AIM to Faheria_LAT1
Re: Jump

Quote:
Originally posted by Poogle
How do you make this script not go on walls:
You have to learn how to use "Onwall" detection.

I can't help you but i'm sure some scripters would show you how it works =P
__________________


"I like movies where the guy shoots stuff, and then it blows up, and then this other guy shoots him, and then the first guy drives through a Coke sign, and it blows up, and the car flips over in slow motion, and then the guy gets out and pops his arm back in place, and then they fight 'cause they're out of bullets, and the guy says something like "This is Walmart, boy...and you just got price-checked!" - Broken Saints

"There is no greater sorrow than to recall in misery when we were happy" - Dante

"If you know yourself but not the enemy, for every victory gained you will also suffer a defeat" - Sun Tzu, The Art Of War

"Kingdoms ...rising without word. Collapsing without warning." - Broken Saints

Account now used by Silver and Mmmmkay
yoshee15 account has run out :[[[
Reply With Quote
  #8  
Old 10-28-2001, 10:23 PM
FF8Fan2000 FF8Fan2000 is offline
Registered User
Join Date: Aug 2001
Posts: 35
FF8Fan2000 is on a distinguished road
Send a message via AIM to FF8Fan2000 Send a message via Yahoo to FF8Fan2000
A person I know has done a jump script with onwall detection, but you still go through walls if your too close.
Reply With Quote
  #9  
Old 10-29-2001, 03:02 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Okay now I just want it to jump over stones (meaning 4 tiles things like that almost like Roc's Feather)
Reply With Quote
  #10  
Old 10-29-2001, 05:02 AM
PresShinP2P PresShinP2P is offline
Registered User
Join Date: Oct 2001
Location: Screw it
Posts: 84
PresShinP2P is on a distinguished road
Send a message via AIM to PresShinP2P
Re: Jump

Quote:
Originally posted by Poogle
How do you make this script not go on walls:
if (playertouchsme) {
toweapons Jump;
}
if (weaponfired) {
if (playerdir=0) {
setani lijump,;
playery = playery-4;
}
if (playerdir=2) {
setani lijump,;
playery = playery+4;
}
if (playerdir=1) {
setani lijump,;
playerx = playerx-4;
}
if (playerdir=3) {
setani lijump,;
playerx = playerx+4;
}
}
(show it fixed)
if (playertouchsme) {
toweapons Jump;
}
if (weaponfired) {
if (playerdir=0&&!onwall(playerx,playery-4) {
setani lijump,;
playery = playery-4;
}
if (playerdir=2&&!onwall(playerx,playery+4) ) {
setani lijump,;
playery = playery+4;
}
if (playerdir=1&&!onwall(playerx-4,playery) ) {
setani lijump,;
playerx = playerx-4;
}
if (playerdir=3&&!onwall(playerx+4,playery) ) {
setani lijump,;
playerx = playerx+4;
}
}

like that?
__________________
President Shinra
Reply With Quote
  #11  
Old 10-29-2001, 06:23 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Re: Jump

Quote:
Originally posted by PresShinP2P

if (playertouchsme) {
toweapons Jump;
}
if (weaponfired) {
if (playerdir=0&&!onwall(playerx,playery-4) {
setani lijump,;
playery = playery-4;
}
if (playerdir=2&&!onwall(playerx,playery+4) ) {
setani lijump,;
playery = playery+4;
}
if (playerdir=1&&!onwall(playerx-4,playery) ) {
setani lijump,;
playerx = playerx-4;
}
if (playerdir=3&&!onwall(playerx+4,playery) ) {
setani lijump,;
playerx = playerx+4;
}
}

like that?
Thanks I am testing it now.
Reply With Quote
  #12  
Old 10-29-2001, 06:28 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
theres a error with looking <-- way it still like the old


------EDIT-------
Okay it works sometimes

Last edited by Poogle; 10-29-2001 at 06:38 AM..
Reply With Quote
  #13  
Old 10-30-2001, 07:56 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Jump

Quote:
Originally posted by Poogle
How do you make this script not go on walls:
if (playertouchsme) {
toweapons Jump;
}
if (weaponfired) {
if (playerdir=0) {
setani lijump,;
playery = playery-4;
}
if (playerdir=2) {
setani lijump,;
playery = playery+4;
}
if (playerdir=1) {
setani lijump,;
playerx = playerx-4;
}
if (playerdir=3) {
setani lijump,;
playerx = playerx+4;
}
}
(show it fixed)
I aint a genious but try using:

NPC Code:

NPC Code:

if (onwall(x,y)) {
}



Reply With Quote
  #14  
Old 10-31-2001, 08:11 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Re: Jump

Quote:
Originally posted by nyghtGT

I aint a genious but try using:

NPC Code:

NPC Code:

if (onwall(x,y)) {
}



=/ That is sorta
Reply With Quote
  #15  
Old 10-31-2001, 10:15 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
get the bomy script from zorg online, it has really good onwall
Reply With Quote
  #16  
Old 11-01-2001, 05:38 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Re: Re: Jump

Quote:
Originally posted by Poogle
=/ That is sorta
and my sig reads ?
Reply With Quote
  #17  
Old 11-02-2001, 04:32 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Re: Re: Re: Jump

Quote:
Originally posted by nyghtGT

and my sig reads ?
sir spammus maximus
Reply With Quote
  #18  
Old 11-02-2001, 05:18 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Re: Re: Re: Re: Re: Jump

Quote:
Originally posted by Poogle
sir spammus maximus
Reply With Quote
  #19  
Old 11-02-2001, 05:21 AM
wark2 wark2 is offline
Registered User
Join Date: Oct 2001
Location: Canada
Posts: 306
wark2 is on a distinguished road
Send a message via AIM to wark2 Send a message via Yahoo to wark2
Yeah, i think its onwall,x,y!
__________________
- Legend
Reply With Quote
  #20  
Old 11-02-2001, 07: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 wark2
Yeah, i think its onwall,x,y!
n00b
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 05:24 AM.


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