Defiance Spellbook

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

noviceboy55
Newcomer
Posts: 17
Joined: December 5th, 2008, 9:18 am

Defiance Spellbook

Post by noviceboy55 »

In defiance ORPG there's this spellbook system whereby you'll get more of your spell abilities as you gain more level. ( The skills will appear in your spellbook at certain levels ). If possible could anyone teach me how this can be done?

Edit : I would like to know how to make an attribute system too.
For example : I level up I get 5 attribute points. Then i can use them on a skill like "StrenthUP" and it will increase my BASE strength Permanently.

Edit2 : May I know how to set the trigger in such a way that when you step into a region, your current unit will be removed and a specific unit of level 10 would be given to you?

Currently I have
Spoiler:
Event
-A unit enters Warrior ( that's a region i set )
Condition
-(Level of (Triggering unit)) is greater or same 10 ( My world edit is in Chinese so im translating the functions )
Action
-If(All Conditions are True) then do (Then Actions) else do (Else Actions)
-If
-(Unit-type of ( Triggering unit)) equals Beginner
-Then
-Unit - Create 1 Warrior for (Owner of(Triggering unit)) at (Center of Warrior) facing default degrees
-Hero - Set (Matching unit) Hero-level to 10, hide level-up graphics
-Unit - Remove (Triggering unit) from the game

Basically for wat is above I am able to get a new hero, and have my current one removed. However my new hero isn't able to level to 10 ._. ( He's at level 1 btw ).

Here's a screenshot if you can't understand
Image
YellowAfterlife
Senior Member
Posts: 127
Joined: March 27th, 2010, 2:32 pm

Re: Defiance Spellbook

Post by YellowAfterlife »

About replace... Try basing your ability on 'Sca1' (orc unit ability that morphs the unit after research is done), remove all research requirements, and then just add ability with Unit - Add ability in triggers.
About spellbook... just make one with multiple levels, and adjust it's level when hero levels-up.
noviceboy55
Newcomer
Posts: 17
Joined: December 5th, 2008, 9:18 am

Re: Defiance Spellbook

Post by noviceboy55 »

Could you please explain in a deeper detail on how to go about doing them? O_O.
And about the morphing part, it helps change the model of unit, keeps the stats, what else? And how can i go about making the unit morph when he enters a region.
YellowAfterlife
Senior Member
Posts: 127
Joined: March 27th, 2010, 2:32 pm

Re: Defiance Spellbook

Post by YellowAfterlife »

The only way to go about morphing the unit is to add ability to it once it enters the region. It's like:
Events:
Unit - A unit enters Warrior <gen>
Conditions:
Unit-type of (Triggering unit) is not equal to (Warrior)
Level of (Triggering unit) is more or equal 10
Actions:
Unit - Add (morph:warrior) to (Triggering unit)
noviceboy55
Newcomer
Posts: 17
Joined: December 5th, 2008, 9:18 am

Re: Defiance Spellbook

Post by noviceboy55 »

I think i got the trigger part, what about the part about the disabling tech tree, may i know where to go about doing it?

Edit : Found the part with disabling the tech tree

Edit 2 : Wow thanks a lot, now everything would be so much easier =)

Edit 3 : This kinda solved the hero level problem and the attribute problem but i think i still need help on getting the spellbooks to level ._.
YellowAfterlife
Senior Member
Posts: 127
Joined: March 27th, 2010, 2:32 pm

Re: Defiance Spellbook

Post by YellowAfterlife »

At a spellbook, you may set min\max number of spells, and spell list.
So,
+ Set the "Is for item" flag off.
+ Set number of ability levels to 10
+ Edit the spell list for each level to meet different stage, and dont forget to edit min\max spell count!
+ Add a trigger for LvlUp and use Unit - set ability level to set the spellbook level.
noviceboy55
Newcomer
Posts: 17
Joined: December 5th, 2008, 9:18 am

Post by noviceboy55 »

About the morphing from before, i noticed that after my character morphs, it sticks to the stat increment per level attached to the original char so is it possible to make it such that after you morph, your stats increase according to the character you morphed into?