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 02-24-2006, 03:04 AM
Coolkid77742 Coolkid77742 is offline
Registered User
Join Date: Aug 2005
Posts: 79
Coolkid77742 is an unknown quantity at this point
Unhappy Please help me make a script?

Can you give me a script so if I right click A player it slows down there speed to 0.3 (or makes everyone on my screen to 0.3) and if i left click a player it makes his speed back to normal? and when I right click it makes me say Slow Down and When I left click it makes me say Speed up.... But like only if its fired?
__________________
]
Reply With Quote
  #2  
Old 02-24-2006, 08:54 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
please post here your attempt to make this script.
if you have not tried to make this script yet, then try first on your own.
some of the links in my sig here may be helpful to read if you are new to making npcs.

(see it is possible to reply nicely to new people who dont bother reading the rules. and yes my friend you broke a rule by asking for someone to make a script for you, crazy as that sounds.)
Reply With Quote
  #3  
Old 02-24-2006, 03:00 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Prozac
(see it is possible to reply nicely to new people who dont bother reading the rules. and yes my friend you broke a rule by asking for someone to make a script for you, crazy as that sounds.)
I don't understand why you think we should be nice to people who blatantly break the rules.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #4  
Old 02-24-2006, 06:31 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
becasue, a couple of decades ago, when i was in the first grade, they taught me a little thing in public school called the golden rule. "treat others the way you want to be treated." i want people to be nice to me. so, in the times that i remember the rule, i try to be nice to others. doing my part to support a peaceful society, but not being a doormat to people.

as i did above, it is possible, and i strongly suggest, to correct people with some level of professionalism when they do something wrong. you represent graal when you answer a question, wether you get paid by stefan or not. the tone of your reply to questions from newcomers gives people an idea of what sort of charachters play this game. If you reply like an irritated impatient mean jerkwad who loves to tell people that they are wrong, ignorant and stupid, then that is the impression you give of what most graal players are and how they will be treated in at least this section in the forums - and perhaps in the actual game.

i for one want graal to succeed. i want people to stick around, becasue eventually i want a lot of people having fun on my playerworld. so it does no good to scare them off by being rude to them.

to keep this post on topic : http://wiki.graal.us/Special:Search?search=mouse&go=Go
Reply With Quote
  #5  
Old 02-24-2006, 09:20 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Prozac
becasue, a couple of decades ago, when i was in the first grade, they taught me a little thing in public school called the golden rule. "treat others the way you want to be treated."
Haha, but the rule of wisdom is to treat others how they would like to be treated. If you do that, then they're a lot more likely to treat you how you would like to be treated. I'm so tiiiired
Reply With Quote
  #6  
Old 02-27-2006, 03:25 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Prozac
becasue, a couple of decades ago, when i was in the first grade, they taught me a little thing in public school called the golden rule. "treat others the way you want to be treated." i want people to be nice to me. so, in the times that i remember the rule, i try to be nice to others. doing my part to support a peaceful society, but not being a doormat to people.
Mmhmm, but by breaking the rules, they are showing us how they want to be treated (following your little phrase). Lack of respect for the rules = Lack of respect for them.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #7  
Old 02-27-2006, 09:13 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Here are some things that may help you.
For GS2:
GraalControl.onMouseDown()

For GS1:
use if (mousedown && leftmousebutton) to detect the player has pressed the right mouse button.

You will need to use testplayer(x,y) to test for a player where the player used the mouse.

If you are using GS1 look through newfeatures2002.txt to find more information on mouse commands.

If you are using GS2 look through the graal wiki (I like using the graal.us wiki because it has a searchable list of functions/variables whereas the 'Bible' only has a list of variable types that you can click and load up the vars and functions for them.

Strive to learn things for yourself, believe me its how I got here. I know its stressful to hear people give you a few functions and say, "try and do it yourself." But it really is the way to go. GS1 is confusing, and is hard to learn this way.. I know. Your best bet is to start using GS2 if you can.. takes a few days to really get the hang of it but after that you will start getting the hang of things.

But regardless of what idiots on this forum say or try to do in your post just ignore them and continue asking questions. But make sure your questions are for help, not entire scripts (which will get your thread either closed or flamed)

Good, so.. hope that helped.

If you need any more advice, I'm on Mana Realms.
Reply With Quote
  #8  
Old 02-27-2006, 09:36 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by ApothiX
Mmhmm, but by breaking the rules, they are showing us how they want to be treated (following your little phrase). Lack of respect for the rules = Lack of respect for them.
Uhm, I follow the rules and you treat me like dirt anyways xD. Perhaps it's just you and your unnerving urges to vent and rampage?
Reply With Quote
  #9  
Old 02-27-2006, 09:44 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
Quote:
Originally Posted by ApothiX
Mmhmm, but by breaking the rules, they are showing us how they want to be treated (following your little phrase). Lack of respect for the rules = Lack of respect for them.
It's not my phrase, it was taught to me and 50 other kids decades ago, and from what i can tell its been around a thousand years or more. Your logic is flawed - treating rules a certain way does not equate to treating a person in a certain way. Look at what Martin Luther King Jr. did - he stood against bad rules but he did not harm people. And words can be as harmful as physical abuse, it has been shown that mental anguish can manifest to physical illness.
Be decent to others - that is the foundation of law in any society.
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:12 PM.


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