Quantcast

Jump to content

» «
Photo

DYOM Tut: Dinamic Action Key Objectives

14 replies to this topic
nandack
  • nandack

    When you are in The Dark, you can see The Light.

  • Members
  • Joined: 13 Jul 2014
  • Indonesia

#1

Posted 20 July 2014 - 09:07 AM

Hi, my nickname is Nandack and wellcome to my first tutorial on DYOM. As we know that you can use +r+ to make red text for DYOM and +w+ to make it white. But do you know that DYOM can show the In-Game action key? For example, some of you use different action key for playing. Mr.A use key W to go forward and A/S to turn Left/Right, but Mr.B use Arrow up to move forward and Arrow Left/Right to turn Left/Right. Imagine if you want to make mission that use Sniper Rifle for killing actor. You can not use fire before pressing the AIM action key. So, you can make an objective to tells the player that he/she must use AIM action key first before pressing the FIRE action key. And how if Mr.A use Left CTRL as AIM and Mr.B use CAPSLOCK as AIM action? You can just write "Use Left CTRL (Default) for aiming before pressing fire" but that's not look nice, am I right? So how we can show DINAMIC action key bassed on User's Defined action key?

Here we go, I like to find some bugs and because I am a programmer too so I open Sanny Builder just the same with CLEO 4 library and I found that in DYOM +r+ means change Text to red but if you open it from Notepade++ or other editors then you'll find that +r+ will became ~r~ so from this method I check the SCM code for Sanny Builder and find that ~k~~PED_DUCK~ is the key for Crouch and ~k~~VEHICLE_HORN~ is for sound the horn. So, by using this technique you can make more real mission and complete info for the users. So in here if user's aim key is RMB then it will show "Use RMB to aim" but if aim key changed to LALT then it shows "Use LALT to aim" something dinamic like that.

Note: This tutorial has been tested using DYOM v.8.1 and CLEO 4.0! And you cannot instanly write ~k~~VEHICLE_HORN~ from DYOM because symbol Underscore is not added since the first time I use DYOM. You can use Notepad or text editor externally.

Example:
You can make an objective that the player must get into the car. You can make new objective and select Add Car. Then on the description box you just write "Get into the car by pressing VEHICLE ENTER EXIT". Finish your mission with all of the objective, after that save it and close your gta.exe then open your saved mission using text editor. Change those capitalized text to ~k~~VEHICLE_ENTER_EXIT~ (Just make sure you capitalize the text from DYOM so you know where is the text that have to be changed). You don't need to write VEHICLE ENTER EXIT, it's just my own method to remember what are the important text. You can write such as KeyEnterVehicle, etc.

List of On Foot keys:
Left = ~k~~GO_LEFT~
Right = ~k~~GO_RIGHT~
Forward = ~k~~GO_FORWARD~
Backward = ~k~~GO_BACK~
Special ctrl left = ~k~~VEHICLE_LOOKLEFT~
Special ctrl right = ~k~~VEHICLE_LOOKRIGHT~
Action/secondary fire = ~k~~PED_ANSWER_PHONE~ / ~k~~PED_FIREWEAPON_ALT~
previous weapon = ~k~~PED_CYCLE_WEAPON_LEFT~
zoom in = ~k~~PED_SNIPER_ZOOM_IN~
aim weapon = ~k~~PED_LOCK_TARGET~
next weapon = ~k~~PED_CYCLE_WEAPON_RIGHT~
zoom out = ~k~~PED_SNIPER_ZOOM_OUT~
group CTRL forward = ~k~~GROUP_CONTROL_FWD~
group CTRL back = ~k~~GROUP_CONTROL_BWD~
conversation - no = ~k~~CONVERSATION_NO~
conversation - yes = ~k~~CONVERSATION_YES~
change camera = ~k~~CAMERA_CHANGE_VIEW_ALL_SITUATIONS~
jump = ~k~~PED_JUMPING~
enter vehicle = ~k~~VEHICLE_ENTER_EXIT~
sprint = ~k~~PED_SPRINT~
fire = ~k~~PED_FIREWEAPON~
crouch = ~k~~PED_DUCK~
look behind = ~k~~PED_LOOKBEHIND~
sneak = ~k~~SNEAK_ABOUT~

List of Vehicle keys:
steer left = ~k~~VEHICLE_STEERLEFT~
steer right = ~k~~VEHICLE_STEERRIGHT~
Steer back = ~k~~VEHICLE_STEERUP~
Steer up = ~k~~VEHICLE_STEERDOWN~
Special control left = ~k~~VEHICLE_TURRETLEFT~
Special control right = ~k~~VEHICLE_TURRETRIGHT~
secondary fire = ~k~~VEHICLE_FIREWEAPON_ALT~
hand brake = ~k~~VEHICLE_HANDBRAKE~
next radio station = ~k~~VEHICLE_RADIO_STATION_UP~
previous radio station = ~k~~VEHICLE_RADIO_STATION_DOWN~
camera = ~k~~CAMERA_CHANGE_VIEW_ALL_SITUATIONS~
brake/reserve = ~k~~VEHICLE_BRAKE~
enter/exit = ~k~~VEHICLE_ENTER_EXIT~
accelerate = ~k~~VEHICLE_ACCELERATE~
fire = ~k~~VEHICLE_FIREWEAPON~
horn = ~k~~VEHICLE_HORN~
vehicle mouse look = ~k~~VEHICLE_MOUSELOOK~


OK, that all of it but remember this:
- DYOM can only support small chars for each objective, if you write something like a poem than if the max char is reached so the other char will not be printed on the screen. So make sure that you can imagine the proportion of it.
- DYOM also show "+k++VEHICLE HANDBRAKE+" when you edit the objective that has been edited externally but I am not what the meaning of that space between VEHICLE and HANBRAKE because when I use space on it then it shows nothing, so for now let's just use external editor.
- Make sure you use v8.1 because so many improvements and new features on it also support the CLEO library v.4 and better objects.

