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 08-02-2011, 09:17 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Regadring The Chckbox Gui.

im making a feedback script that echo's to rc for example.
PHP Code:
echo("New Feedback!"@player.nick@"Question 1: Do You Like The Server?"@checkbox_1.status); 
what would you use to echo the status of a checkbox?
sorry if im asking in the wrong area. i dont go on forums that much.

@The Title. Sorry i accidentally mis spelt the title X_X
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #2  
Old 08-02-2011, 09:34 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
checkbox_1.checked

However, to access that object directly you'd have to be on the clientside so this wouldn't echo to RC. You'd need to pass the state of that check box to the serverside
Reply With Quote
  #3  
Old 08-02-2011, 09:37 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
in the time i posted it i have figured out how to change the stats but i think maybe by setting a serverside flag youd be able to display it? like
PHP Code:
if(checkbox_1.checked == true){
server.checkbox1=
then
PHP Code:
function onActionServerSidecmd ){
  if ( 
cmd == "SendFeedback" ) {
  echo(
"TESTING"@server.checkbox1);
  }
  } 
maybe thatd work il have to experiment.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #4  
Old 08-02-2011, 10:09 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
You can't set server. flags clientside. You can't even see server. flags clientside: only serverr. (but you can't set those either).

Use a triggerserver()
Reply With Quote
  #5  
Old 08-02-2011, 10:14 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by Gunderak View Post
in the time i posted it i have figured out how to change the stats but i think maybe by setting a serverside flag youd be able to display it? like
PHP Code:
if(checkbox_1.checked == true){
server.checkbox1=
then
PHP Code:
function onActionServerSidecmd ){
  if ( 
cmd == "SendFeedback" ) {
  echo(
"TESTING"@server.checkbox1);
  }
  } 
maybe thatd work il have to experiment.
this wouldn't be a good idea since you'd have to be constantly chjecking to see if a server var changed, and it wouldn't be unique to the players. You should be using a triggerserver to send the data and store it on the server.
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 04:22 PM.


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