The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Race-specific Words of Power
Author Message
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #1
Race-specific Words of Power
Hello,

perhaps some of you allways wanted to give their Races a specific langugage. Although this is not "really possible" for normal sentences, you could give your races (and NPCs) specific words of power in their own language.

This script (with use of many "languages" for races and different kind of monsters) has been used on our shard for a very long time.
It was not "made" by me, but i think it would be beneficial on other shards as well

It is really simple, if you apply the events/functions in the right way. For an example :

As a player (Human) you would only need to add e_wop_hum to all Human-Charakters. For Elves it would be e_wop_elv.

If you want to let your NPCs cast in their own languange, it depends on how your magery-system works.
If you only use the standard-spells, you can just add the event to every monster ( ex : Events +e_wop_demon )
If you change the Spell @spellcast by altering ARGN1, adding the event won't work. In this case, you need to add the following entry to every monster (The cause is the order, in which the trigger/events are fired) :

on=@spellcast
....
.....
.....
f_wop_hum <SERV.SPELL.<ARGN1>.RUNES>
return 0

Perhaps someone might want to try it, since it is very easy.
Code:
[EVENTS e_wop_hum]
ON=@SPELLCAST
f_wop_hum <SERV.SPELL.<ARGN1>.RUNES>
RETURN 0

[FUNCTION f_wop_hum]
IF (<ARGV>)
    LOCAL.WOP=<f_wop_hum_get <ARGV[0]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[1]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[2]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[3]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[4]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[5]>>
    SAY <STRSUB 0 100 <LOCAL.WOP>>
ENDIF

[FUNCTION f_wop_hum_get]
DOSWITCH <ARGN1>
    RETURN ""
    RETURN " An"
    RETURN " Bet"
    RETURN " Corp"
    RETURN " Des"
    RETURN " Ex"
    RETURN " Flam"
    RETURN " Grav"
    RETURN " Hur"
    RETURN " In"
    RETURN " Jux"
    RETURN " Kal"
    RETURN " Lor"
    RETURN " Mani"
    RETURN " Nox"
    RETURN " Ort"
    RETURN " Por"
    RETURN " Quas"
    RETURN " Rel"
    RETURN " Sanct"
    RETURN " Tym"
    RETURN " Uus"
    RETURN " Vas"
    RETURN " Wis"
    RETURN " Xen"
    RETURN " Ylem"
    RETURN " Zan"
    RETURN ".*speaks incomprehensible words*."
ENDDO

Example for a elven-like-language :

Code:
[EVENTS e_wop_elv]
ON=@SPELLCAST
f_wop_elv <SERV.SPELL.<ARGN1>.RUNES>
RETURN 0

[FUNCTION f_wop_elv]
IF (<ARGV>)
    LOCAL.WOP=<f_wop_elv_get <ARGV[0]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[1]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[2]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[3]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[4]>>
    LOCAL.WOP=<LOCAL.WOP><f_wop_me_get <ARGV[5]>>
    SAY <STRSUB 0 100 <LOCAL.WOP>>
ENDIF

[FUNCTION f_wop_elv_get]
DOSWITCH <ARGN1>
    RETURN ""
    RETURN " u"
    RETURN " eidinn"
    RETURN " nuru"
    RETURN " torn"
    RETURN " fairiĆ«"
    RETURN " naur"
    RETURN " melehte"
    RETURN " gwaew"
    RETURN " casta"
    RETURN " haru"
    RETURN " nahame"
    RETURN " calad"
    RETURN " cuil"
    RETURN " ihoer"
    RETURN " sairina"
    RETURN " rine"
    RETURN " furu"
    RETURN " ahya"
    RETURN " varile"
    RETURN " anann"
    RETURN " eria"
    RETURN " tura"
    RETURN " gul"
    RETURN " ulunn"
    RETURN " hru"
    RETURN " fume"
    RETURN ".*speaks incomprehensible words*."
ENDDO

I just entered the wops into an sindarin-translater, so not every wop is "correct"
09-26-2013 10:55 AM
Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #2
RE: Race-specific Words of Power
Actually language totally works if you do a major script overhaul. I have a system for it. I'll try and dust it off and upload it. As usual for me it's based on older scripts.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
09-29-2013 06:02 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)