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 07-09-2009, 11:54 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Cool player.zoom

okay i tried player.zoom but people dont see me zoomed

im thinking on maby putting it in a gani

but im not exactly sure what to type in the gani to zoom
Reply With Quote
  #2  
Old 07-10-2009, 12:11 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
Ya, you have to put it in the gani.
Reply With Quote
  #3  
Old 07-10-2009, 12:23 AM
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
Use gani scripts or loop through players and store the values in a player.attr flag.
__________________
Reply With Quote
  #4  
Old 07-10-2009, 02:29 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
im not sure how to do that

is it possible to use it as inexample

and dusty read the hole thread

it says im not sure how to put it in a gani tho

im not asking if i can put it in 1
Reply With Quote
  #5  
Old 07-10-2009, 02:33 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
Quote:
Originally Posted by GULTHEX View Post
and dusty read the hole thread
I read the 'hole' thread. You said, and I quote! "im thinking on maby putting it in a gani" and I confirmed that.
Reply With Quote
  #6  
Old 07-10-2009, 02:35 AM
Unkownsoldier Unkownsoldier is offline
Ignorance has no future
Join Date: Sep 2008
Posts: 1,287
Unkownsoldier is on a distinguished road
Quote:
Originally Posted by GULTHEX View Post
okay i tried player.zoom but people dont see me zoomed

im thinking on maby putting it in a gani

but im not exactly sure what to type in the gani to zoom
Gulthex, don't snap at Dusty, and you should type with proper grammar, not spacing your lines like that, using capitols and periods. Also, you don't type in a gani, you first create a gani, then implement that into a script. I suggest you read some of the other threads in here, they can explain how scripts work, and if you need help with ganis I suggest you go to that sub forum and ask.
__________________
Look beyond the monitor.
Reply With Quote
  #7  
Old 07-10-2009, 02:43 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
im only 12 im not usto using caps XD
Reply With Quote
  #8  
Old 07-10-2009, 02:58 AM
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
Quote:
Originally Posted by GULTHEX View Post
im only 12 im not usto using caps XD
You're only twelve? I was typing proper sentences when I was 12. Don't make excuses, make changes.

You need to have a GANI script, and in that GANI script, change player.zoom. You then put "ganiname.gani" into one of the player's player.attr[]'s, and then everyone will see it.
__________________
Reply With Quote
  #9  
Old 07-10-2009, 03:01 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
So you mean do this

PHP Code:
SCRIPT
//#CLIENTSIDE
if (created) {
  
player.zoom=2;
}
SCRIPTEND 
inside the gani in notepad..

Then put the gani in a players attr's


And i just put caps

Last edited by Tigairius; 07-10-2009 at 04:20 AM.. Reason: Wrap your code in php or html tags, read the rules or stop posting.
Reply With Quote
  #10  
Old 07-10-2009, 03:56 AM
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
Quote:
Originally Posted by GULTHEX View Post
So you mean do this

SCRIPT
//#CLIENTSIDE
if (created) {
player.zoom=2;
}
SCRIPTEND

inside the gani in notepad..

Then put the gani in a players attr's


And i just put caps
That's the idea but some people use parameters to control the zoom instead a solid number.
__________________
Quote:
Reply With Quote
  #11  
Old 07-10-2009, 09:22 AM
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
PHP Code:
SCRIPT
function onPlayerEnters()
{

  
player.zoom 2;

}
SCRIPTEND 
No need for //#CLIENTSIDE in a gani since it is clientside by default and try not to use GS1. =]
add that to the bottom of a gani. (if you're using idle or other default ganis, please name it different and use replaceani() so you dont overwrite peoples default ganis)
__________________
Deep into the Darkness peering...
Reply With Quote
  #12  
Old 07-10-2009, 09:28 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
Also, onCreated() is not reliable in gani scripts, as with Angel's script shows you should be using onPlayerEnters() instead.
Reply With Quote
  #13  
Old 07-10-2009, 03:59 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by DustyPorViva View Post
Also, onCreated() is not reliable in gani scripts, as with Angel's script shows you should be using onPlayerEnters() instead.

Well, you can still use onCreated() but you'll just need a blank onPlayerEnters() in the script to make sure the script is always executed since the onPlayerEnters() works like a "wake-up call." I suppose it would make more sense to just use onPlayerEnters() instead to save the hassle but the onCreated() can still be reliable as long as you have an onPlayerEnters() as well.
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 12:38 PM.


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