• 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.

[Major Tag Bug] JASS Tag Conversion

Status
Not open for further replies.
There are two problems with the JASS tag that I've noticed:

1. This is really common, and I think it has been mentioned before. When you add a comment on the JASS tag, it stretches the whole post, i.e.:
JASS:
function poo takes unit pooper, widget toilet returns poop //This takes the pooper that poops, the toilet to flush the toilet, and it returns poop because the pooper will poop//
    call FlushToilet(pooper,toilet)
endfunction

2. Major Bug:

For me, at least, if you type something in JASS such as this:
JASS:
function poo takes unit pooper, widget toilet, widget toiletpaper returns poop
    local widget poop = GetTriggerPoop()
    local location sewer
    call PolledWait(500.) //duration to go poopoo//
    call FlushToilet(pooper,toilet, poop) //flushes the toilet//
    set sewer = GetWidgetLoc(poop)
    call WipeToilet(pooper,toilet,toiletpaper) //wipes the toilet//
    call WipeButt(pooper,toilet,toiletpaper)
    call MovePoop(poop,sewer)
    call RemoveLocation(sewer)
    set poop = null
    return poop
endfunction

Then if I "Prievew Post", it'll end up like this:

function poo takes unit pooper, widget toilet, widget toiletpaper returns poop local widget poop = GetTriggerPoop() local location sewer call PolledWait(500.) //duration to go poopoo// call FlushToilet(pooper,toilet, poop) //flushes the toilet// set sewer = GetWidgetLoc(poop) call WipeToilet(pooper,toilet,toiletpaper) //wipes the toilet// call WipeButt(pooper,toilet,toiletpaper) call MovePoop(poop,sewer) call RemoveLocation(sewer) set poop = null return poop endfunction

Sorry if this bug has been reported before.
 
Last edited by a moderator:
JASS:
function test takes nothing returns nothing
    call KillUnit(GetTriggerUnit())
endfunction

Preview:

JASS:
function test takes nothing returns nothing
    call KillUnit(GetTriggerUnit())
endfunction

Yup, it works! Awesome! Thanks Ralle!

Hmm... I found another problem when I c'n'p a JASS code; it ends up like this:

function test takes nothing returns nothing call KillUnit(GetTriggerUnit()) endfunction

It's kind of odd and it makes it harder to paste the code in a post... If you could fix that, that would be awesome. :wink:
 
Status
Not open for further replies.
Top