Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-23-2007, 12:56 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Question whats wrong with my script?

I have an online tile editor that i want to be only usable when your in thies 4 rooms. It works with one room but not with 4:
PHP Code:
if ( weaponfired ) {
if (
strequals(#L,room1.nw||#L,room2.nw||#L,room3.nw||#L,room3.nw)) { 
__________________
**FLIP OUT**
Reply With Quote
  #2  
Old 04-23-2007, 01:12 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by theHAWKER View Post
I have an online tile editor that i want to be only usable when your in thies 4 rooms. It works with one room but not with 4:
PHP Code:
if ( weaponfired ) {
if (
strequals(#L,room1.nw||#L,room2.nw||#L,room3.nw||#L,room3.nw)) { 
PHP Code:
if ( weaponfired ) {
  if (
strequals(#L,room1.nw) || strequals(#L,room2.nw) || strequals(#L,room3.nw) || strequals(#L,room3.nw)) {
  
}

[/QUOTE]
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 04-23-2007, 01:17 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
PHP Code:
if (createdsetstring this.rooms,room1.nw,room2.nw,room3.nw,room4.nw;
if (
weaponfired) {
  if (
strcontains(#s(this.rooms),#L)) {
    //stuff
  
}

Would be more along the lines of what you're looking for, I believe.
Reply With Quote
  #4  
Old 04-23-2007, 01:18 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
ok, thank you
__________________
**FLIP OUT**
Reply With Quote
Reply


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 02:58 PM.


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