Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 11-08-2004, 11:44 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
I got mos tof it, like the fact that it was creating something, it's just complex and a little hard to follow, and seems like it will be ahrder than gscript 1
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #32  
Old 11-09-2004, 12:08 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
I, personally, cannot wait.
Reply With Quote
  #33  
Old 11-09-2004, 03:22 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by falco10291029
I got mos tof it, like the fact that it was creating something, it's just complex and a little hard to follow, and seems like it will be ahrder than gscript 1
No it's simplier, try the same with the old engine ...
e.g. imagine this:

setstring clientr.hp,#v(strtofloat(#s(clientr.hp)) + 1);

in new script is

clientr.hp++;
Reply With Quote
  #34  
Old 11-09-2004, 04:10 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Quote:
Originally Posted by Stefan
No it's simplier, try the same with the old engine ...
e.g. imagine this:

setstring clientr.hp,#v(strtofloat(#s(clientr.hp)) + 1);

in new script is

clientr.hp++;
*tears of joy* Wow, editing strings with ++? It's so beautiful. But on a more serious note, i obviously meant the script you showed, not all of it since I can't possibly know what all the commands/ transformations will be like.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #35  
Old 11-09-2004, 04:12 AM
LogicBot LogicBot is offline
Banned
Join Date: Jul 2004
Location: <3Doomsday<3
Posts: 0
LogicBot is on a distinguished road
Send a message via ICQ to LogicBot Send a message via AIM to LogicBot
Quote:
Originally Posted by Slash-P2P
That's supposed to be simple?
Looks simple. Current gScript looks more complicated to me.
Reply With Quote
  #36  
Old 11-09-2004, 06:13 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by LogicBot
Looks simple. Current gScript looks more complicated to me.
Some parts look complicated (such as Stefan's example), and some parts look easy such as changing a string with ++
Reply With Quote
  #37  
Old 11-09-2004, 08:12 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Dudes, that wasn't a string.
__________________
Reply With Quote
  #38  
Old 11-09-2004, 09:59 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally Posted by Kaimetsu
Dudes, that wasn't a string.


It was a spicey meatball! How could you all have been so mistaken!?
Reply With Quote
  #39  
Old 11-09-2004, 10:18 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
In new scripting engine all variables are variant and are handled depending on the operation, so if you do + then it is automatically converting string to float. When changing "clientr.hp" it is also automatically sending it to the client (transferred as flag/string like before).

A simplier example:
NPC Code:

for (pl: allplayers) {
if (!(pl.x in |577,1008| && pl.y in |-200,320|)) {
pl.x = 768 + random(-5,5);
pl.y = 44 + random(-5,5);
pl.sendrpgmessage("Sorry you cannot walk out of this yet.");
}
}



This is for warping people back to the town (on graal3d) if they go out of the town. As you can see it is using the new for-each command, and you don't need to use the with-command so often anymore, since you can call functions of the object easier.
Reply With Quote
  #40  
Old 11-09-2004, 10:33 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
This is for warping people back to the town (on graal3d) if they go out of the town. As you can see it is using the new for-each command, and you don't need to use the with-command so often anymore, since you can call functions of the object easier.
I love it.
Reply With Quote
  #41  
Old 11-09-2004, 11:57 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
I wished that would have crashed when i was allowed on G3d, i REALLY wanted to go play with the dragons

Hmm that example makes gscript 2 look better. Seems as if for certain things converting to it won't be too hard. Im geussing the for (pl: allplayers) means that it is defining pl as allplayers and will be looking at everyone's values for that.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #42  
Old 11-10-2004, 12:50 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by Stefan
A simplier example:
NPC Code:

for (pl: allplayers) {
if (!(pl.x in |577,1008| && pl.y in |-200,320|)) {
pl.x = 768 + random(-5,5);
pl.y = 44 + random(-5,5);
pl.sendrpgmessage("Sorry you cannot walk out of this yet.");
}
}

I understand it
Reply With Quote
  #43  
Old 11-10-2004, 01:29 AM
Benm00t Benm00t is offline
I made a tree!
Benm00t's Avatar
Join Date: Jul 2003
Location: The Intarwebbernetwork!
Posts: 987
Benm00t is on a distinguished road
Quote:
Originally Posted by Slash-P2P
I understand it
So do i, and Gscript1 just went right over my head.

<3 for GScript2. Like Kai said before, if you've ever used a language like C then you should be right at home with GScript2. :-D
Reply With Quote
  #44  
Old 11-10-2004, 01:59 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by Benm00t
So do i, and Gscript1 just went right over my head.

<3 for GScript2. Like Kai said before, if you've ever used a language like C then you should be right at home with GScript2. :-D
I've been using gscript1 since I first started playing Graal back in like 99 or so..
Reply With Quote
  #45  
Old 11-10-2004, 02:04 AM
LogicBot LogicBot is offline
Banned
Join Date: Jul 2004
Location: <3Doomsday<3
Posts: 0
LogicBot is on a distinguished road
Send a message via ICQ to LogicBot Send a message via AIM to LogicBot
Quote:
Originally Posted by Slash-P2P
I've been using gscript1 since I first started playing Graal back in like 99 or so..
"I started playing Graal in 1982, but then we called it 'Zelda Offline' in those days.."



And the simpler one looks more complicated. I hate it when you have to put it in: "&&.{#, script enabled}+!!@#.. @!}" or at least thats how it looks to me. I'll get used to 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 03:47 AM.


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