I'm playing UO on a freeshard on which you can believe in a god. addicted to the god you're belieaving in, your'e having a second spellbook. in this spellbook are "religion oriented" spells. for example: summon a daemon, etc...
my question is: how can i realize this using uox3 (these second spellbooks)
and: how can i realize some religions by itself? for example: spawning npc's attacking only human players not belonging to a specified religion.
thanks, and sorry for my bad english.
"Special Spellbooks"
-
GhostTyper
- UOX3 Neophyte
- Posts: 26
- Joined: Sun Sep 18, 2005 2:00 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
Creating such "special spellbooks" is quite possible. All you'd do is make a book-item and assign a javascript to it which when used will open a custom-designed gump with buttons in it for choosing spells to cast.
Of course, you'd have to both design the actual gump as well as the spells you wanted to cast.
As for realizing your idea of religions where you could be spawning npcs attacking only human players not belonging to a specific religion... that's harder. You have the ability to script ai-specific stuff for NPCs, the only problem is you cannot currently script "some" ai only - if you use the onAISliver event, as it's called, you'll have to recreate the entire AI for those specific NPCs, including movement, combat, etc.
Of course, you'd have to both design the actual gump as well as the spells you wanted to cast.
As for realizing your idea of religions where you could be spawning npcs attacking only human players not belonging to a specific religion... that's harder. You have the ability to script ai-specific stuff for NPCs, the only problem is you cannot currently script "some" ai only - if you use the onAISliver event, as it's called, you'll have to recreate the entire AI for those specific NPCs, including movement, combat, etc.
-= Ho Eyo He Hum =-
-
GhostTyper
- UOX3 Neophyte
- Posts: 26
- Joined: Sun Sep 18, 2005 2:00 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
is there any example script for such an ai, or for a "custom-designed gump" and for interacting with the buttons pressed in it?
thanks, and sorry for my bad english.
thanks, and sorry for my bad english.
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
There are currently no example scripts for custom AIs. For a "custom-designed gump" check out the following thread:
http://uox3.org/forums/viewtopic.php?p=2548
Check out the UOX3 JS Docs for explanations of the various events and methods used in the example:
https://www.uox3.org/jsdocs/index.html
http://uox3.org/forums/viewtopic.php?p=2548
Check out the UOX3 JS Docs for explanations of the various events and methods used in the example:
https://www.uox3.org/jsdocs/index.html
-= Ho Eyo He Hum =-