| 10-13-2003, 07:30 AM | #1 |
I got a skill in Jass, that do the hero jump like the Jump abilities in the Final fantasy, thats pretty nice but I dont understand how to it make use the hero lvl skill and I dont know whatn mean a specific code like that : function Trig_Spell_Dragoon_Jump_Research_Conditions takes nothing returns boolean return ( GetLearnedSkillBJ() == 'CCdj' ) and ( GetUnitTypeId(GetLearningUnit()) == 'E000' ) endfunction What is this code 'CCdj'. I didnt found what it mean. Do I have to show all the Jass script to make it take the hero skill level. Thx to help me. |
| 10-13-2003, 07:47 AM | #2 |
'CCdj' is the ability ID, it does not have anything to do with the level of the ability. To check the level of the learned skill, change the function like this: function Trig_Spell_Dragoon_Jump_Research_Conditions takes nothing returns boolean return ( GetLearnedSkillBJ() == 'CCdj' ) and ( GetUnitTypeId(GetLearningUnit()) == 'E000' ) and (GetLearnedSkillLevel() == 2) endfunction Just replace 2 with the level you want to check with. |
| 10-13-2003, 09:03 AM | #3 |
Here is some part of the script: function Trig_Spell_Dragoon_Jump_Actions takes nothing returns nothing local integer SpellLevel = 6 ... ... set udg_SpellCast[SpellLevel] = true loop exitwhen (( mana > GetUnitStateSwap(UNIT_STATE_MANA, Caster)) or (udg_SpellCast[SpellLevel] == false)) if (GetUnitStateSwap(UNIT_STATE_MANA, Caster) > mana) then set mana = GetUnitStateSwap(UNIT_STATE_MANA, Caster) endif call TriggerSleepAction( 0.01 ) endloop if (udg_SpellCast[SpellLevel] == false) then return endif set udg_SpellCast[SpellLevel] = false ... function Trig_Spell_Dragoon_Jump_Remove_Conditions takes nothing returns boolean local integer SpellLevel = 6 return (( GetIssuedOrderIdBJ() != String2OrderIdBJ("creepthunderbolt") ) and ( udg_SpellCast[SpellLevel] == true ) and (GetUnitTypeId(GetOrderedUnit()) == '0000')) endfunction function Trig_Spell_Dragoon_Jump_Remove takes nothing returns nothing local integer SpellLevel = 6 set udg_SpellCast[SpellLevel] = false endfunction // Change Get Learned Spell's code if you want it to be learnable function Trig_Spell_Dragoon_Jump_Research_Conditions takes nothing returns boolean return ( GetLearnedSkillBJ() == 'CCdj' ) and ( GetUnitTypeId(GetLearningUnit()) == '0000' ) endfunction // Change Spell Index if you want, but you have to do it for all functions function Trig_Spell_Dragoon_Jump_Research_Actions takes nothing returns nothing local integer SpellLevel = 6 set udg_SpellLevel[SpellLevel] = udg_SpellLevel[SpellLevel] + 1 if ( udg_SpellLevel[SpellLevel] > 3 ) then set udg_SpellLevel[SpellLevel] = 3 endif endfunction I just have skipped some part but I dont know what is for the level and what is the spells 'CCdj' ... is it possible Hurl Boulder? Its base on the Hurl Boulder skill, but i want to put another one but with hero level. What should I do cos I'm not sure??? If you want the whole script I can add it and its not mine. thx. |
| 10-14-2003, 11:43 AM | #4 |
Hi, I would like to get a model(example) of general skill and with a lot of comment they explain how to do a lot of effect with Jass, like a tutorial but with a lot of exemple, I dont want it are to complexe, because no one will probably want to do it but just so much basic command and I will be able to learn more, by myself, about the Jass Effect we can do? Do you think its possible to realease this really nice projects? Just to help all those, they want to use Jass for his/her skill in map/campaign game and they not manipulate so nicely the Jass! Plz help me about that! Thx, to take in mind this idea.:gsmile: :arch: :D :foot: ![]() |
| 10-14-2003, 01:28 PM | #5 |
If you want an example, here is a map with a spell called Infernal Aspect. It's a pretty cool spell (of course it is, I made it... ), especially because the trigggers allows it to be leveled up infinite times.It's not commented extremely much, but there are a few comments, and the code it pretty clean. I made it to test my Jass Editor just before its release to see if I ran into any bugs. Use the Jass Editor to look it through, it makes it a lot easier. I hope you can learn something from it. |
| 10-15-2003, 09:48 AM | #6 |
Can you help me about the jump skill because I need it for my map. Thx for the Jass skill you gave me, but one already exist in normal skill like fire breath, I like the the 2 others fire skill, really nice work. If you can post anymore skills here you are welcome. Thx:D :D :;) |
| 10-15-2003, 10:05 AM | #7 |
Fireburst is 0% trigger enhanced, I based it on Firebreath. I just added some various fire spells. |
| 10-16-2003, 06:22 AM | #8 |
Hi, Do you think you can help me to make me some Jass Skill sample, I would like to tell you what I want my skill do and, if you want to help me only, you can make me a sample of what I ask to you ? If you want to participe to help me. I really apreciate that, but you can say no about my request if you dont want to make me some sample, I can understand and I wont be frustrated, but I will be so happy if you can. Plz Thx |
