Jump to content


Photo

unitsspell + hero


  • Please log in to reply
5 replies to this topic

#1 PyRo

PyRo
  • Members
  • 13 posts

Posted 10 June 2007 - 07:55 PM

how can i add heros to a spell that spawns units e.g. rohan allies and put the timer off so that they are normal heros and if i use the spell again and that hero is alive so comes not again with that spell! can you understand what i want? please help me!

#2 aragon94

aragon94
  • Project Team
  • 80 posts
  • Location:Spain
  • Projects:New Brown Lands Colloseum, SEE
  •  Coder and mapper eager to help

Posted 12 June 2007 - 04:44 PM

I understand it perfectly, and you may need a mix of scripts and INI...

Here is the tutorial I made,

I want a spell store power that summons... Aragorn and 2 gondor soldiers!! Lets do this

The code is included in the file. It replaces rohanallies power from men spell store and adds the aragorn thing.

REMEMBER IT IS FOR A MOD NOT FOR A MAP!!!!!!!

About the unit limit, I don´t know much about how to do it.

1º, tell me if that works. If it does I will try to do that. If it doesn´t, then I will fix it. ;)

Attached Files


Posted Image

Thx to old Sharb for the sig.

#3 PyRo

PyRo
  • Members
  • 13 posts

Posted 12 June 2007 - 07:38 PM

ok and now i wanna know where can i in that ini delete the timer of aragorn, so he is on the map until he will defeated by enemy? (not for the soldiers, they should disapear in 1 minute or so)
and if i use the spell the next time and aragorn is still there, there he shouldn't come again until he was dead.... understand?

#4 Rudgey

Rudgey
  • Hosted
  • 141 posts
  • Location:England
  • Projects:Pirates Of The Carribean: Pirates Of The Seven Seas
  •  Modeler, mapper,2d art, noob skiner and coder

Posted 13 June 2007 - 09:58 AM

um sorry im not to gd at coding, but i will ask my friend for u later hes a gd coder.
RUDGEY

#5 aragon94

aragon94
  • Project Team
  • 80 posts
  • Location:Spain
  • Projects:New Brown Lands Colloseum, SEE
  •  Coder and mapper eager to help

Posted 13 June 2007 - 04:19 PM

I understand what you mean, but as it is in the INI Aragorn does not have timer, neither the soldiers.

I found a way to solve your problem. I can make the power unusable if Aragorn is in the map alive, but I am sorry I cannot do anything more

want me doing it?
Posted Image

Thx to old Sharb for the sig.

#6 PyRo

PyRo
  • Members
  • 13 posts

Posted 13 June 2007 - 08:15 PM

no the spell should be activated... ok you helped me a bit hope someoe other know the solution or i ask in other boards




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users