Editing
Age4/object types
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== How Scripting works == Objects can have some code added to their action field to allow certain game actions such as buying an item or learning a skill. All objects that are clickable at all, may contain a object code script. The object code/script consists of the action name and some number of variables. Each type has its own interpretation of what these variables / values mean. The following variables are available. The variables are always lowercase unless specified below: * '''type''' - What comes immediately after #type, ex: #type npc, the type is npc. * '''name''' - A string value used by scripts, if you have the name of something use name. Multi-word items need spaces replaced by underscore _. In other words "Long Item Name" should be Long_Item_Name. * '''id''' - An integer value used by scripts * '''val''' - An integer value used by scripts * '''range''' - Force a player to get close to an object to be able to use it. * '''npc''' - The name of the npc that this object will use custom messages from. Note this is different than the type npc. It is mostly used by alignment restricted actions to give the player a roleplaying reason of why they can't perform the action clicked on. * '''ali''' - Alignment requirement. Default: neutral. Must be one of the words: good, evil, or neutral. If set to good, it checks if the player alignment is greater than alv. If set to evil checks if the player alignment is less than alv. If set to neutral or otherwise not set, alignment setting is ignored. * '''alv''' - "Alignment Value" - An integer value * '''area''' - (not used) was for a feature that never made it in related to restricting usage of objects to a defined volume. This was a numeric id number that corresponded to an area system.
Summary:
Please note that all contributions to zoywiki.com are considered to be released under the Attribution-Noncommercial-Share Alike 3.0 Unported (see
zoywiki.com:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
zoywiki.com
Main Page
Recent Changes
Game
Age4
Archived Games
Community
Admin Discussion
Zoywiki Tutorials
Random Page
Tools
What links here
Related changes
Special pages
Page information