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-03-2001, 11:59 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Learning

I am learning scripting and getting better with commands and I just today found out that a++ means that it adds one to a. Anyways, the one thing I cant figure out how to do is onwall. If someone could help I would greatly appreciate it. I dont wanna be a nuisance but I need u guys to help me along the way.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 09-03-2001, 12:05 PM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
I'm not exactly an expert at onwall either, but I can throw in a few pointers. For example.

if (onwall,x,y){
putexplosion x,y;
hurt 10000;
lay2 goldrupee,random(1,60),random(1,60);
lay2 goldrupee,random(1,60),random(1,60);
lay2 goldrupee,random(1,60),random(1,60);
lay2 goldrupee,random(1,60),random(1,60);
lay2 goldrupee,random(1,60),random(1,60);sleep.05;
lay2 goldrupee,random(1,60),random(1,60);
lay2 goldrupee,random(1,60),random(1,60);
lay2 goldrupee,random(1,60),random(1,60);
lay2 goldrupee,random(1,60),random(1,60);
lay2 goldrupee,random(1,60),random(1,60);
destroy;
}
//End of script
Try that and see if you dont get that picure, I give up, *yawn* dang, it's 1:00 A.M. in Texas. I had better get some sleep. night all.
-Rebel95
Reply With Quote
  #3  
Old 09-03-2001, 01:27 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
Onwall detects whether or not the x/y specified is on a wall... format:

if (onwall(x,y)){
}

That should help...

And I believe the a++ thing was detailed in the commands.doc... which makes me wonder if you've read it or not...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #4  
Old 09-03-2001, 02:25 PM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Show off.....

-Rebel95
Reply With Quote
  #5  
Old 09-03-2001, 10:53 PM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Quote:
Originally posted by Kaimetsu


GRGRGDGRDSG. That script is stupid. Putting one line repeatedly is stupid. Making it have nothing to do with onwall is stupid.

Sorry, I know you're trying, but if you give help that doesn't make sense then you just confuse the other new scripters.
Well....I tried....but that's it, give me a letter of resignation,clean out your desk, see if you can spell your "F**K*N'" Name Right, you over paid piece of Sh*T....sorry, got carried away, I DIDN'T SAY THAT!!! HONEST!!!!!!!!

-Rebel95
Reply With Quote
  #6  
Old 09-04-2001, 01:11 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
im just trying to learn how to make a weapon that only works when fired on a certain area
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #7  
Old 09-04-2001, 02:02 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
PHP Code:
if (weaponfires&&strequals(#L,"LEVELNAME.graal)){ command here;} 
-Rebel95
Reply With Quote
  #8  
Old 09-04-2001, 04:20 AM
oscarjf1 oscarjf1 is offline
Registered User
Join Date: Aug 2001
Location: I live in the US
Posts: 107
oscarjf1 is on a distinguished road
Send a message via AIM to oscarjf1
i c

I think i c what youre saying....If youre between 2 points you want your weapon to work.

use this:

if (weaponfired) {
if (playerx in |<this is the number for as far left as its allowed>,<this is the number for far right>|) {
if (playery in |<this is min height that is allowed>,<this is max height allowed>) {you action here;
}
}
}

Of course, you replace the <>'s with values (normally numbers ).
Here is an example:

if (weaponfired) { // You use the weapon to shoot an arrow in the players direction.
if (playerx in |2,20|) { // The player is between the points of 2 and 20 on the x axis
if (playery in |10,30|) { // The player is between the points of 10 and 30 on the y axis
if (playerdarts>=1) {shootarrow playerdir;
}
}
}
}
__________________
I speek on behalf of my staff.
~laterz

Lagoonia Staff
-Tiki God Of Power
Reply With Quote
  #9  
Old 09-04-2001, 04:40 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
Or if there's a certain wall in front of the player. Or if the chicken crossed the road.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
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 03:02 PM.


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