• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] ChangingHeroSkillsMenu help( trigger )

Status
Not open for further replies.
Level 2
Joined
Mar 7, 2008
Messages
8
////
Raw Codes To be used in this Trigger

RawCodes For Old Spells:
A07E:ANmo ( Normal Spell ) <-- AoE Spell
A04E:A0s2 ( Normal Spell ) <-- AoE Spell2
A024:A0cl or A024:A0cI ( Normal Spell ) Hard to see. <--- The old Ulti / Chain lightning alike

RawCodes For New Spells:
A023:ANmo ( Old Spell Turned into Ulti )
A02B:ANsi ( Normal spell ) <-- Silence/Slow
A070:AUfn ( Normal Spell ) <--similar to frost nova

HeroUnitID:
H01G:Hant
////
Question: Is the Part after the colon not needed, such as Hant in (H01G:Hant) or AUfn in (A070:AUfn)?

I know I m missing a createTrigger() somewhere and some other things I need to incorporate into this.

I want to make it so the Trigger is only able to be executed once and then destroyed/removed.

Purpose of the Trigger: I am giving the Player the option to swap to the old version of the Hero
if that Player wants to and can be done at anytime in the game.
I need to swap the spells in the hero skills selection menu from the New spells to the Old spells.
( If it can't be done once the Player has already picked the spell, it won't matter, the player will just have to do it when the hero is at level one and hasn't picked a spell yet. )
This trigger is suppose to remove the New spells from the hero and put the Old ones onto him. Some people may like the other one more.
////

function RevertForm takes nothing returns nothing
call TriggerRegisterPlayerChatEvent(MPz1,Player(6),''-RevertForm'',true)
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(MPz1)>0

( I don't know what I'm missing for the middle component or how to make this trigger work )

call RemoveTrigger(MPz1)
call DestroyTrigger(MPz1)
set MPz1=null
endfunction


Does anyone know how to complete this trigger? I need the trigger destroyed once its used once.

There is a spell that is prepicked at level one for the hero, hopefully it works at any level of the hero.
Do I need NameOfHero and NameOfSpells?
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Question: Is the Part after the colon not needed, such as Hant in (H01G:Hant) or AUfn in (A070:AUfn)?
No you do not need the second part.


About your main question.... WHAT ? ... didn't get a single thing out of that text.

Anyway, why do you use Jass if you don't know how to use it ? and if you do want to use it, create a basic trigger and convert it so you get used to how it looks.
Also, you should post this in the Jass forum if you want Jass help.

Now you basicly want 2 sets of skills that a player can change between them, I didn't get whats the hard thing ?
Remove all skills and add the other set's skills.
 
Status
Not open for further replies.
Top