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-11-2003, 04:15 AM
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
disable sword

If anybody has experience with this I wouldn't mind a little help finding an answer.

I want to basically disable the s key.
I've tried a few things, I searched on the board and found a few things that didn't work.

A way to disable the sword so I can make a new one for the s key. I've tried setting the swordpower to 0, but it won't let me? I've tried replaceani but it still cuts and stuff and freezes you a little.

It would be nice if there was a enablefeatures option to get rid of the sword or something like that though.
__________________
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
  #2  
Old 06-11-2003, 04:34 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
i know i got it to work a while ago by just setting the gani to idle whenever the player pressed S so they never used the sword.if u wanna make a system then just set S to whatever you need.
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #3  
Old 06-11-2003, 05:08 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Re: disable sword

Copy the sword.gani to a new gani named swordsafe.gani.

A weapon script should have (clientsided):

if (created) {
replaceani sword,swordsafe;
}

Press S.
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #4  
Old 06-11-2003, 05:27 AM
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
Re: Re: disable sword

Quote:
Originally posted by Tseng
Copy the sword.gani to a new gani named swordsafe.gani.

A weapon script should have (clientsided):

if (created) {
replaceani sword,swordsafe;
}

Press S.
and this doesn't even pause the player or destroy bushes/ tiles?

I guess I could live with that, if it's the best I can get.
__________________
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 06-11-2003, 05:40 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Re: Re: Re: disable sword

Quote:
Originally posted by adam


and this doesn't even pause the player or destroy bushes/ tiles?

I guess I could live with that, if it's the best I can get.
What it doesn't do, script!
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #6  
Old 06-11-2003, 11: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
As Tseng said,replaceani would be a good idea,then if you want,script a new "HP System",trigger an action to hurt the players and etc.
Im not sure about bushes/tiles,but i think hitobjects would work. :grin:
__________________
"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
  #7  
Old 06-11-2003, 11:30 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
Re: Re: Re: Re: disable sword

Quote:
Originally posted by Tseng


What it doesn't do, script!
Did I say it wrong? Sorry, I said it really weird didn't I.. I "didn't" want it to do any of that. I already have scripts to do all that tile stuff, and that pause in the player is annoying. I don't want anything to happen when you press s, no tile slashes, no pauses, no nothing. And I don't feel like rescripting player movement, too messy sometimes. And I always end up doing it in such weird ways.
__________________
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
  #8  
Old 06-11-2003, 11:37 PM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
How about...
NPC Code:
disableweapons;



That might be what yer looking fer.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #9  
Old 06-12-2003, 12:35 AM
TripleE TripleE is offline
Down with GK Corruption
Join Date: Jun 2003
Posts: 1,005
TripleE is on a distinguished road
Quote:
Originally posted by Neoreno
How about...
NPC Code:
disableweapons;



That might be what yer looking fer.
I think you misunderstood.
NPC Code:
disableweapons;


would be if he wanted to disable everything including npc's,and sword. He justs wants the space bar,number 5,and s to be clear so he can put a new action there. Adam doesnt want a sword.
Reply With Quote
  #10  
Old 06-12-2003, 01:05 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
He could use disableweapons, but then he'd have to rescript the state, and the NPCW firing. :P
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #11  
Old 06-12-2003, 01:13 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Quote:
Originally posted by Neoreno
He could use disableweapons, but then he'd have to rescript the state, and the NPCW firing. :P
It'd be rather foolish to disable all weapons just to script a sword.
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #12  
Old 06-12-2003, 01:13 AM
Dark-Dragoon Dark-Dragoon is offline
Registered User
Dark-Dragoon's Avatar
Join Date: May 2002
Posts: 886
Dark-Dragoon is on a distinguished road
Quote:
Originally posted by Neoreno
He could use disableweapons, but then he'd have to rescript the state, and the NPCW firing. :P
Now that could break some inefficiency records.
__________________
R.I.P. 1999-2004 Graalian Year
The World Renown Nobody, Guy.
Reply With Quote
  #13  
Old 06-12-2003, 01:17 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Quote:
Originally posted by Dark-Dragoon

Now that could break some inefficiency records.
Well, if he was doing it anyways, it wouldn't really matter that much. But if he's not, then you're right, horribly inefficient.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #14  
Old 06-12-2003, 01:20 AM
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
well thanx for the suggestions.
__________________
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
  #15  
Old 06-12-2003, 02:30 AM
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
some new flags should be added for "enablefeatures" for disabling they keys A,S and maybe D.
__________________
"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
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 11:56 PM.


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