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 01-06-2004, 07:40 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by D1ce2
Isnt there a quick key in here?
I forgot how it goes but it's like
NPC Code:

if(playerenters)
timeout=0.05;

if(timeout){
if(keypressed){
if(keydown(t),true){
bla;
}
}
timeout=0.05;
}


I forgot maybe it is wrong, o-well I tried.

its
keydown2(keycode(t),false)
Quote:

If you don't want it detecting add a key (!)
like
NPC Code:

if(!bla && !bla2 && !bla3 && !bla4)){
//bla
}


Or as kai would do:
NPC Code:

if(!bla){
if(!bla2){
if(!bla3){
if(!bla4){
//bla stuff
}
}
}
}



As it's easier to read;P
Kai would choose the first, since the checks are related


oman, Loriel's script is crazygonuts, I never thought to use tokenize like that
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
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:29 AM.


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