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
  #1  
Old 10-05-2003, 11:09 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
New Scripting Engine Suggestions

Well, i got this idea mainly from JavaScript. In Javascript, you can edit objects on a website, with comments like:
NPC Code:

document.write.Hi i know Javascript
form.name.write.Me too!


Wouldn't it be very useful if this was possible with GScript too?
NPC Code:

//Statue
name=Statue
function switch(){
setgani statue_switch;
}


This is a statue that will switch when a lever is pulled
NPC Code:

//Lever
if (playertouchsme){
level.npc.Statue.switch();
}


So you have to "declare" a NPC first (else it can't be accesed from outside). So you can also destroy a NPC from outside(level.npc.--name--.destroy and a lot of other functions. Also, maybe tiles could be accesable, and links.
Quote:
My list of accesable objects:

level.npc
level.tile
level.link
player.head
player.body
playery.chat
player.colors
player.sword
player.shield
player.attributes
server.players
server.npcs.type
server.tiles.type
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
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 01:38 AM.


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