Quote:
Originally posted by GoZelda
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.
|
That will be possible in the new script engine, just wait