Playable Rhaloren (Buggy Beta)
Moderator: Moderator
-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Playable Rhaloren (Buggy Beta)
Adds the new Rhaloren race!
Available here
This is my first addon and in fact my first attempt at code, so. That's why it's bad.
Edit: I'm now marginally less bad. So I might get stuff working at some point.
Stats: +1 Con, +2 Magic, +1 Willpower, +1 Cunning
Life: 10
EXP Penalty: 25%
Talents:
Tainted Blast
Level 0/1/2/3/4
A beam of damage. Half of the damage is blight, and half of it is your highest damage type.
(You should see the code for this. I did it manually. It's glorious and horrifying.)
Shield of Taint
Level 8/9/10/11/12
Passively boosts spell save and nature resistance.
Blood Tithe
Level 16/17/18/19/20
Instant active, provides life drain.
Sanguine Aura
Level 24/25/26/27/28
Instant active, converts your damage into blight, gives +% blight damage and blight resist pen. Code was borrowed from the Shadow Race addon.
Squishing the very obvious bugs ("You missed a comma. And a comma. And another comma. And an argument aaand a comma and two capital letters") was all thanks to Micbran, HousePet and GraySwandir, who practically held my hand in the initial work.
Extant Bugs
Your faction is tied to points in your racial. This is a hack solution.
I never got 'The Name Of Our Kind' working. (maybe I did??)
Ideally, I can change it from overload to superload.
1.0.5
If it wasn't in 1.0.4, they now have Tainted Blast for their first racial.
Now have their own icons for their abilities, excepting Sanguine Aura matching Blood Fury. Which... hm. I should swap Sanguine Aura and Blood Tithe.
1.0.6
New antimagic stuff!
1.0.7
Fixed bug caused by new antimagic stuff!
1.0.8
Fixed slightly different bug caused by new antimagic stuff!
Available here
This is my first addon and in fact my first attempt at code, so. That's why it's bad.
Edit: I'm now marginally less bad. So I might get stuff working at some point.
Stats: +1 Con, +2 Magic, +1 Willpower, +1 Cunning
Life: 10
EXP Penalty: 25%
Talents:
Tainted Blast
Level 0/1/2/3/4
A beam of damage. Half of the damage is blight, and half of it is your highest damage type.
(You should see the code for this. I did it manually. It's glorious and horrifying.)
Shield of Taint
Level 8/9/10/11/12
Passively boosts spell save and nature resistance.
Blood Tithe
Level 16/17/18/19/20
Instant active, provides life drain.
Sanguine Aura
Level 24/25/26/27/28
Instant active, converts your damage into blight, gives +% blight damage and blight resist pen. Code was borrowed from the Shadow Race addon.
Squishing the very obvious bugs ("You missed a comma. And a comma. And another comma. And an argument aaand a comma and two capital letters") was all thanks to Micbran, HousePet and GraySwandir, who practically held my hand in the initial work.
Extant Bugs
Your faction is tied to points in your racial. This is a hack solution.
I never got 'The Name Of Our Kind' working. (maybe I did??)
Ideally, I can change it from overload to superload.
1.0.5
If it wasn't in 1.0.4, they now have Tainted Blast for their first racial.
Now have their own icons for their abilities, excepting Sanguine Aura matching Blood Fury. Which... hm. I should swap Sanguine Aura and Blood Tithe.
1.0.6
New antimagic stuff!
1.0.7
Fixed bug caused by new antimagic stuff!
1.0.8
Fixed slightly different bug caused by new antimagic stuff!
Last edited by astralInferno on Sat Mar 12, 2016 4:16 pm, edited 4 times in total.
Re: Playable Rhaloren (Buggy Beta)
Ayyyyyyyyyy I got credits for posting .01 seconds faster than grey. Thanks!
A little bit of a starters guide written by yours truly here.
-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Re: Playable Rhaloren (Buggy Beta)
You were there helping, it's only fair! 

-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Re: Playable Rhaloren (Buggy Beta)
Well, success! I found out why the amount of drain didn't seem to match up to the tooltip, and I also fixed the duration bug. In doing so, I broke the talent slightly more - rather than maybe-sorta stacking when it goes, it now straight up doesn't go and stacks forever.
(It was at 125% lifedrain when I let it die)
Lua Error: /engine/Entity.lua:949: ERROR!!! unsupported temporary value type: nil :=: nil for life_leech_chance
At [C]:-1
At [C]:-1 error
At /engine/Entity.lua:949 recursive
At /engine/Entity.lua:959 removeTemporaryValue
At /data-rhalorenrace/effects.lua:52 deactivate
At /engine/interface/ActorTemporaryEffects.lua:199 removeEffect
At /engine/interface/ActorTemporaryEffects.lua:94 timedEffects
At /mod/addons/midnight/superload/mod/class/Actor.lua:210 actBase
At /mod/class/Player.lua:340 actBase
At /engine/GameEnergyBased.lua:116 tickLevel
At /engine/GameEnergyBased.lua:62 tick
At /engine/GameTurnBased.lua:46 tick
At /mod/class/Game.lua:1255
I've clearly messed up the 'deactivate' code somehow...
(It was at 125% lifedrain when I let it die)
Lua Error: /engine/Entity.lua:949: ERROR!!! unsupported temporary value type: nil :=: nil for life_leech_chance
At [C]:-1
At [C]:-1 error
At /engine/Entity.lua:949 recursive
At /engine/Entity.lua:959 removeTemporaryValue
At /data-rhalorenrace/effects.lua:52 deactivate
At /engine/interface/ActorTemporaryEffects.lua:199 removeEffect
At /engine/interface/ActorTemporaryEffects.lua:94 timedEffects
At /mod/addons/midnight/superload/mod/class/Actor.lua:210 actBase
At /mod/class/Player.lua:340 actBase
At /engine/GameEnergyBased.lua:116 tickLevel
At /engine/GameEnergyBased.lua:62 tick
At /engine/GameTurnBased.lua:46 tick
At /mod/class/Game.lua:1255
I've clearly messed up the 'deactivate' code somehow...
-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Re: Playable Rhaloren (Buggy Beta)
Well, I have no clue how to fix that, but I /have/ managed to make you friendly to the Rhalore faction. It... it's tied to your first racial talent now. Oddly, this applies /before/ faction changes from class, so a rhaloren archmage will be disowned until she puts a second point in An Open Mind.
In deference to this cutting away two dungeons of XP, I gave them Corruption (Curses), and am going to leave An Open Mind unnerfed for now, in the hope that people won't slaughter their own kind anyway. (They will, of course.)
What I want to do /now/ is set it up so you can still do anti-antimagic by talking to the grand corruptor. But I don't actually know how to make 'start a chat by clicking him' an option. The code isn't in chats, or in quests...
When I work it out I'll push 1.02, the buggy friends version.
In deference to this cutting away two dungeons of XP, I gave them Corruption (Curses), and am going to leave An Open Mind unnerfed for now, in the hope that people won't slaughter their own kind anyway. (They will, of course.)
What I want to do /now/ is set it up so you can still do anti-antimagic by talking to the grand corruptor. But I don't actually know how to make 'start a chat by clicking him' an option. The code isn't in chats, or in quests...
When I work it out I'll push 1.02, the buggy friends version.
Re: Playable Rhaloren (Buggy Beta)
It looks like you should be removing the pid1 and pid2 assignments instead of the raw value for your Blood Tithe effect.
The function removeTemporaryValue expects a "property id" instead of the assigned value for its second argument.
So currently in your effects.lua file you have:
Instead for the deactivate function, you should be passing eff.pid1 and eff.pid2 like:
Hope that helps.
The function removeTemporaryValue expects a "property id" instead of the assigned value for its second argument.
So currently in your effects.lua file you have:
Code: Select all
activate = function(self, eff)
eff.pid1 = self:addTemporaryValue("life_leech_chance", 100)
eff.pid2 = self:addTemporaryValue("life_leech_value", (eff.power * 3))
end,
deactivate = function(self, eff)
self:removeTemporaryValue("life_leech_chance", 100)
self:removeTemporaryValue("life_leech_value", (eff.power * 3))
end,
Code: Select all
deactivate = function(self, eff)
self:removeTemporaryValue("life_leech_chance", eff.pid1)
self:removeTemporaryValue("life_leech_value", eff.pid2)
end,
-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Re: Playable Rhaloren (Buggy Beta)
...I found and changed that earlier, and when I tested it it hadn't fixed anything. But I go try it now and it's working fine.
I can only assume I forgot to save it after making that change. I am now very sad.
But on the bright side... my talents are actually working now! Thank you!
(Is knee deep in writing chats with the grand corruptor)
I can only assume I forgot to save it after making that change. I am now very sad.
But on the bright side... my talents are actually working now! Thank you!
(Is knee deep in writing chats with the grand corruptor)
-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Re: Playable Rhaloren (Buggy Beta)
New version up!
Blood Tithe now works.
Rhalore are now friendly. Zigur are now not friendly.
The Grand Corruptor is also friendly, and has dialogue with you. This is an overload of Mark of the Spellblaze/NPC.
You can choose to either help him attack Zigur (starts Anti-Antimagic as normal), refuse to help and leave (in which case you can come back and choose again at any time), or refuse to help him and attack him, which will start a quest called 'The Name Of Our Kind.' Winning that quest will make Zigur neutral towards you.
If you're under level 25, he'll wait for you in the case of the former or laugh at you at the latter, and you can choose again from the three options next time you talk to him.
...sadly. This entire dialogue doesn't work quite right. A strange lua error prevents the anti-antimagic quest from setting in right, and killing him doesn't properly start the Name quest. I have no idea what's up with the latter, and the former is caused by -
...
MORON.
(Uploads new version)
Okay, so the anti-antimagic quest works now.
Blood Tithe now works.
Rhalore are now friendly. Zigur are now not friendly.
The Grand Corruptor is also friendly, and has dialogue with you. This is an overload of Mark of the Spellblaze/NPC.
You can choose to either help him attack Zigur (starts Anti-Antimagic as normal), refuse to help and leave (in which case you can come back and choose again at any time), or refuse to help him and attack him, which will start a quest called 'The Name Of Our Kind.' Winning that quest will make Zigur neutral towards you.
If you're under level 25, he'll wait for you in the case of the former or laugh at you at the latter, and you can choose again from the three options next time you talk to him.
...sadly. This entire dialogue doesn't work quite right. A strange lua error prevents the anti-antimagic quest from setting in right, and killing him doesn't properly start the Name quest. I have no idea what's up with the latter, and the former is caused by -
...
MORON.
(Uploads new version)
Okay, so the anti-antimagic quest works now.
-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Re: Playable Rhaloren (Buggy Beta)
Well, I'm back. I come bearing icons! And /plans/.
I'm mildly more competent now, and much more shameless about begging help from the irc. So hopefully I can get my older addons ironed out.
1.0.5
If it wasn't in 1.0.4, they now have Tainted Blast for their first racial.
Now have their own icons for their abilities, excepting Sanguine Aura matching Blood Fury. Which... hm. I should swap Sanguine Aura and Blood Tithe.
I'm mildly more competent now, and much more shameless about begging help from the irc. So hopefully I can get my older addons ironed out.
1.0.5
If it wasn't in 1.0.4, they now have Tainted Blast for their first racial.
Now have their own icons for their abilities, excepting Sanguine Aura matching Blood Fury. Which... hm. I should swap Sanguine Aura and Blood Tithe.
-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Re: Playable Rhaloren (Buggy Beta)
1.0.6
Rhaloren racial talents are now spells, but become nature powers if you go antimagic.
Their racial quest works, if it didn't.
Rhaloren racial talents are now spells, but become nature powers if you go antimagic.
Their racial quest works, if it didn't.