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 09-30-2001, 11:58 PM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Angry Why won't this work?

This script won't work? Please help!


// NPC made by Rob Getashu
if (created) {
drawoverplayer;
setstring this.bugsprite,;
showcharacter;
setcharani stone_closed,;
message #v(this.bombpower) %
}
if (exploded) {
bombpower = strtofloat(#s(bombpower))+25;
setstring bombpower,#v(bombpower);
setstring client.bombpower,#s(bombpower);
setstring server.gavebombpower,#v(strtofloat(#s(server.gaveb ombpower))+25);

this.bombpower = strtofloat(#s(client.bombpower));
setstring client.bombpower,;
setstring server.gavebombpower,#v(this.bombpower);
}
if (bombpower=100) {
setcharani stone_open,#s(this.bugsprite);
sleep 2;
setcharani stone_idle,#s(this.bugsprite);
sleep 2;
setcharani stone_close,#s(this.bugsprite);
sleep 2;
setcharani stone_closed,;

bugs = strtofloat(#s(bugs))+1;
setstring bugs,#v(bugs);
setstring client.bugs,#s(bugs);
setstring server.gavebugs,#v(strtofloat(#s(server.gavebugs)) +1);
}
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #2  
Old 10-01-2001, 12:11 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Can someplease help?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #3  
Old 10-01-2001, 12:44 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #4  
Old 10-01-2001, 03:54 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Ok let me explain the script. Your supose to use bombvs to move the rocks and find beetles under them. The problem is you need to use four bombs and I wanted to show the percent above the rock and this script won't work. Can someone help?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #5  
Old 10-01-2001, 04:14 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
here:
NPC Code:

if(exploded4times){
move 1;
showbeetlesunder(1);
move 1;
goaway+1;
}

__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #6  
Old 10-01-2001, 08:41 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
just make it display a string above the rock like for instance:
NPC Code:
#s(rockhit)


to do this just have it so every time you hit the rock, it does this function:
NPC Code:

function bombHit () {
this.numplus=25*(1+strtofloat(#s(rockhit)));
setstring rockhit,#v(this.numplus);
}


then you can make it so when the string #s(rockhit)==100 that it moves the rock or whatever.
lol i just did that off the top of my head I doubt it'll work but oh well you get the idea.
__________________

-=Shard IceFire=-
Reply With Quote
  #7  
Old 10-01-2001, 09:08 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Shard_IceFire

lol i just did that off the top of my head I doubt it'll work but oh well you get the idea.
that should work
Reply With Quote
  #8  
Old 10-01-2001, 09:11 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
=P good!
__________________

-=Shard IceFire=-
Reply With Quote
  #9  
Old 10-01-2001, 10:27 PM
PresShinP2P PresShinP2P is offline
Registered User
Join Date: Oct 2001
Location: Screw it
Posts: 84
PresShinP2P is on a distinguished road
Send a message via AIM to PresShinP2P
errr, i wouldn't bother with the script...i mean finding bugs under rocks, COME ON PEOPLE!
__________________
President Shinra
Reply With Quote
  #10  
Old 10-02-2001, 02:36 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by PresShinP2P
errr, i wouldn't bother with the script...i mean finding bugs under rocks, COME ON PEOPLE!
The guy likes bugs! What can you say ?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #11  
Old 10-02-2001, 04:30 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

Wasn't this on a few of the Zelda games?

By the way...

if (exploded && this.bombed<=4){
this.bombed++;
if (this.bombed=4){
x--;
}
message #v(this.bombed/4*100)%
}
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #12  
Old 10-02-2001, 05:52 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
you need to use a timeout loop in the original script of this thread
Reply With Quote
  #13  
Old 10-02-2001, 07:48 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
can someone agree with any of these and redo my old script and add the new features?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #14  
Old 10-02-2001, 08:34 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
I would if this comp had graal on it AND if I wasnt lazy =O
Reply With Quote
  #15  
Old 10-02-2001, 08:41 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

Feel lucky I'm bored...

if (exploded && this.bombed<=4){
this.bombed++;
message #v(this.bombed/4*100)%
if (this.bombed=4) {
setcharani stone_open,#s(this.bugsprite);
sleep 2;
setcharani stone_idle,#s(this.bugsprite);
sleep 2;
setcharani stone_close,#s(this.bugsprite);
sleep 2;
setcharani stone_closed,;
setstring bugs,#v(strtofloat(#s(bugs))+1);
}
}
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
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:39 PM.


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