| Author | Sticky: Post Working Scripts Here |
| ZeusNightFall | Posted: Friday, 26 July 07:21AM |
| "Henchman Summons Creature on Command"
v1.1(final) 3 Commented-out packages, default summons only one creature type once per day, random number gen tied to taggen(for random summoning of Creature1, Creature2,etc) and one to allow casting multiple times per day. Cut and paste the conversation hook & OnRested SetLocalInt statement. You must still create creatures in merchant faction with henchman scripts to use with this.
|
|
* * * * *
Older script below
* * * * *
|
||||||
Reply to last post:
"Henchman Casts Summon Creature on Command"
This a pretty finicky spell to teach a henchman to do..It's probably not for
beginners.. you have to tweak your henchman a little.
1. This is triggered in a conversation. I added the hook i used at the end of
it, and now that im thinkin of it, maybe you could add it to the nw_ch_spell0
script(the one that checks if hench is spellcaster)
2. The hook switches off after the spell is cast. I commented some lines to
change this in the script if you want to increase the number of times your
henchman can cast it without resting(if you wanna cheat, just dont use the
hook.) I did leave a fair amount of comments in there to try and tell you what i
was doing in case you wanna tweak it.
3. You must add one line to the OnRested default script of your henchman(put it
near the end): SetLocalInt (OBJECT_SELF, "USED_SUMMON_SPELL", FALSE); This will
make the ability come back online after a rest.
4. Its set up specifically for elementals right now. To change this, you must
edit the "GetNearestCreature" lines.(unless you can think of a better way to
reference the new summoned creature.)
5. Script looks for creatures by **BLUEPRINT_RES_REF**. It's looking for
creatures with a resref SUMMONCREATURE1, SUMMONCREATURE2.....4. If you use the
object's tag, you will have one super-flashy script-of-badger-summoning.
6. So, you need to make some custom characters. They should be in
Faction:Merchant. Give them the same scripts as your henchman.(exept for the
OnRested that you just edited) NOTE, IF YOU FAIL TO CHANGE THIER FACTION, *YOU*
Become the target of thier OnSpawn.
7. ALMOST THERE!! Summon is not an area of effect spell, nor is it a projectile,
so the only valid target is a spot on the ground. So, the script searches for
waypoints and encounter triggers. IF IT DOESNT FIND ANY, YOUR HENCH DOESNT cast
the spell. So, if the hench has trouble casting, you are lacking in these areas.
If you dont want anymore encounters, add some waypoints.
Familiars should be up later tonite.