View Single Post
  #8  
Old 06-26-2005, 12:38 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally Posted by KuJi
Then is their anyway I can do it as how I am trying to?

I am trying to make it do like this:

if (strequals(#p(0),stats)) {
if (strequals(#p(1),hurt)) // Hurt
}

How would I do something like that in gscript2 then?
NPC Code:

function onActionServerside() {
if (params[1] == "stats") {
if (params[2] == "hurt") {
//stuff
} else if (params[2] == "stuff") {
}
} else if (params[1] == "stuff") {
}
}

Reply With Quote