there's a link to it in the first post. it's a very different way of approaching it, i'm sure, but i am new to vJASS. i had to use a lot of DestroyTrigger() calls to eliminate a lot of the behavior. the main problem i'm having is that if i disable the Script function, it disables other triggers...
so should i add a TriggerAddCondition for the Use Item event? Like so:
call TriggerAddAction(t,function Script)
call TriggerAddCondition(t,function Script)
call TriggerRegisterUnitEvent(t,GetTriggerUnit(),EVENT_UNIT_USE_ITEM)
and then add a condition checking...
i tried taking away the array so that it is a regular board, but that doesn't seem to work, either. am i missing something big? or are my other triggers causing the problems?
Say for instance I have a trigger that starts out like this:
private function Actions takes nothing returns nothing
local trigger t = CreateTrigger()
local data d = data.create()
set d.caster = GetTriggerUnit()
set d.target = GetSpellTargetItem()...
0.01*(100/(100+66.66))
0.01*(100/166.66)
0.01*0.60002400096..
= 0.00600024..
0.01*(100/(100+100/3))
0.01*(100/133.33)
0.01*0.75001..
= 0.0075001..
also, why is it that when i use 0.01 as the base attack speed and 0.50 as the bonus, it's faster than doing 0.01 and 66.66?
i rem'ed all the code pertaining to the dialog, but the multiboard still doesn't show.
thanks. i'll look it over.
i just did and warcraft crashed. you mean like this, correct?
set gamemode = DialogCreate()
set timemode = DialogCreate()
you mean like this?
loop
exitwhen p == 9
set board[p] = CreateMultiboard()
call MultiboardDisplay(board[p],true)
set p = p + 1
endloop
if so, that didn't work.
i searched for quite a awhile for an answer, but most of it deals with GUI. i understand how to keep it to the local player, but for some reason it is not even showing up. i have another script that changes the title, but it doesn't even display in the first place. i'm definitely missing...
i've gotten a pretty good head start on the script for this map. i will probably implement a voting system for the game mode / time mode.
game modes are as follows:
1: Timed
2: Sandbox
once you have picked a game mode, you are presented the following time modes:
1: Default (20s Hours)
2...
T_T
something isn't working right. i think i'm not too clear on how the attack cooldown works. i *thought* 1.00 meant it was one attack per second, and 0.1 is ten per second, etc. if i set the unit's attack speed to 0.1, it is NOT ten per second.
this formula gave me the desired effects...