View Single Post
  #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