Unnamed RPG

You can submit your maps here. Both finished and unfinished submissions are welcome.
Forum rules
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)
Candlejack
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

Unread post by Candlejack »

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

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Unnamed RPG

Unread post by 3ICE »

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

Candlejack
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

Unread post by Candlejack »

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?

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Unnamed RPG

Unread post by 3ICE »

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

Candlejack
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

Unread post by Candlejack »

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

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Unnamed RPG

Unread post by 3ICE »

Which server are you on? Set it in your profile.
ImageImageImageImageImage
Image
ImageImage

Candlejack
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

Unread post by Candlejack »

US@East

I'll be in channel WaffleFace

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Unnamed RPG

Unread post by 3ICE »

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

Candlejack
Posts: 26
Joined: Sat Jan 28, 2012 4:52 am
Realm: US East
Account: WaffleFace
Clan: TMMM

Re: Unnamed RPG

Unread post by Candlejack »

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

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Unnamed RPG

Unread post by 3ICE »

3ICE wrote: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.
t_lea Quest - Disable Quest
Disabled quests are not shown in the quest log.
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests