Jump to content


Photo

set ability used when hero is spawned


  • Please log in to reply
6 replies to this topic

#1 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 22 May 2015 - 08:08 PM

hey is it possible to set the abilities of an hero used when he is spawned?

and if it is possible, how :) ?



#2 Kwen

Kwen

    Vileartist

  • T3A Staff
  • 4,865 posts
  • Location:Korea I wish
  • Projects:It'sa secreeet
  •  T3A's First N00b
  • Division:BFME
  • Job:T3A Expert
  • Donated

Posted 23 May 2015 - 05:28 AM

It can be done with scripts. Activate a special power when "OnCreated" is triggered.

                           https://www.twitch.tv/vileartist - Yes shameless self-promotion

          ----------------------------------------------------------------------------------------------------------------------

                            "Old modders never die, they just fade away" ~ Hostile


#3 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 23 May 2015 - 09:30 AM

aaah thanks!!



#4 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 16 September 2015 - 03:53 PM

unfortunately i don't get along with that issue :(

 

which skripts are needed here and how is that possible?

 

i searched for the skript that sets the spellbook powers already used when purchased in the singleplayer but with no result



#5 Kwen

Kwen

    Vileartist

  • T3A Staff
  • 4,865 posts
  • Location:Korea I wish
  • Projects:It'sa secreeet
  •  T3A's First N00b
  • Division:BFME
  • Job:T3A Expert
  • Donated

Posted 16 September 2015 - 04:23 PM

I meant code scripting using scripts.xml and scripts.lua. With this you can tell the hero to fire a special ability when created.

Edit: I realized I misunderstood you. You want the abilities to act like they've been triggered so the reload time is present when they are first spawned?

Edited by Kwen, 16 September 2015 - 04:24 PM.

                           https://www.twitch.tv/vileartist - Yes shameless self-promotion

          ----------------------------------------------------------------------------------------------------------------------

                            "Old modders never die, they just fade away" ~ Hostile


#6 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 16 September 2015 - 04:58 PM

yes :)

 

i want to make the witchking unmount the fellbeast. i managed this with some object creation stuff and with the help of the Shadows of Evil Mod inis by GothmogTheOrc. in this way, the witchking switches between two objects and each one has its commandset. so i want the unmount ability start used (showing the cool down) when he is spawned on foot (after he has unmounted from the fellbeast)

 

 

i hope it's possible, it took me some time to get this working


Edited by sam-the-brave, 16 September 2015 - 05:17 PM.


#7 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 18 September 2015 - 11:34 AM

i found a more or less fitting solution for my problem: the mount ability is now triggered by an upgrade that must be enabled first to unmount the witchking

 

 

and that's the mod i was working on now: 

 

http://www.moddb.com.../bfme-patch-200

 

because i got much help from all of you i thought i could share it here too :)

enjoy it!

 

(and let me know it there are some bugs)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users