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
  #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
  #46  
Old 11-10-2004, 02:21 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Stefan
NPC Code:

function compileScript() {
script = "";
script.add("function onCreated() {");

for (con: this.containers)
addControlCreationScript(script.link(),con,0);

script.add("}");
script.savelines("weapon.txt",0);

ScriptEditor.openScriptWindow(script);
}

Ruby (hackish):
NPC Code:

def compile_script
script = "function onCreated() {\n"\
" #{@containers.map{|con| control_creation_script(con, 0)}.join("\n ")}\n"\
"}"
File.open('weapon.txt', 'w') {|f| f.puts script }
ScriptEditor.open_script_window(script)
end

Reply With Quote
  #47  
Old 11-10-2004, 03:28 AM
Andares Andares is offline
Scr1pt3r-ish
Andares's Avatar
Join Date: Mar 2004
Posts: 55
Andares is on a distinguished road
Send a message via AIM to Andares
Quote:
Originally Posted by Loriel
Ruby (hackish):
NPC Code:

def compile_script
script = "function onCreated() {\n"\
" #{@containers.map{|con| control_creation_script(con, 0)}.join("\n ")}\n"\
"}"
File.open('weapon.txt', 'w') {|f| f.puts script }
ScriptEditor.open_script_window(script)
end

I'm a ruby nuby, please explain it :O.
Btw, I'd love -c on #gscript, pls.
__________________
Quote:
<Wan> Can I have a poll? Do people mind if I talk about sexual intercourse between two human beings?
<Kai> Wan, I think the problem is that it's basically ALL you talk about
<Wan> Ahhhhhh
Aim: AtariTandy | Job: Sanstrata)
Reply With Quote
  #48  
Old 11-10-2004, 03:49 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Is there an 'estimated' date for the release of a solid v3/GScript2?
Reply With Quote
  #49  
Old 11-10-2004, 04: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 Ajira
Is there an 'estimated' date for the release of a solid v3/GScript2?
This is Graal Online...so...nope
Reply With Quote
  #50  
Old 11-10-2004, 05:21 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 SlashP2P
This is Graal Online...so...nope
Exactly, and if they did say one....well let's just all look at G3D lol
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #51  
Old 11-10-2004, 06:27 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 falco10291029
Exactly, and if they did say one....well let's just all look at G3D lol
There was supposed to be a preview in first quarter 2003 haha.
Reply With Quote
  #52  
Old 11-10-2004, 10:33 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Quote:
There was supposed to be a preview in first quarter 2003 haha.
My sentiments exactly.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #53  
Old 11-10-2004, 11:32 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Andares
I'm a ruby nuby, please explain it :O.
Btw, I'd love -c on #gscript, pls.
Query me on freenode
Reply With Quote
  #54  
Old 11-13-2004, 06:38 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
It looks simple to me o.o
Although I did learn Torque Engine script in 2 hours just from looking at the sample files...
__________________
Do it with a DON!
Reply With Quote
  #55  
Old 11-13-2004, 01:50 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by zokemon
Although I did learn Torque Engine script in 2 hours just from looking at the sample files...
I am completely and unsarcastically certain that this is true!
__________________
Reply With Quote
  #56  
Old 11-13-2004, 02:15 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Stefan that warping script for graal 3d looks simple. Even I understand it.
__________________
Reply With Quote
  #57  
Old 11-13-2004, 08:53 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Kaimetsu
I am completely and unsarcastically certain that this is true!
Ehh...?
__________________
Do it with a DON!
Reply With Quote
  #58  
Old 11-15-2004, 02:46 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
hey, question. WIll you be able to use Gscript 1 and 2 in the exact same script, like:
NPC Code:

if (playerenters) {
for (q: players//not sure if this is usable, just trying to use a gs2 command) {

if (q.x>30) setplayerprop#c, HOLY CRAP! I have been seen with my x above 30 with a combined script that uses GS1 and 2!;

}


}

__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #59  
Old 11-15-2004, 03:47 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by falco10291029
WIll you be able to use Gscript 1 and 2 in the exact same script
This has already been answered in the thread. Recap: Yes, but don't.
__________________
Reply With Quote
  #60  
Old 11-15-2004, 03:59 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Oh, geuss i misunderstood that part
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #61  
Old 11-18-2004, 05:10 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is a jewel in the roughMysticalDragon is a jewel in the rough
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
it should be released soon ,expecially for the ones that want everything to be done in Gscript2 like Element.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #62  
Old 11-18-2004, 09:37 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by MysticalDragon
it should be released soon ,expecially for the ones that want everything to be done in Gscript2 like Element.
Hope you're right...
Reply With Quote
  #63  
Old 11-18-2004, 09:39 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
I'll most likely use mainly Gscript1 but adding in things from gscript2 that make the script more efficient.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #64  
Old 11-18-2004, 10:27 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
I'll probably redo Element in GS2.
Reply With Quote
  #65  
Old 11-19-2004, 12:22 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by MysticalDragon
it should be released soon ,expecially for the ones that want everything to be done in Gscript2 like Element.
Quote:
Originally Posted by Slash-P2P
I'll probably redo Element in GS2.
__________________
Do it with a DON!
Reply With Quote
  #66  
Old 11-19-2004, 12:40 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
We are currently testing the new scripting engine and new mudlib with Graal Kingdoms (on hidden server "Scriper Server"). Those are the incompatibilities which I have seen yet:

- this.timeout, this.x, this.y etc. are mapped to timeout,x,y in the new engine, while in the old engine they are normal variables; this is not simple to fix, so it would be better if the scripts are fixed, the npcserver could eventually give a warning if such variables are found when compiling the script

- if (x,y in |0,64|) doesn't work because the comma makes problems; it would be better to write if (x in |0,64| && y in |0,64|)

- function SetAni() { setani sword,; } doesn't work, because "setani sword,;" is internally converted to "setani("sword","")" and function names are case-insensitive, so it would either cause an "endless" loop (if it is allowed to overwrite default functions, like it is currently), or calls to SetAni() wouldn't work because it would call the default function (if overwriting of default functions is not allowed); in the old engine it was not a problem because functions and commands were handled differently
Reply With Quote
  #67  
Old 11-19-2004, 07:08 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Sounds much better handled then Gscript1
__________________
Do it with a DON!
Reply With Quote
  #68  
Old 11-20-2004, 12:15 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
We are currently testing the new scripting engine and new mudlib with Graal Kingdoms (on hidden server "Scriper Server").
Release the old mudlib for Graal Kingdoms
Reply With Quote
  #69  
Old 11-20-2004, 02:47 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Slash-P2P
Release the old mudlib for Graal Kingdoms
Give me money
__________________
Do it with a DON!
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 01:40 AM.


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