summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-13 12:32:22 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:45 +0200
commit9ff69160ea1c3c64ea7012cd70a3b50ff4373264 (patch)
tree05b11f2a1eb323c1809267a0a8fc08b5e2f279ac /example
parentf162b9780fad3de2b5d85fbfceb6e4d4e22a2bfd (diff)
downloadmanaserv-9ff69160ea1c3c64ea7012cd70a3b50ff4373264.tar.gz
manaserv-9ff69160ea1c3c64ea7012cd70a3b50ff4373264.tar.bz2
manaserv-9ff69160ea1c3c64ea7012cd70a3b50ff4373264.tar.xz
manaserv-9ff69160ea1c3c64ea7012cd70a3b50ff4373264.zip
[Abilities] Renamed specials to abilities
Diffstat (limited to 'example')
-rw-r--r--example/abilities.xml (renamed from example/specials.xml)14
-rw-r--r--example/permissions.xml8
-rw-r--r--example/scripts/abilities.lua (renamed from example/scripts/special_actions.lua)14
-rw-r--r--example/scripts/main.lua2
-rw-r--r--example/settings.xml2
5 files changed, 20 insertions, 20 deletions
diff --git a/example/specials.xml b/example/abilities.xml
index dfcfab79..317a4737 100644
--- a/example/specials.xml
+++ b/example/abilities.xml
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
-<specials>
- <special-set name="Magic">
- <special
+<abilities>
+ <ability-set name="Magic">
+ <ability
id="1"
name="Test Spell 1"
rechargeable="true"
needed="100"
rechargespeed="10"
/>
- <special
+ <ability
id="2"
name="Test Spell 2"
rechargeable="true"
@@ -16,7 +16,7 @@
rechargespeed="10"
target="being"
/>
- <special
+ <ability
id="3"
name="Test Spell 3"
rechargeable="true"
@@ -24,5 +24,5 @@
rechargespeed="10"
target="point"
/>
- </special-set>
-</specials>
+ </ability-set>
+</abilities>
diff --git a/example/permissions.xml b/example/permissions.xml
index 4c46af1a..6385d505 100644
--- a/example/permissions.xml
+++ b/example/permissions.xml
@@ -25,10 +25,10 @@
<allow>@killmonsters</allow>
<allow>@getpos</allow>
<allow>@effect</allow>
- <allow>@givespecial</allow>
- <allow>@takespecial</allow>
- <allow>@rechargespecial</allow>
- <allow>@listspecials</allow>
+ <allow>@giveability</allow>
+ <allow>@takeability</allow>
+ <allow>@rechargeability</allow>
+ <allow>@listabilities</allow>
</class>
<class level="4">
<alias>gm</alias>
diff --git a/example/scripts/special_actions.lua b/example/scripts/abilities.lua
index e18299a2..35cc1d25 100644
--- a/example/scripts/special_actions.lua
+++ b/example/scripts/abilities.lua
@@ -1,22 +1,22 @@
--[[
- Special action script file
+ Abilities script file
- This file allows you to implement your special action system. The system can
+ This file allows you to implement your ability action system. The system can
for example implement magic, physical attack or also such mundane things as
showing emoticons over the characters heads.
--]]
-local spell1 = get_special_info("Magic_Test Spell 1")
-spell1:on_use(function(user, target, specialid)
+local spell1 = get_ability_info("Magic_Test Spell 1")
+spell1:on_use(function(user, x, y, abilityId)
target = target or user
target:say("Kaaame...Haaame... HAAAAAA!")
- user:set_special_mana(specialid, 0)
+ user:set_ability_mana(abilityId, 0)
end)
spell1:on_recharged(function(ch) ch:say("Hoooooooo...") end)
-local spell2 = get_special_info(2)
+local spell2 = get_ability_info(2)
spell2:on_use(function(user) user:say("HAA-DOKEN!") end)
-get_special_info(3):on_use(function(user) user:say("Sonic BOOM") end)
+get_ability_info(3):on_use(function(user) user:say("Sonic BOOM") end)
diff --git a/example/scripts/main.lua b/example/scripts/main.lua
index b43dd420..7093f112 100644
--- a/example/scripts/main.lua
+++ b/example/scripts/main.lua
@@ -7,7 +7,7 @@
-- At the moment the event handlers are split up over the following files:
require "scripts/global_events"
-require "scripts/special_actions"
+require "scripts/abilities"
require "scripts/crafting"
require "scripts/attributes"
diff --git a/example/settings.xml b/example/settings.xml
index 407b6f62..f4a46e9e 100644
--- a/example/settings.xml
+++ b/example/settings.xml
@@ -1,9 +1,9 @@
<settings>
<include file="paths.xml" />
+ <include file="abilities.xml" />
<include file="maps.xml" />
<include file="attributes.xml" />
<include file="skills.xml" />
- <include file="specials.xml" />
<include file="equip.xml" />
<include file="items.xml" />
<include file="monsters.xml" />