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
  #61  
Old 10-10-2003, 12:24 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
Server: Zenkou
Account: haro41
Postition: Admin
NPC Server? True
NPC: A key that is added to the weapons when picked up and is deleted from weapons when the respective door is unlocked.
__________________

Zenkou for life
Reply With Quote
  #62  
Old 10-10-2003, 12:26 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
Y'know. I don't think this offer still stands.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #63  
Old 10-10-2003, 06:07 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 haro41
Server: Zenkou
Account: haro41
Postition: Admin
NPC Server? True
NPC: A key that is added to the weapons when picked up and is deleted from weapons when the respective door is unlocked.
Solution: Learn to script something so basic.
Reply With Quote
  #64  
Old 10-10-2003, 05:48 PM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
Quote:
Originally posted by Lance


Solution: Learn to script something so basic.

Im not a NAT i am the GFX Admin. the rest are lazy asses. dont be an asshat, just help. nice ripoff sig of tseng

Server: Zenkou
Account: haro41
Postition: Admin
NPC Server? True
NPC:a script that basically makes these leaves blow around the level in the wind, doing loops and what not in a random fashion.

leaves pic \/
http://members.cox.net/haro_11/graal/fury/leaves.png
__________________

Zenkou for life
Reply With Quote
  #65  
Old 10-10-2003, 07:52 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 haro41



dont be an asshat, just help.
The GST's job is to give scripting advice, not to do your work for you.

Quote:
nice ripoff sig of tseng
Maybe because Tseng is the name I used to go by here? -_-

Last edited by Lance; 10-11-2003 at 02:25 AM..
Reply With Quote
  #66  
Old 10-10-2003, 11:16 PM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
im sorry i didnt mean to lash out that, i feel like a jerk. i know its simple to you, but i though you could just take a few minutes to help me out. im sorry again. really sorry
__________________

Zenkou for life
Reply With Quote
  #67  
Old 10-10-2003, 11:48 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 haro41
Server: Zenkou
Account: haro41
Postition: Admin
NPC Server? True
NPC: A key that is added to the weapons when picked up and is deleted from weapons when the respective door is unlocked.
NPC Code:

//Key
if (playertouchsme){ // if the player touches the NPC
//add to weapons
}
if (weaponfired){ // if the player uses the weapon
say2 A key :O;
}
if (weapondelete){ // special flag to call
destroy;
}



NPC Code:

//Door
if (playertouchsme){
if (hasweapon(key)){ // if player has key
callweapon key,weapondelete; // call the weapon with flag "weapondelete"
}
}


Oh wait, this is non-npcserver...

Ah the heck. With a bit brains you could make this npc-server too,i think, cuz i'm not really familiar with NPCserver
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #68  
Old 10-11-2003, 02:29 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 haro41
im sorry i didnt mean to lash out that, i feel like a jerk. i know its simple to you, but i though you could just take a few minutes to help me out. im sorry again. really sorry
That's fine, I just object to doing people's work for them. I'll gladly explain how to go about making something like this, but I won't make it for you.

Personally, I think this whole thread is a mistake, as we do not really make npcs "by request" as the thread's title would seem to convey. We're more of a consultatory group.

However, that's another debate for another day.
Reply With Quote
  #69  
Old 10-11-2003, 01:37 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
Ya know Lance, if you look at a certain angle at the title, you could also see it as if it were request for NPC information/help. Though you are right :/
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #70  
Old 10-17-2003, 04:51 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
aight this is what i've come up with. how can i make the leaf's movement smoother, but still keep the same speed?

NPC Code:

//#CLIENTSIDE

if ( playerenters || timeout ){
this.x=random(0,.5);
this.y=random(0,.5);
x += (random(.2,1));
y += (random(-.8,1));

showimg 1,leaves.png,x,y;
changeimgpart 1,16*abs(int(random(-1,1))),16*abs(int(random(-1,1))),16,16;
changeimgcolors 1,1,1,1,1;
timeout = .1;
}

__________________

Zenkou for life
Reply With Quote
  #71  
Old 10-17-2003, 10:13 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by haro41
aight this is what i've come up with. how can i make the leaf's movement smoother, but still keep the same speed?
Halve the timeout, halve the speed.
__________________
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 12:42 PM.


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