Don't forget to rate if you think it is not a bad tutorial but if you find any question just send me your question via profile comment and if I'm online and I know the answer then I will answer it. Thanks for reading my first tutorials.
Or you can check my twitter : @NandackCahyo
  • Revolver1 likes this

Revolver1
  • Revolver1

    DYOM reviewer

  • Members
  • Joined: 21 Jun 2013
  • Vietnam

#2

Posted 20 July 2014 - 09:58 AM

Uh-huh... So let me get this straight, use this if you want the player to type that key to use that function, am I right? Like, step-to-step tutorial?

Also, is this applied for an actor or the player?


Dyom 123
  • Dyom 123

    I appreciate your input. But, please, f*ck off!

  • Members
  • Joined: 13 Jan 2014
  • Tunisia

#3

Posted 20 July 2014 - 11:11 AM

To be honest, i didn't understand anything from the tutorial


Varro Sasuke
  • Varro Sasuke

    Germany will either be a world power or will not be at all.

  • Members
  • Joined: 19 Jul 2013
  • Indonesia

#4

Posted 20 July 2014 - 11:22 AM

Ahh, I might try this soon.


Juice the Joos
  • Juice the Joos

    I didn't choose to be bad, but i had a choice.

  • Members
  • Joined: 23 Apr 2014
  • Italy

#5

Posted 20 July 2014 - 12:13 PM

Wow, nice. Are you sure it doesn't make DYOM crash in any way?

Anyways, i'm hoping to see tutorials like this in the future, thanks!


kk.
  • kk.

    So long

  • Members
  • Joined: 02 Aug 2013
  • Lithuania

#6

Posted 20 July 2014 - 01:40 PM

While I was messing with american.gxt, I found this too, but I couldn't find an use for this feature in my missions.


AnDReJ98
  • AnDReJ98

    Gangsta

  • Members
  • Joined: 18 Oct 2011
  • Serbia

#7

Posted 20 July 2014 - 03:29 PM

Here's full tutorial about editing GXT & implementing it to DYOM mission. Though this tutorial is somewhat better explained, on the old one you have more options. I used some of those tricks long time ago.


nandack
  • nandack

    When you are in The Dark, you can see The Light.

  • Members
  • Joined: 13 Jul 2014
  • Indonesia

#8

Posted 21 July 2014 - 01:18 AM

This method will not make any crash if you use it with the limit of the max chararacters/objective. But not like +r+ when not closed then it will get crash, if you use this but write too many chars then the chars after the max value will not be printed.
It just aplied for player because only player that can see the message and triggering objective.

DragonWarrior (DnW)
  • DragonWarrior (DnW)

    "A day without sunshine is like, you know, night"-DnW

  • Members
  • Joined: 18 Dec 2013
  • Sri-Lanka

#9

Posted 21 July 2014 - 03:19 PM

Holy hell! U serious about this!? Can we use this with DYOM?

 

If so, I'll kill you!


ProDX34
  • ProDX34

    DYOM Race Designer

  • Members
  • Joined: 07 Jul 2010
  • Indonesia

#10

Posted 21 July 2014 - 03:32 PM

It would be worked if you know how to using Notepad++, but nice tutorial and it seems simple than I thought even it look complex, will try it into my series later.  ;)


nandack
  • nandack

    When you are in The Dark, you can see The Light.

  • Members
  • Joined: 13 Jul 2014
  • Indonesia

#11

Posted 21 July 2014 - 05:35 PM

Holy hell! U serious about this!? Can we use this with DYOM?

If so, I'll kill you!


Tested for real and used for one of my mission.

Revolver1
  • Revolver1

    DYOM reviewer

  • Members
  • Joined: 21 Jun 2013
  • Vietnam

#12

Posted 21 July 2014 - 06:06 PM

Uh-huh... So let me get this straight, use this if you want the player to type that key to use that function, am I right? Like, step-to-step tutorial?

Man answer please.

nandack
  • nandack

    When you are in The Dark, you can see The Light.

  • Members
  • Joined: 13 Jul 2014
  • Indonesia

#13

Posted 21 July 2014 - 07:04 PM

Uh-huh... So let me get this straight, use this if you want the player to type that key to use that function, am I right? Like, step-to-step tutorial?

Man answer please.

Sorry, didn't thaught that was a question.
Well, that's correct if you mean 'function' is the action of the player like crouch, aim, etc. To make it more easy, make a mission, add new Timeout objective and write 'Press XXX to jump'. Save it and then open it with text editor. Replace that XXX (because we want to show how to jump) with ~k~~PED_JUMPING~. In texteditor will be 'Press ~k~~PED_JUMPING~ to Jump', play it then it will show text Press LSHIFT to Jump (default). Now change the jump key from option menu and replace it with MMB. Restart and the text will be dinamically changed to 'Press MMB to jump'. Something like that.

Varro Sasuke
  • Varro Sasuke

    Germany will either be a world power or will not be at all.

  • Members
  • Joined: 19 Jul 2013
  • Indonesia

#14

Posted 21 July 2014 - 09:31 PM

Holy hell! U serious about this!? Can we use this with DYOM?

 

If so, I'll kill you!

Chill dude!

 

On topic: I've tried it and its working even thought I'm still not really dominate about the tutorial. Anyway, that's great tutorial.


DragonWarrior (DnW)
  • DragonWarrior (DnW)

    "A day without sunshine is like, you know, night"-DnW

  • Members
  • Joined: 18 Dec 2013
  • Sri-Lanka

#15

Posted 22 July 2014 - 12:15 AM

I will kill you!!!!!!!!!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users