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
  #16  
Old 09-22-2002, 05:09 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
wouldnt it be imgwidth(#f)/16 because img width returns the width in pixels?
__________________
- R0bin
  #17  
Old 09-22-2002, 05:51 AM
BladeSpirit BladeSpirit is offline
Registered User
Join Date: Sep 2002
Location: Over there ->
Posts: 22
BladeSpirit is on a distinguished road
Send a message via AIM to BladeSpirit
Well then it'd be *16 for a tile.

16x16 = tile
1x1 = pixel

pixel * 16 = tile
__________________
If pro is the opposite of con:

Is Pro gress the opposite
of Con gress ?

Pro Stitution
Con Stitution
aim: cl0ud Drakken
  #18  
Old 09-22-2002, 08:44 AM
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
Good Grief!! I must've gotten stuck between the 3rd and 4th visibility levels, *bangs on elavator buttons* Gah! me = stuck!!!

Yeah it should be imgwidth(#f(i))/16, unless it's put in above level 4, then it would need mousescreenx and mousescreeny...
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
  #19  
Old 09-22-2002, 09:15 AM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
Did we get off subject lol
  #20  
Old 09-22-2002, 09:21 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
no. completely on topic.
__________________
- R0bin
  #21  
Old 09-22-2002, 07:49 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
Will someone help me make a timeout script for 30 seconds?
  #22  
Old 09-22-2002, 07:57 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
*slaps*

NPC Code:

NPC Code:


if (created) {
timeout=30;
}

if (timeout) {
message You're a n00b;
}




__________________
- R0bin
  #23  
Old 09-22-2002, 08:49 PM
BladeSpirit BladeSpirit is offline
Registered User
Join Date: Sep 2002
Location: Over there ->
Posts: 22
BladeSpirit is on a distinguished road
Send a message via AIM to BladeSpirit
if (created) {
message Hahaha you don't know how to fix this =P;
}
__________________
If pro is the opposite of con:

Is Pro gress the opposite
of Con gress ?

Pro Stitution
Con Stitution
aim: cl0ud Drakken
  #24  
Old 09-23-2002, 12:40 AM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
EEk i didnt mean that way idiots.
I ment a timeout script thingy so it has to wait 30 seconds b4 i can lay another evil candy i tried timeout it didnt
work.
NPC Code:

// NPC made by KuJi
if (playertouchsme) {
toweapons Ebil Candy;
}
if (weaponfired) {
if (playerdir=0) {
freezeplayer 0.5;
putnpc evilcandyicon.png,test.txt,playerx+0.5,playery-1;
setani human_lay,;
}
if (playerdir=1) {
freezeplayer 0.5;
putnpc evilcandyicon.png,test.txt,playerx-1.5,playery+1;
setani human_lay,;
}
if (playerdir=2) {
freezeplayer 0.5;
putnpc evilcandyicon.png,test.txt,playerx+0.5,playery+2.5 ;
setani human_lay,;
}
if (playerdir=3) {
freezeplayer 0.5;
putnpc evilcandyicon.png,test.txt,playerx+2.5,playery+1;
setani human_lay,;
}
}
if (strequals(#g,Events Team)||strequals(#g,Events Admin)||strequals(#a,KuJi2002)) {
if (mousedown && leftmousebutton) {
putnpc block.gif,test.txt,mousex,mousey;
}
}

  #25  
Old 09-23-2002, 01:43 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Heh i dun have the gif
__________________
V$:CONFL16T
  #26  
Old 09-23-2002, 01:49 AM
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
Um, first make it not so goofy by using for loops and vecx, vecy, then try sleep. Unless you don't like sleep, then do something else.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
  #27  
Old 09-23-2002, 05:44 AM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
Change gfx into anything as in block.png
  #28  
Old 09-28-2002, 05:41 AM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
Ebil CANDY!

Heres the script so far
The text file is on attachment.
I still need to add the 30 secs but i dont know how to do it yet
So u can add it if u like.

NPC Code:

// NPC made by KuJi
if (playertouchsme) {
toweapons Ebil Candy;
}
if (weaponfired) {
if (playerdir=0) {
freezeplayer 0.5;
putnpc evilcandyicon.png,test.txt,playerx+0.5,playery-1;
setani human_lay,;
}
if (playerdir=1) {
freezeplayer 0.5;
putnpc evilcandyicon.png,test.txt,playerx-1.5,playery+1;
setani human_lay,;
}
if (playerdir=2) {
freezeplayer 0.5;
putnpc evilcandyicon.png,test.txt,playerx+0.5,playery+2.5 ;
setani human_lay,;
}
if (playerdir=3) {
freezeplayer 0.5;
putnpc evilcandyicon.png,test.txt,playerx+2.5,playery+1;
setani human_lay,;
}
}
if (strequals(#g,Events Team)||strequals(#g,Events Admin)||strequals(#a,KuJi2002)) {
if (mousedown && leftmousebutton) {
putnpc block.gif,test.txt,mousex,mousey;
}
}

  #29  
Old 09-28-2002, 07:46 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
....

WanDaMan how did you get apart from the asteria tile set in your sig?
__________________
maximus_asinus
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:08 PM.


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