Aller au contenu

Photo

How can I get the charm effect to have the target guard the caster?


  • Veuillez vous connecter pour répondre
9 réponses à ce sujet

#1
psiiijay

psiiijay
  • Members
  • 258 messages
 I wanna change the effect where the target just stands there as its really not giving anything- you can't even attack the charmed target. So I wanna make it guard the caster as the original spell would do... but I have no clue how to start... any ideas?

#2
psiiijay

psiiijay
  • Members
  • 258 messages
Ok, I'll give more details- I want to get the spell to set the caster as the oMaster + make the target command-able for 1 sec In which the command will be to guard the caster.

Now, setting the master and the commandable status is easy, but I don't have any idea how to command it to guard the caster as I don't know what function that is...

#3
kevL

kevL
  • Members
  • 4 078 messages
i believe the GuardMe command is dependent on the AI scripts. which means you might be looking at setting the charmed creature's AI scripts (or some of them) to those of a companion (but how to turn them back once the charm wears off?). However, IF that's set up, the GuardMe command can be issued automatically via script ...

it's a long & winding road,


you might be able to do something simpler like setting its Faction to Defender (more or less temporarily..) which could provide some amusement, for a bit :P

- factions are difficult to work with, but the AI is harder.

#4
rjshae

rjshae
  • Members
  • 4 508 messages
Charm isn't the same as dominate. The charmed creature isn't going to turn on his allies; he's merely not going to attack the caster.

#5
psiiijay

psiiijay
  • Members
  • 258 messages
rjshae - thats what i want to change. in the real game he will.

kevL- the only prob with this is- how do I get a function to get the creatures faction before he changes to defender so i can get him back to his original state?

#6
kevL

kevL
  • Members
  • 4 078 messages
uhh, yehh

I think what i did was create a faction pig on-the-fly (sic) and script its faction to change ( ChangeFaction() ) to that of the creature that's about to change ...........


expect bugs, holes, and general swilling at the trough ;x


then reverse that process (including deleting the pig).

ps. Search Script Assist for "faction" i guess

#7
Tchos

Tchos
  • Members
  • 5 083 messages

psiiijay wrote...
rjshae - thats what i want to change. in the real game he will.

As I read it on the SRD (I assume that's what you mean by the real game), a charmed person will not attack his allies unless you also win an additional opposed charisma check after the charm is in effect.  It also says that you should not have any direct control over the charmed person, and that it will never obey any command to do anything suicidal or obviously harmful to himself.

Modifié par Tchos, 04 mars 2013 - 03:11 .


#8
psiiijay

psiiijay
  • Members
  • 258 messages
well fixed it, it works fine now thanks everyone.
and from what I remember if you play the game well you can make the target think that his friends are actually illusions or controlled or something - as the caster will seem as the targets BEST AND DEAREST FRIEND thats from the first versions I know from when I used to play it 20 years ago...

#9
kevL

kevL
  • Members
  • 4 078 messages

kL wondered...

i believe the GuardMe command is dependent on the AI scripts. which means you might be looking at setting the charmed creature's AI scripts (or some of them) to those of a companion (but how to turn them back once the charm wears off?). However, IF that's set up, the GuardMe command can be issued automatically via script ...

it's a long & winding road,


Get/SetEventHandler()

#10
psiiijay

psiiijay
  • Members
  • 258 messages
Yeah thanks... Its hardcoded I think :(