My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
scripts  
Updated May 12, 2010 by jrs...@gmail.com

#GSC (Godrpg Script)

Scripting in Unnamed Adventure RPG

Procs

Syntax Example Meaning
inject(PartyMember,E) inject("0","100") Party member gains amount of E experience points
Give(PartyMember,itemID,E) Give("0","5","100") Gives E items of itemID kind to PartyMember
desert desert Turns monster encounters off/on
fight(GroupID) fight("1") Invokes fight against monster group GroupID
internet
Write(stuff) Write("1"+"1") Writes some text in text dialog
PushNpc
PushCam
MovCam
MovNpc
Exitp
Exec(path) Exec("scripts/throneroom_event.gsc") Executes external script
if
Say
NoJoy NoJoy Disables user input, prevents main character from moving or invoking menu
LoadMap(x,y,mapname) LoadMap("1","2","inn")
AddNpc
RemoveNpc
RestoreHP
RestoreMP
Scan
Escape
Resurect
Antidote
Elemental
GoTo
Let
AddPartyMember
Inn
NpcFrame(index,frame) NpcFrame("0","4") Changes animaion frame for specified npc index
Redir
SetCollision
SetCamUp(x,y,z)
SetCamPos(x,y,z)
SetCamDir(x,y,z)
SetCamRight(x,y,z)
OpenBox
Shop
Smith
DrainHP
DrainMP
Poison
Elemental

Variables

Variables name can be any literal or even number without quotes. The quotes means that expression is value

Let("myvariable","100")
Write(myvariable)

Writes 100

Let("2","100")
Write(2)

Also writes 100

Conditions and Loops

Let("count","0")
Let("count",count+"1")
if(count="10")
   GoTo("6")
GoTo("2")
Write(count)

Example

Powered by Google Project Hosting