Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-08-2008, 03:46 AM
kodster200 kodster200 is offline
One Globals Love To Hate
kodster200's Avatar
Join Date: Aug 2006
Posts: 17
kodster200 is an unknown quantity at this point
Smile Could anyone possibly give me a script template.

i need a script template at the least for clones which follow you/you can also control or something along those lines also so if you take damage its your clones which actually take the damage and they have a fixed hp which goes up each lvl (the ammount of hp for the clones that goes up i could prob do) sorry if this is to complicated i never have been able to learn gs2 (ive tried quite a few times just to complicated for me lol)
Reply With Quote
  #2  
Old 07-08-2008, 06:40 AM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setTimer0.05 );
}
function 
onTimeOut() {
  
this.clonedir = ((player.dir 2) % 4);
  
this.clonedx player.vecx(this.clonedir) * 2;
  
this.clonedy player.vecy(this.clonedir) * 2;
  
with (findimg(200)) {
    
layer 0;
    
thiso.clonedx;
    
thiso.clonedy;
    
player.z;
    
ani player.ani "[" player.anistep "]";
    
dir player.dir;
    
playerlook true;
    
actor.mode 1;
    
zoom 1;
  }
  
setTimer(.05);
}

function 
onActionHit() {
  
//damage code

Something like this I guess
Reply With Quote
  #3  
Old 07-08-2008, 06:47 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud of
Hmm, for future reference:

Quote:
Originally Posted by Skyld
1. Be clear on your ability level. In other words, do not post asking for scripts, or asking people to fix scripts that are above your ability level. If you are writing a script to aid learning, then try writing a simpler script. If you are looking for a script for a server, then the best solution is probably to hire a scripter.

2. Similarly, do not just post whole scripts for people as a response to their difficulties. If you wish to post a wordy solution, then please feel free; however, please do not post things that people can just copy and paste. It isn't helping people to learn just by doing so. If you'd like to show off your scripts to others, post them in the Code Gallery subforum. Find this post, here
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #4  
Old 07-08-2008, 04:59 PM
kodster200 kodster200 is offline
One Globals Love To Hate
kodster200's Avatar
Join Date: Aug 2006
Posts: 17
kodster200 is an unknown quantity at this point
Thx Stryke and i know TSA but every time i find a nat to work for me an my friend they just do what they want so yeah... and scripters these days are always taken on the classic servers
Reply With Quote
  #5  
Old 07-08-2008, 05:07 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by kodster200 View Post
and scripters these days are always taken on the classic servers
I don't work on a Classic server.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #6  
Old 07-08-2008, 05:23 PM
kodster200 kodster200 is offline
One Globals Love To Hate
kodster200's Avatar
Join Date: Aug 2006
Posts: 17
kodster200 is an unknown quantity at this point
Quote:
Originally Posted by xXziroXx View Post
I don't work on a Classic server.
you used to and i thought u woulda been to busy with the current server ur workin on which btw is lookin awsome i was on it not that long ago and lovd it xD
Reply With Quote
  #7  
Old 07-08-2008, 07:30 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by kodster200 View Post
Thx Stryke and i know TSA but every time i find a nat to work for me an my friend they just do what they want so yeah... and scripters these days are always taken on the classic servers
Where are you looking?

Most scripters work on UC servers.

Of course Classic servers need scripters ... just because they have them does not mean they take all of the scripters up.

Try learning to script.
__________________
Reply With Quote
  #8  
Old 07-19-2008, 02:48 AM
DarkReaper0 DarkReaper0 is offline
No.
DarkReaper0's Avatar
Join Date: May 2005
Location: Texas,USA
Posts: 344
DarkReaper0 will become famous soon enough
Send a message via MSN to DarkReaper0
Quote:
Originally Posted by kodster200 View Post
i need a script template at the least for clones which follow you/you can also control or something along those lines also so if you take damage its your clones which actually take the damage and they have a fixed hp which goes up each lvl (the ammount of hp for the clones that goes up i could prob do) sorry if this is to complicated i never have been able to learn gs2 (ive tried quite a few times just to complicated for me lol)

1) True, hire a scripter

2) Would it kill you to use punctuation or hit your return key every once in a while? My eyes are bleeding
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 05:36 PM.


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