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 06-17-2001, 03:21 PM
Bane2000 Bane2000 is offline
Registered User
Join Date: Jun 2001
Location: Dorset, UK
Posts: 211
Bane2000 is on a distinguished road
Send a message via ICQ to Bane2000 Send a message via AIM to Bane2000
help !?!

k, i'm making a mining script, iahev it all done but of course to make more stones the variables have to change for each one or u mine one stone untill it's nearly finished and it'll bring the others down too, so will this work ?

stonepower = strtofloat(#s(this.stonepower));

so when ever i put this. infront although the same will it only effect this npc and not the others ?

__________________


"Question Everything, Accept Nothing !" - A wise freind


- Fire Lycia, Save Graal

"England - Yes thats the small Island in Europe that Ownz you all." - As Zorg so rightly puts it
Reply With Quote
  #2  
Old 06-19-2001, 06:34 PM
GrimMoogle GrimMoogle is offline
Registered User
Join Date: Jun 2001
Location: Dark Forest
Posts: 323
GrimMoogle is on a distinguished road
Send a message via AIM to GrimMoogle
Yeah!! umm yeah... errr... *runs*
__________________
Reply With Quote
  #3  
Old 06-19-2001, 07:25 PM
Spearman Spearman is offline
Registered User
Join Date: Mar 2001
Location: Indiana, USA
Posts: 498
Spearman is on a distinguished road
Send a message via ICQ to Spearman Send a message via AIM to Spearman
use this. variables like this.stonepower
__________________


Reply With Quote
  #4  
Old 06-20-2001, 03:55 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
if (actionMined) {
this.stone-=strtofloat(#p(0));
}
if (this.stone<=0) {
givegem();
}
function givegem() {
//do this yourself you lazy bum
}
Reply With Quote
  #5  
Old 06-20-2001, 04:23 AM
activeconvict activeconvict is offline
HIRYUU
activeconvict's Avatar
Join Date: Mar 2001
Posts: 1,162
activeconvict is on a distinguished road
Quote:
Originally posted by General
if (actionMined) {
this.stone-=strtofloat(#p(0));
}
if (this.stone<=0) {
givegem();
}
function givegem() {
//do this yourself you lazy bum
}

Haha
__________________
HIRYUU
Reply With Quote
  #6  
Old 06-21-2001, 02:07 AM
Bane2000 Bane2000 is offline
Registered User
Join Date: Jun 2001
Location: Dorset, UK
Posts: 211
Bane2000 is on a distinguished road
Send a message via ICQ to Bane2000 Send a message via AIM to Bane2000
lazy bum ?

lmao I've already made the script I just wanted to make sure that the this. command actually does that because I have had problems with all the rocks going dopwn at the same time ^_^
__________________


"Question Everything, Accept Nothing !" - A wise freind


- Fire Lycia, Save Graal

"England - Yes thats the small Island in Europe that Ownz you all." - As Zorg so rightly puts it
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 10:36 AM.


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