Unnamed RPG

You can submit your maps here. Both finished and unfinished submissions are welcome.
Finished maps:
• Submitting your own map(s):
One map per topic please! (Or we will have a hard time finding out which comment is for which map)
You can leave your Username@Realm so people can contact you in game. (eg.: 3ICE@USEast, 3ICE@Northrend)
Write a description and don't forget to post some screenshots. (Images and videos are worth a thousand words)
• Submitting a map not made by you:
Do not claim it as yours. We'll find it out (sooner or later) anyway.
Ask the maker to submit it himself is possible.
Or at least let the maker know that his map has a topic here, so he can benefit from your comments and bug reports. (Or request the thread be deleted for whatever reason*.)

Unfinished maps:
You are welcome to post your unfinished maps here and ask for help.
We will look at the map and tell you whats wrong with it or how to continue editing it.

Projects:
Important/cool maps and big projects will have their own forum category inside. (Like the 3ICE's Maze Designer category)

Re: Unnamed RPG

New postby Candlejack on Wed Feb 01, 2012 10:24 am

Okay I don't know why I asked that, I didn't sleep last night so my thinking is sub-par.

So will I have to string a bunch of GetLocalPlayer()'s together?

Should I use a whole bunch of Else If statements one after another?
I'm not sure how to go about this since I suck at JASS :D
Candlejack
 
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

New postby 3ICE on Wed Feb 01, 2012 10:27 am

What are you trying to achieve again?

Here are two code snippets I commonly use:
Code: Select all
DisplayTextToPlayer(GetLocalPlayer(),0,0,"Hello World") //in my opinion the best way to display a message to all players.
Code: Select all
if(GetTriggerPlayer()==GetLocalPlayer())then
    //do stuff locally for that player only, eg. create or destroy a quest
endif
I didn't syntax check these code snippets, so error may happen.
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2118
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Unnamed RPG

New postby Candlejack on Wed Feb 01, 2012 10:46 am

Can I just use Custom Scripts inside my GUI?

Custom Script: if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
Quest - Create Quest
Custom Script: endif

Would something like this work or would it cause de-syncs or something?
Candlejack
 
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

New postby 3ICE on Wed Feb 01, 2012 10:49 am

Well, if you must... But half GUI half JASS is pure barbarism.

It will, however, work fine. As long as you don't do anything fancy in between. Check the generated code for inconsistencies.

Edit: And be aware what desyncs and what doesn't. Creating a quest will probably desync, so the way to do it is create the quest and hide it, then show it for the desired player inside a GetLocalPlayer() block.
Last edited by 3ICE on Wed Feb 01, 2012 10:55 am, edited 1 time in total.
Reason: Man I edit my posts a lot don't I...
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2118
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Unnamed RPG

New postby Candlejack on Wed Feb 01, 2012 10:57 am

I would do it in pure JASS if i knew how but I can't make anything of it.

I think I have the trigger figured out but I'd like to test it on b.net before posting it again to make no de-syncs occur.

It'll probably take an hour for someone to actually join the game though. x.x
Candlejack
 
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

New postby 3ICE on Wed Feb 01, 2012 10:58 am

Which server are you on? Set it in your profile.
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2118
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Unnamed RPG

New postby Candlejack on Wed Feb 01, 2012 11:03 am

US@East

I'll be in channel WaffleFace
Candlejack
 
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

New postby 3ICE on Wed Feb 01, 2012 11:04 am

Added WaffleFace to my friends list.

Edit: So, playtesting results:

Blue doesn't start with gold.
Blue can't buy a hero even after given gold via shared resources.
Desync upon quest accept. Mixing GUI with JASS is a bad idea. Post the related JASS code (Convert to JASS)
PJASS in notepad: t=726
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2118
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Unnamed RPG

New postby Candlejack on Wed Feb 01, 2012 11:21 am

if GetLocalPlayer() == GetOwningPlayer(GetBuyingUnit()) then
    call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_176", "TRIGSTR_177", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endif
Last edited by 3ICE on Wed Feb 01, 2012 11:23 am, edited 3 times in total.
Reason: Removed unnecessary code
Candlejack
 
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

New postby 3ICE on Wed Feb 01, 2012 11:23 am

3ICECreating a quest will probably desync, so the way to do it is create the quest and hide it, then show it for the desired player inside a GetLocalPlayer() block.
t_lea Quest - Disable Quest
Disabled quests are not shown in the quest log.
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2118
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

PreviousNext

Return to Map Vault



Who is online

Users browsing this forum: No registered users and 1 guest

cron