Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-21-2003, 04:00 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Circle select

As many of you know, my math skills aren't exactly that great when it comes to applying it to scripting. So to make myself get better I made this.

I tried to do all the precalculation that I could. If you notice, just by glancing through the script, anything that will make this more efficient then please tell me.

Just press 'z' or 'c' to activate the selector and rotate through the weapons. You can then press 'x' to close the selector. If you want, you can activate the mouse capabilities too. You should be able see where there are commented out if statements to use the mouse, it is near the top. If you turn on mouse checking, the left and right mouse buttons do the same as 'z' and 'c' and clicking the left and right mouse buttons at the same time is the same as 'x'.

You can run around and select your weapons easily. Which is why I tihnk this would be good for storing things such as swords and other weapons so you can easily change during mid battle. Because the keys are mapped to different keys from the default Graal keys, you can fight and select your weapons at the same time.
__________________
new account: Trevor
Reply With Quote
  #2  
Old 07-21-2003, 04:02 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Sorry, after I got done rambling I forgot to attach the file .
Attached Files
File Type: zip circleslect.zip (3.9 KB, 164 views)
__________________
new account: Trevor
Reply With Quote
  #3  
Old 07-21-2003, 05:23 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
I liked it.
Sometimes when you press X it bug the script,but i liked a lot.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #4  
Old 07-21-2003, 11:25 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
I love that.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #5  
Old 07-22-2003, 01:53 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
Why do you have this?

NPC Code:
  // Has the weapon count changed?
if (this.oldweaponcount != weaponcount)
this.info = 0; // If so we need to update the info

// Has info been shown yet?
if (this.info == 0)
{



Couldn't it be:

NPC Code:
  // Has info been shown yet?
if (this.oldweaponcount != weaponcount) {
this.info = 0;


(assuming this.info is used elsewhere)


Also, when activating through c, the bracket gets offset incorrectly.
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:52 PM.


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