Some Jass problems

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

HINDYhat
Senior Member
Posts: 101
Joined: June 1st, 2007, 9:05 pm

Re: Some Jass problems

Post by HINDYhat »

Oh yeah I messed that up. In the inittrig, replace Player(0), by Player(i)
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Some Jass problems

Post by JJ2197 »

Still doesn't work... =/
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Some Jass problems

Post by Xantan »

trig = CreateTrigger() ?
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Some Jass problems

Post by JJ2197 »

I got it trigger trig = null in globals
and set trig = CreateTrigger() in the function
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Some Jass problems

Post by Xantan »

globals

Code: Select all

trigger a=CreateTrigger()
functions

Code: Select all

function ao takes nothing returns nothing
call DisplayTextToPlayer(Player(0),0,0,(GetPlayerName(GetTriggerPlayer())+(" has just trained a |cffffff00"+(GetUnitName(GetTriggerUnit())+".|r"))))
function main

Code: Select all

call TriggerRegisterAnyUnitEventBJ(a,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerAddAction(a,function ao)
add conditions, who to send the message to, and colors to player name
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Some Jass problems

Post by JJ2197 »

That's not really what I wanted... I want it so when a player trains unit h00A message "whatever" is displayed to all and it's differnt message, depending on which player trains it... =/
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Some Jass problems

Post by Xantan »

easy fix on your part, or mine if you're that lazy
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Some Jass problems

Post by JJ2197 »

You know what... I got it to work finally >.<
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Some Jass problems

Post by Xantan »

lol >.<>.<>.<>.<
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Some Jass problems

Post by Aero »

Sad...

------
Off-Topic
------

I recently extracted the campaign map files and to my surprise they were all done in GUI. I figured they would be in efficient JASS.

I used Vex's on one of the maps and it trimmed off 40%+ O.O