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 03-31-2007, 06:27 PM
Devenio Devenio is offline
Scripter
Devenio's Avatar
Join Date: Dec 2006
Posts: 28
Devenio is on a distinguished road
Exclamation GS1 to GS2

Ok im really getting mad[]... how do you use #v from gs1 in gs2???

like
gs1: setcharprop #v(this.age);
gs2: chat = ???;

plz help
__________________

"Two things are infinite: the universe and human stupidity, and I'm not sure about the the universe.." -Einstein


Reply With Quote
  #2  
Old 03-31-2007, 06:32 PM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
you have got to be kidding me...

chat = "Your age is " @ this.age;
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #3  
Old 03-31-2007, 06:37 PM
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
What? Everyone is supposed to magically learn this stuff in their sleep?
Reply With Quote
  #4  
Old 03-31-2007, 06:38 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Devenio View Post
no that still shows the .19501 after........ i only want whole numbers noob...
PHP Code:
this.chat "Your age is " int(this.age); 
Also, #v() will also show the decimal places. :|
__________________
Skyld
Reply With Quote
  #5  
Old 03-31-2007, 06:39 PM
Devenio Devenio is offline
Scripter
Devenio's Avatar
Join Date: Dec 2006
Posts: 28
Devenio is on a distinguished road
thank you.
__________________

"Two things are infinite: the universe and human stupidity, and I'm not sure about the the universe.." -Einstein


Reply With Quote
  #6  
Old 03-31-2007, 06:42 PM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Quote:
Originally Posted by DustyPorViva View Post
What? Everyone is supposed to magically learn this stuff in their sleep?
It would take less than 5 minutes of research to find out how to use variables in gs2.

Quote:
no that still shows the .19501 after........ i only want whole numbers noob...
You specified that you wanted to show variables, which is what I showed you. Nowhere did you specify that you wanted it to be an integer.

int(this.age) is what you want for an integer.
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #7  
Old 03-31-2007, 08:33 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
http://wiki.graal.us/GScript

scroll to the bottom, has a decent converting guide
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 03-31-2007, 09:38 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
In GS1, you have to use #v ...
instead just put the variable.

use '@' and 'SPC' to seperate variables.
If you want to directly input text, put it in quotes.

Example:
PHP Code:
this.variable "lolvar";
player.chat "This is a variable:" SPC this.variable
__________________
Reply With Quote
  #9  
Old 03-31-2007, 10:18 PM
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
You know, it's incredible that you ask for help and call someone a noob when they didn't do something you didn't even request for.
As for research, perhaps. But not everyone knows about the wiki's. Anyways, there should be no reason to think that way about anyone for asking for help, it's not like the Graal forums are flooding insanely fast with posts that this is holding back the important stuff. Though I'm reluctant to defend his request after his one comment.
Reply With Quote
  #10  
Old 04-10-2011, 08:11 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Thumbs down

I wish people could try to be more nicer about these things...

It took me so long to figure out what @ did, and still don't understand if SPC can replace @ to add a space instead of @" "@, which also confused the heck out of me until I figured out what @ did.

And if you don't know what @ does, or that it should be used... how would you look it up, let alone in 5 minutes? x.x;

It sounds to me, besides the point the poster was while mad asking the question, his first reply wasn't all that great.. If it were me who received it I would took the first sentence as the guy calling me stupid.

Even then saying something bad back isn't much better. :[

At least he got what he wanted though right?

Also, personally I hate wiki.. doesn't really help much or give you examples.. At least not for the GUIs which I tend to try and figure out and end up asking someone. x.x;

I think I may make a tutorial some time for this after I try to make a tutorial for ganis via text.


Some people, that I've seen state it on the forum, seem to think some of this stuff is common sense. Asking almost everyone on Graal they wouldn't have a clue what most of the codes mean.. not everyone is a programmer, and if it isn't known by the majority.. it isn't very common..

I actually came in to help, but since the solution was stated, I might as well say again, I don't understand SPC quite clearly.. does this only replace @ but with a space like @" "@. Anyway, after this message I doubt I will get a nice reply. Thing is as far as I know, I have not needed SPC so I suppose it is alright if no one tells me.. should I need it, I can take 5-60 minutes looking it up on wiki. Actually I went to wiki, it is actually Graal Bible that takes me long, wiki is just confusing and I don't even try to use it

Graal Bible directed me to it, but not directly to help, only something that used it.. which .. sort of helps but again Graal Bible doesn't really explain things..

Anyway, forget I asked o.O;
Play nice everyone!



--EDIT--
I also figured out what @ did by trying it my self to see what happened.. sometimes you just need to see what people are doing on the forum and attempt and see what things do.
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



Reply With Quote
  #11  
Old 04-10-2011, 08:24 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Just give it a rest already, jesus christ. This is a 4 year old thread that didn't warrant the moaning post you just made.
__________________
Quote:
Reply With Quote
  #12  
Old 04-13-2011, 11:40 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
As for moaning, I don't see anything wrong with it, and some people like it, other than that I did not know this post was four years old.

Next time I will ask for a warrant. D:

It would still be nice if people did not go off on others..
Take your post for example... I may be new, and ignorant to post dates, but how could I have known moderators secretly don't want people to post on old threads or don't want to close them..

Would you think I intentionally came into a four year old post to help a person if I would have known the date? lol

Anyway, my fault.
Perhaps someone could delete the thread and store the information learned in a bigger thread.. Possibly a better named thread.. Reason is when I search for switch and case, I always find a thread asking for help on it, pointing to a horribly named thread with better details on switch and case.

Someone should work on keeping the forums more organized and relevant for how people search things... Anyway, I didn't know this thread had a reply until I seen my reputation on the post ... a status which I could care less about ... and checked to see if there was a reply.

I will check forum post dates next time so I am not publicly humiliated next time. ^.^
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



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:09 AM.


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