Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-20-2002, 06:56 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
Angry Skateboard npc

How do you make the skateboard make the player faster and how do you equip it for like the ani stuff?
  #2  
Old 02-20-2002, 07:07 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
o my lord, dont you even read any of the other post??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
  #3  
Old 02-20-2002, 07:34 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
Quote:
Originally posted by TDK_RC6
o my lord, dont you even read any of the other post??

?? He said how...Like as in teach him not "HEY GIVE ME SCRIPT!".
__________________
  #4  
Old 02-20-2002, 07:38 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
first, you must overcome your first rut... learning to script, i know its hard to climb out of that gap. After that, you just make it.

Gee I don't know how to TEACH you to make 1 thing .
__________________

subliminal message: 1+1=3
  #5  
Old 02-20-2002, 07:45 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
oooooo...........


__________________
Staff on Renegade


email: [email protected]
aim: papivicente
  #6  
Old 02-20-2002, 08:20 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
Re: Skateboard npc

Quote:
Originally posted by relenakat
How do you make the skateboard make the player faster and how do you equip it for like the ani stuff?
Maybe it's Unixmad playing a cruel joke on kondidias (sp), lol. Anyways...


Try using playerx and playery values....correspoding with the players direction (0-up 1-left 2-down 3-right).

Like

if (playerdir=0) {playery-=1;
}

Since you are facing up
and the grid of graal looks like this:
0....64 (x)
.
.
64
(y)
you want to subtract (so the player goes up faster)
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
  #7  
Old 02-20-2002, 08:30 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
thx that's what I was missing from the code
  #8  
Old 02-20-2002, 08:41 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Chicken=-

Your own your way dude,people like you make me wanna play graal more people who actually learn and take time to ask for help = ),Gs man and you might wanna add Onwalls and stuff theyre basic stuffs = ),ok = ) G/J..
damnit green lol!! josey gonna be Peeved lol,more fun for me.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
  #9  
Old 02-20-2002, 09:03 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
Here's what I have but...when my player stops the shoes move

NPC Code:

// NPC made by Sage Deamon Slayer {Dragon Warrior}
if (playertouchsme) {
toweapons Flying shoes;
}
if(weaponfired){
timeout=.5
this.run=0;
}
if (timeout&&this.run==0){
if (playerdir=0) { playery-=.5; timeout=.5 }
if (playerdir=1) { playerx-=.5; timeout=.5 }
if (playerdir=2) { playery+=.5; timeout=.5 }
if (playerdir=3) { playerx+=.5; timeout=.5 }
}
if(timeout&&this.run==1){
freezeplayer .1;
}

  #10  
Old 02-20-2002, 09:28 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
ok thanks I'll try it and see now but do you mean like

NPC Code:
if(playerdir=0&&keydown(0)){


or
NPC Code:
if(playerdir=0){
if(keydown(0)){

  #11  
Old 02-20-2002, 09:42 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
ok thanks then
  #12  
Old 02-20-2002, 09:42 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
no no no....Check for the walk gani. Use showimg for the player to see the skateboard. Keydown is kinda lame for that in my opinion. Just my opinion.
  #13  
Old 02-20-2002, 09:56 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
erp...for some reason keydown doesn't work x.x
  #14  
Old 02-20-2002, 09:57 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
Quote:
Originally posted by royce
no no no....Check for the walk gani. Use showimg for the player to see the skateboard. Keydown is kinda lame for that in my opinion. Just my opinion.
I'll try that since the other one didn't work x.x
  #15  
Old 02-20-2002, 10:18 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Sorry to bust your bubble but you cannot have a wrong opinion. You can have a wrong fact but not a opinion. I just hate dealing with keydowns. It's just me.
Closed Thread


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 02:16 PM.


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