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
  #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
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.