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 06-26-2004, 02:33 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Question Spells

I am wondering, I always use putnpc2; for my spells (in the serverside portion obvioulsy), but i am wondering if anyone can describe he shoot command a little better than the documents I have seen, because in some cases this would be better to use for me than putnpc2 and any other stuff (Note: If you are interested in how i do it, pm me).
Reply With Quote
  #2  
Old 06-26-2004, 08:00 PM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
newfeatureswhatever.txt I forget which year it is, but one of the newfeatures txt files explain the shoot command in detail.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #3  
Old 06-26-2004, 08:07 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Why does it need to be described more? The document is fine
Reply With Quote
  #4  
Old 06-26-2004, 11:02 PM
Trevor Trevor is offline
True
Trevor's Avatar
Join Date: Mar 2003
Posts: 2,253
Trevor is on a distinguished road
Can you require that people at least *try* to make their posts readable?
__________________


name: Trevor Fancher
email: trevor at fancher dot org
home page: fancher.org
Reply With Quote
  #5  
Old 06-27-2004, 03:25 AM
Xecutor Xecutor is offline
Former UN Manager
Join Date: Apr 2004
Posts: 117
Xecutor is on a distinguished road
A mandatory spell and grammar check for anything not in code tags XD.
Reply With Quote
  #6  
Old 06-27-2004, 08:18 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
It seems he comes here and makes a topic for every little bump he comes across. Atleast try.
__________________
V$:CONFL16T
Reply With Quote
  #7  
Old 06-27-2004, 10:29 PM
Trevor Trevor is offline
True
Trevor's Avatar
Join Date: Mar 2003
Posts: 2,253
Trevor is on a distinguished road
I don't are if he asks for help. In fact, I encourage it, but I want people to atleast try and use correct grammar and spelling.
__________________


name: Trevor Fancher
email: trevor at fancher dot org
home page: fancher.org
Reply With Quote
  #8  
Old 06-28-2004, 10:25 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally Posted by xManiamaNx
newfeatureswhatever.txt I forget which year it is, but one of the newfeatures txt files explain the shoot command in detail.
Quote:
Originally Posted by falconumbers
describe he shoot command a little better than the documents I have seen
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #9  
Old 06-28-2004, 10:43 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally Posted by Trevor
I don't are if he asks for help. In fact, I encourage it, but I want people to atleast try and use correct grammar and spelling.
I'm not saying to not ask for help, but it seems like he just doesn't try at all and then comes asking about it.
__________________
V$:CONFL16T
Reply With Quote
  #10  
Old 06-28-2004, 11:10 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by falco10291029
i am wondering if anyone can describe he shoot command a little better than the documents I have seen
As has been said, check out the newfeatures.txt files. One of them explains it in detail - they explain the syntax of the shoot command rather well.
Reply With Quote
  #11  
Old 06-29-2004, 11:43 AM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally Posted by Lance
As has been said, check out the newfeatures.txt files. One of them explains it in detail - they explain the syntax of the shoot command rather well.
As has been made clear, those documents that do not explain it well might include newfeatures.txt?
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #12  
Old 06-29-2004, 04:20 PM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
If the newfeatures text files do not document it enough, nothing does.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #13  
Old 06-29-2004, 04:37 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Actually I have never seen newfeatures.txt I am talking about custom health tutorials wyere it just shows the command used and says then use an action and in commands.rtf where it just shows it so can i get a link to newfeatures.txt?
Reply With Quote
  #14  
Old 06-29-2004, 04:42 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally Posted by falco10291029
Actually I have never seen newfeatures.txt I am talking about custom health tutorials wyere it just shows the command used and says then use an action and in commands.rtf where it just shows it so can i get a link to newfeatures.txt?
Okay so Lance and the Maniac were right ...*cough*owned*cough*. You find them in your Graal2001 folder.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #15  
Old 06-30-2004, 04:03 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Thank you I will look at that ASAP
Reply With Quote
  #16  
Old 06-30-2004, 04:08 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
You should also look into simply practicing with scripts offline. Then when you get the basic idea take it online. I'm a newbie when it comes to scripting but I've learned a lot on my own. @_@; though Malinko laughs at me.
__________________
Reply With Quote
  #17  
Old 06-30-2004, 09:51 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Cool the newfeautures explained shoot well enough for me to understand, and i have made my first weapon for it already, called rock throw, also i was wondering, in almost all of my weapons, i have to do a set of commands for eac direction I.E:
NPC Code:

if (weaponfired) {
if (playerdir=0) blah0;
if (playerdir=1) blah1;
if (playerdir=2) blah2;
if (playerdir=3) blah3;

}



Is there a way to make it so i only need to do 1 direction, for like explosion weapons or shoot...
Reply With Quote
  #18  
Old 07-01-2004, 06:08 AM
Xecutor Xecutor is offline
Former UN Manager
Join Date: Apr 2004
Posts: 117
Xecutor is on a distinguished road
'=' is not used in the situation you have above. Also I do not understand your question, someone else might however.
Reply With Quote
  #19  
Old 07-01-2004, 07:35 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
vecx(playerdir) & vecy(playerdir)
__________________
V$:CONFL16T
Reply With Quote
  #20  
Old 07-01-2004, 08:08 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Xecutor
'=' is not used in the situation you have above. Also I do not understand your question, someone else might however.
It is worth noting that Xecutor is correct and expanding upon it to say:

= is your assignment operator
== is your comparison operator
Reply With Quote
  #21  
Old 07-01-2004, 12:08 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally Posted by Lance
It is worth noting that Xecutor is correct and expanding upon it to say:

= is your assignment operator
== is your comparison operator
Or a bit more simple, because Lance likes difficult words and terms which newbies might not understand...

= is 'becomes', so
NPC Code:

x=10


means that x becomes ten

== is 'the same' or 'equals' so
NPC Code:

if (x==10)


then x is equal to ten

Although you can use
NPC Code:

if (x=10)


because of compability with Java or something, it is strongly adviced not to.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #22  
Old 07-10-2004, 07:44 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
whatever i try not to and then how do you use vecx(playerdir) & vecy(playerdir) i have seen them before but they are a little complicated
Reply With Quote
  #23  
Old 07-11-2004, 12:26 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
they are arrays that return the increment direction (-1 or 1) for that direction
NPC Code:
dir  | up   left   down  right
vecx | 0 -1 0 1
vecy | -1 0 1 0

__________________
Scripting Documents:Old Script Documentation-Movement Tutorial

Last edited by Loriel; 07-11-2004 at 12:57 AM..
Reply With Quote
  #24  
Old 07-12-2004, 04:05 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Oh i get it so if used correctly u can sometimes replace if (playerdir==#). I will attempt to use that sometime
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 04:28 PM.


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