A question/suggestion about Summons

Amnorasmus
Posts: 2
Joined: Fri Dec 28, 2012 7:21 pm

A question/suggestion about Summons

Post by Amnorasmus » Fri Dec 28, 2012 7:29 pm

First off,I have a question; Is it possible to make summoned creatures IE: Skeleton,Bear,Wolf,etc. fully controllable? Such as a typical worker or soldier.

That would also be a worthwhile suggestion,as it doesn't make sense that Hokan Ashir isn't forced to be stalked around pointlessly by hordes of undead,and the avatar would be. :?

I'd very much like a reply,and if I could get an explanation as to how to do it,I'd very much enjoy an explanation. :)
(Also,if I could get an explanation on how to change what is summoned,that would be lovely,I read that you[Rupuz] figured that out on the official form without an explanation as to how)

Thank you,regardless of if you know how to do it or not. :D

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: A question/suggestion about Summons

Post by rupuzioks » Sat Dec 29, 2012 9:58 am

hello,

yes I didn't explain how to change what is summoned
it's simple, but I'm bad at explaining things, so I'll try with example:

1. I'll pick summon skeleton lvl 1
2. find out value of that spell: from sql_spelline.lua file value is 29 (in hex 1D) for summonskeleton spell
3. then search: 1D 00 07 02 01
4. I found this 1F 00 1D 00 07 02 01 00 00 00 00 00 00 00 00 00 0F 00 B8 0B 00 00 70 17 00 00 00 00 05 00 02 01 70 17 00 00 01 00 00 00 61 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5. look for last value except nulls: 61 02 (converted 02 61 = 609; 609 value is Skeleton, enemy, lvl 1)
6. you can change that value to any unit's value; that's all

and if you want to get fully controllable unit, then you need to create lua script for each map
Tempus et vita, tempus et mortis

Amnorasmus
Posts: 2
Joined: Fri Dec 28, 2012 7:21 pm

Re: A question/suggestion about Summons

Post by Amnorasmus » Mon Dec 31, 2012 8:01 pm

Alright,thanks to you I figured it out.

Now,if I might ask,would you be able to supply me with an example for the Lua script,or maybe point be to which file already in Spellforce that I could find an example?
Perhaps the Greyfell lua script with the Dawn Knights in the beginning?
I'll see if I can find you,but thanks again.

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: A question/suggestion about Summons

Post by rupuzioks » Tue Jan 01, 2013 12:24 am

I'm not very good with scripting, but yeah, that greyfell lua script with dawn knights might be good
Tempus et vita, tempus et mortis

User avatar
mordo
Site Admin
Posts: 251
Joined: Sun Nov 13, 2011 3:15 pm

Re: A question/suggestion about Summons

Post by mordo » Thu Jan 24, 2013 11:18 am

I tried to replicate that and make the Rock crystal golem from west CoS instead of golem 20.

[209]={includename="SummonEarthGolem",

hex D1
search D1 00 07 02 01

earth golem 20 6762 hex 1A6A invert 6A1A


2654 Rock crystal golem NPC golem
2655 Onyx golem NPC golem
2656 Victim NPC human


2654 hex A5E 0A5E invert 5E 0A

Well... i didnt even get a match on D1 00 07 02 01
Der Hölle Rache kocht in meinem Herzen

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: A question/suggestion about Summons

Post by rupuzioks » Thu Jan 24, 2013 5:00 pm

yes, because 07 02 01 is spell's requirements

summon skeleton is BM necro lvl 1 in example

summon earth golem is EM earth lvl 20

so you need to search then D1 00 05 03 14 (05 is EM, 03 is earth, 14 is lvl 20)
Tempus et vita, tempus et mortis

User avatar
mordo
Site Admin
Posts: 251
Joined: Sun Nov 13, 2011 3:15 pm

Re: A question/suggestion about Summons

Post by mordo » Thu Jan 24, 2013 11:57 pm

Thanks, do you happen to know what lv those golems are ?
Der Hölle Rache kocht in meinem Herzen

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: A question/suggestion about Summons

Post by rupuzioks » Fri Jan 25, 2013 4:53 pm

2248 Fire golem enemy 21
2250 Fire golem enemy 24
2252 Fire golem enemy 27
2253 Fire golem enemy 30
2254 Ice golem enemy 21
2255 Ice golem enemy 24
2256 Ice golem enemy 27
2257 Ice golem enemy 30
2258 Stone golem enemy 21
2259 Stone golem enemy 24
2260 Stone golem enemy 27
2261 Stone golem enemy 30
Tempus et vita, tempus et mortis

User avatar
mordo
Site Admin
Posts: 251
Joined: Sun Nov 13, 2011 3:15 pm

Re: A question/suggestion about Summons

Post by mordo » Fri Jan 25, 2013 5:55 pm

I meant
2654 Rock crystal golem NPC golem &
2655 Onyx golem NPC golem

The rock crystal golem has 2588 HP
and onyx golem has 4205 HP,
rock crystal seem to be immune to MM, but onyx golem i think is scripted to be immune in west CoS,
because he ain't immune to towers when i summon him in freegame.

Ed Playing through SotP, i see that onyx golem are immune to flayed guardians,
so i take it the onyx golem is immune to any black magic in campaign, but not vs towers in freegame
Der Hölle Rache kocht in meinem Herzen

lightw
Posts: 11
Joined: Thu Jun 20, 2013 6:21 pm

Re: A question/suggestion about Summons

Post by lightw » Thu Jun 20, 2013 6:25 pm

Hello everyone, i was reading the forums and it was so much fun about changing the gamedata. Etc, such as what is being summoned. I would like to know how to change summon undead goblin spell's creature to goblin cutthroat, the one with 2 poisoned daggers lvl 28?

If i could get to know how to change the spell, and how do i understand those hex codes, how are they converted, what logic is behind this?


Thanks

Post Reply