Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-01-2007, 08:15 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Adding rupees...

i have a script where u slash the box 50 times and u get a rupee, but
lay2 greenrupee,playerx,playery; just drops your own rupee and dosn't benefit you at all
my script it:
PHP Code:
//#CLIENTSIDE
if (created || playerenters) {
this.slash 30;
show;
timeout=.05;
}
if (
wa****){
this.slash -= 1;
}
if (
this.slash ==0){
lay2 greenrupee,playerx,playery;
this.slash 30;
}
if (
timeout){
message Slash Me #s(this.slash) More Times!;
timeout=.05;

so how would i make it so you just get a rupee?
__________________
**FLIP OUT**
Reply With Quote
  #2  
Old 02-01-2007, 08:17 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by theHAWKER View Post
i have a script where u slash the box 50 times and u get a rupee, but
lay2 greenrupee,playerx,playery; just drops your own rupee and dosn't benefit you at all
my script it:
PHP Code:
//#CLIENTSIDE
if (created || playerenters) {
this.slash 30;
show;
timeout=.05;
}
if (
wa****){
this.slash -= 1;
}
if (
this.slash ==0){
lay2 greenrupee,playerx,playery;
this.slash 30;
}
if (
timeout){
message Slash Me #s(this.slash) More Times!;
timeout=.05;

so how would i make it so you just get a rupee?
You are using hella old script commands in your scripts. Why exactly? You have to script your own rupee npc here.

Edit: Oh yes, btw, you should either use
PHP Code:
#v(this.slash) 
instead of
PHP Code:
#s(this.slash) 
because its a variable, or just script everything in GS2, would be better :]
Reply With Quote
  #3  
Old 02-01-2007, 08:19 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by Crow View Post
You are using hella old script commands in your scripts. Why exactly? You have to script your own rupee npc here.
whats wrong with old script?
and how would i make my own rupee?
__________________
**FLIP OUT**
Reply With Quote
  #4  
Old 02-01-2007, 08:20 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by theHAWKER View Post
whats wrong with old script?
and how would i make my own rupee?
Indirectly disabled. Just script an npc that acts like a rupee and put the script in a class. Then join it if you need it.
Reply With Quote
  #5  
Old 02-01-2007, 08:24 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by Crow View Post
Indirectly disabled. Just script an npc that acts like a rupee and put the script in a class. Then join it if you need it.
Im not somsort of super gienious
__________________
**FLIP OUT**
Reply With Quote
  #6  
Old 02-01-2007, 08:29 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
i figured it out, its: player.rupees +=1;
ha ha ha ha ha
__________________
**FLIP OUT**
Reply With Quote
  #7  
Old 02-01-2007, 08:41 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by theHAWKER View Post
i figured it out, its: player.rupees +=1;
ha ha ha ha ha
If you are working in the old scripting engine, it should be playerrupees += 1; instead of player.rupees += 1;.
__________________
Skyld
Reply With Quote
  #8  
Old 02-01-2007, 08:42 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Skyld View Post
If you are working in the old scripting engine, it should be playerrupees += 1; instead of player.rupees += 1;.
Yea, right. Forgot to add that ;P
Reply With Quote
  #9  
Old 02-01-2007, 10:34 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
HTML Code:
//#CLIENTSIDE 
if (created || playerenters) { 
  this.slashAmounts = 30; 
} 
if (was hit) { //Remove the space.
  this.slashAmounts -= 1; 
  message Slash me #v(this.slash) more times!; 
  if (this.slashAmounts <= 0) { 
    lay2 greenrupee,playerx,playery; 
    this.slashAmounts = 30; 
  } 
} 
You don't need a timeout.
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 07:36 PM.


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