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
  #16  
Old 06-17-2002, 01:05 AM
HisDog HisDog is offline
Registered User
Join Date: Feb 2002
Posts: 64
HisDog is on a distinguished road
Send a message via AIM to HisDog
>.<
ill never be able to figure out scripting... >.<
__________________
Im a furre and im proud of it!
got a problem? Take it up with my tail!
Reply With Quote
  #17  
Old 06-17-2002, 08:51 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Heh, I tried to make a right-click menu, and I ran into the problem of using putnpc =/ :'( Ne chance I could take a look @ the script or a quick explanation? Heh, just asking, I know it gets annoying when ppl ask, b/c it happens to me too
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #18  
Old 06-17-2002, 09:09 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
Quote:
Originally posted by HisDog
>.<
ill never be able to figure out scripting... >.<
You think I haven't said that about 10,000 times.


Practice and learn to love math. it's your friend.
__________________
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
  #19  
Old 06-17-2002, 09:16 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
Let's see how'd I get the menu to pop up..

Well the menuSystem is more complex than a menu for just a single weapon with afew buttons. Hmm..


NPC Code:

if (mousedown){
if (leftmousebutton&&this.menu_on==false){
draw_menu();
this.menu_on=true;
}elseif(leftmousebutton){
click_check();
}
}

function draw_menu(){
menux = mousescreenx;
menuy = mousescreeny;
showimg 6000,menu_picture,menux,menuy;
showimg 6001,@ButtonText,menux,menuy;
}

function click_check(){
if (mousescreenx in |menux,menux+imglenth| &&
mousescreeny in |menuy,menuy+imgheight|){
// do something =/
}else{
hideimg 6000;
hideimg 6001;
}
}



very simple version of what I did.... I did that just now without testing so =/ don't recomend using or even trying to use.
I aways make 3 dumb mistakes when doing stuff.


AHJ GOnna be LAte laterz
__________________
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
  #20  
Old 06-17-2002, 09:28 PM
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
I want friggen matricies
__________________

subliminal message: 1+1=3
Reply With Quote
  #21  
Old 06-17-2002, 11:28 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by adam
love math
totally agree =D
__________________
[signature]insert here[/signature]
Reply With Quote
  #22  
Old 06-18-2002, 10:06 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
Quote:
Originally posted by Falcor
I want friggen matricies

pretend a simulated 2d array is a matrice. =/
__________________
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
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 09:13 AM.


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