Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 12-24-2012, 01:31 PM
Trakan Trakan is offline
It's all about cats!
Trakan's Avatar
Join Date: Sep 2010
Location: France
Posts: 64
Trakan is an unknown quantity at this point
Quote:
Originally Posted by scriptless View Post
Change
PHP Code:
if (weaponfired) { 
to

PHP Code:
function onWeaponFired() { 
Then change anything with

PHP Code:
playerx
playery
playerdir 
to

PHP Code:
player.x
player
.y
player
.dir 
Then with
PHP Code:
setani
freezeplayer
sleep 
us

PHP Code:
setani()
freezeplayer()
sleep() 
That's pretty much all you gotta do to convert it from GS1 to GS2.
Thanks , but, this
player.x += 0.1;
sleep .1;
player.x += 0.1;
sleep .1;
player.x += 0.1;
sleep .1;
player.x += 0.1;
it's really ugly
Any way to change that?

Quote:
Originally Posted by Gunderak View Post
First off, welcome?
Secondly, GS1 won't get you far.
When I first started with Graal development I tried learning GS1 (stupidly) from the offline editor.
First off, i've said "Hey!" just look.
Secondly, i was on GraalReborn because it's free, so it's gs1 only.
Next, i don't have the time now for learn gs2 and that's not my work on my principal work on my project.

And finally, did you have a way to block player from going in blocking tiles, because with this script players can go anywhere they want

Last edited by Trakan; 12-24-2012 at 02:24 PM..
Reply With Quote
 


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 03:47 PM.


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