• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Custom hero's

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2010
Messages
153
hey i played CHLW afew times with a friend on b.net

now i think it be good to make abillitys buyable like that so they go into your main skills

and you still require the level for them

so what i saying is how i set it up so you can have custom heroes and custom skills picked from merch and added to your main skill in the red +
 
Level 10
Joined
Mar 16, 2009
Messages
354
You will have to create an item to represent each skill and then use a trigger.

Example to gain an ability "skill."

Event - generic unit event - unit aquires an item
Condition - item-type comparison - item type of item being manipulated is equal to (place holder for skill)
Action - Unit - Add ability - Add (skill) to triggering unit
 
Level 6
Joined
Feb 18, 2010
Messages
153
i know thats to add i mean how to make it a original hero skill

ones you have to learn in the red +

that one only adds level 1 to the hero but doesn't put it into skills so you don't have to learn it. What i mean is ones in the + that required specific levels and can be unlearns and pout back into the +

in CHLW you pick 5 items then you go into circle of power then when game starts it puts them skills into your main skill + And you to learn that skill before you can use it.

lol i probally confusing you as i am confusing my self
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
It means that, the unit has 0 ability to start with ?
After he gets 5 items, he will walk into Circle of Power ?
Then, he gets the 5 permanent spell as his spell and can be leveled up trough the + ?

From my experience, you cannot level the spell if that spell is not attached to you in the Object Editor to start with
 
Level 6
Joined
Feb 18, 2010
Messages
153
It means that, the unit has 0 ability to start with ?
After he gets 5 items, he will walk into Circle of Power ?
Then, he gets the 5 permanent spell as his spell and can be leveled up trough the + ?

Yes exactly just like CHLW is

From my experience, you cannot level the spell if that spell is not attached to you in the Object Editor to start with

You never played CHLW?
 
Level 6
Joined
Feb 18, 2010
Messages
153
i think i figured it out just trying it now

didnt work lol

i think this is the trigger to turn evasion item into the skill in +

JASS:
function FLE takes nothing returns boolean
	return(GetItemTypeId(GetManipulatedItem())=='I017')
endfunction

function FME takes nothing returns boolean
	return(UnitItemInSlotBJ(GetTriggerUnit(),bj_forLoopAIndex)==GetManipulatedItem())
endfunction

function FPE takes nothing returns boolean
	return(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))==GetItemTypeId(GetManipulatedItem()))and(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))==GetItemTypeId(GetManipulatedItem()))
endfunction

function FQE takes nothing returns boolean
	return(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))==GetItemTypeId(GetManipulatedItem()))and(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))==GetItemTypeId(GetManipulatedItem()))
endfunction

function FSE takes nothing returns boolean
	return(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))==GetItemTypeId(GetManipulatedItem()))and(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))==GetItemTypeId(GetManipulatedItem()))
endfunction

function FTE takes nothing returns boolean
	return(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))==GetItemTypeId(GetManipulatedItem()))and(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))==GetItemTypeId(GetManipulatedItem()))
endfunction

function FUE takes nothing returns boolean
	return(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))==GetItemTypeId(GetManipulatedItem()))and(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))==GetItemTypeId(GetManipulatedItem()))
endfunction

function FWE takes nothing returns boolean
	return(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))==GetItemTypeId(GetManipulatedItem()))and(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))==GetItemTypeId(GetManipulatedItem()))
endfunction

function FYE takes nothing returns boolean
	return(FPE())or(FQE())or(FSE())or(FTE())or(FUE())or(FWE())
endfunction

function FZE takes nothing returns boolean
	return(FYE())
endfunction

function F_E takes nothing returns nothing
	if(FZE())then
		call DisplayTimedTextToForce(SY(GetOwningPlayer(GetTriggerUnit())),10.,"|cffff0000YOU CANNOT TAKE TWO OF THE SAME SKILL!!|r")
		call RemoveItem(GetManipulatedItem())
		call AdjustPlayerStateBJ(1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
	else
		call UnitAddAbility(GetTriggerUnit(),'A06C')
		set bj_forLoopAIndex=1
		set bj_forLoopAIndexEnd=6
		loop
			exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
			if(FME())then
				set udg_integers12[((((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))-1)*5)+bj_forLoopAIndex)]='A06C'
				call SetItemUserData(GetManipulatedItem(),bj_forLoopAIndex)
				call SetUnitAbilityLevelSwapped('A02Y',GetTriggerUnit(),bj_forLoopAIndex)
				call SetPlayerAbilityAvailableBJ(false,'A06C',GetOwningPlayer(GetTriggerUnit()))
			endif
			set bj_forLoopAIndex=bj_forLoopAIndex+1
		endloop
	endif
endfunction

can you see if you know what to do in GUI as i am bad in vjass. Like if you know what this means convert it into GUI MUI or whatever it is for hte blizzard WE
 
Last edited:
Level 6
Joined
Feb 18, 2010
Messages
153
thanx that works but it still has problems some skills only have 1 level originally some 3 some 4 and so on

and if you learn a 1 level skill 2 times it removes that skill from your hero all together
so you loose a skill

or it messes up the cooldown and mana sets to 0 on bother and the skill does less damage than normal
 
Status
Not open for further replies.
Top